0
0

Hello

Problem: Callbacks don’t work with VB dotnet

[code:2tsxbuxc]
Public Structure FMOD_DSP_STATE
‘I’ve added this structure to fmod_dsp.mod myselfe because
‘it was not available there. Are the data types correct?
Dim handle As Long
Dim plugindata As Long
End Structure

Public Delegate Function DelegateCreateDSP(ByVal state As FMOD_DSP_STATE) As Integer

Public Structure FMOD_DSP_DESCRIPTION
Dim name As String
Dim Version As Integer
Dim Channels As Integer
Dim create As DelegateCreateDSP
Dim release As Integer
Dim reset_Renamed As Integer
Dim Read As Integer
Dim setpos As Integer
Dim numparameters As Integer’
Dim paramdesc As Integer
Dim setparameter As Integer
Dim getparameter As Integer
Dim config As Integer
Dim Configwidth As Integer
Dim Configheight As Integer
Dim userdata As Integer
End Structure

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim DSP_DESCRIPTION As New FMOD_DSP_DESCRIPTION


With DSP_DESCRIPTION
     .Channels = 1
     .name = "Test"
     .create = AddressOf CreateDSP
End With

m_intResult = FMOD_System_CreateDSP(m_intSystem, DSP_DESCRIPTION, intDSP)

End sub

Private Function CreateDSP(ByVal state As FMOD_DSP_STATE) As Integer
‘ This function is never called, why?
MsgBox("Test")
End Function

[/code:2tsxbuxc]

[/code]

  • You must to post comments
0
0

Do you use System.update?

  • You must to post comments
0
0

Hello

It doesn’t matter weather I use it or not, it doesn’t work…. Should it work with or without "System.update"?

  • You must to post comments
0
0

It works WITH system.update 😕

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.