On 17.9.2006, at 22.47, Charles Yeomans wrote:


On Sep 17, 2006, at 3:34 PM, Aleksi Strandberg wrote:

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)

You're writing the first four bytes of the data to which pointer points. What you need to do is to write the pointer address. Try

createsoundexinfo.Ptr(44) = pointer

That worked!

Thank you.

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