Hi List,

I'm working on project involving FMOD.
I need to pass a pointer to my global function to declare statement.
The declare doesn't ask the pointer separately, instead, it needs to be one value in memoryblock.


Here's the code:
1    pointer=addressof PCMReadCallback
2    createsoundexinfo.stringvalue(44,4)=pointer.StringValue(0,4)
3    msgbox str(createsoundexinfo.long(44))


PCMReadCallback is not yet done, it's as follow:
Function PCMReadCallback(byref sound as integer,byref data as integer, datalen as integer) As integer
  return FMOD_OK
End Function



If i comment the line 2, the function succeeds, if i don't, my app crashes.

Message i got in line 3 is -1079902220

What is the correct way to do this?


Regards,
Aleksi

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to