Click to See Complete Forum and Search --> : API callback function
Bob724
May 18th, 2000, 09:11 AM
I have this API callback function, but it's only documented in C++ code. :(
virtual void File_Switch(CVideoDecoderSettings* pSettings)
pSettings represents a handle.
I was just curious how to set this up in VB so it will return the value it's supposed to(or however that works) :D
Anyone got any suggestions?
Thanks,
Bob
[Edited by Bob724 on 05-18-2000 at 10:19 PM]
Crazy D
May 18th, 2000, 02:28 PM
I guess the function should be in VB something like:
Public Sub File_Switch(ByRef pSettings As Long)
Not 100% sure about the Byref...
You'll have to copy the pointer to a CVideoDecoderSettings variable, so you can access the properties of this (I assume) class.
Bob724
May 18th, 2000, 10:27 PM
OK, but how do I actually get a value to be returned from this, and how and where do I actually use the function? Don't I have to use the AddressOf operator,too somewhere? :confused:
Please help
Thanks,
Bob
Bob724
May 20th, 2000, 04:19 AM
Anyone-
Got any ideas?
Please let me know soon.
Thanks,
Bob K.
Crazy D
May 21st, 2000, 01:40 PM
I don't know in this specific case, but you'll probably need to call an Init function, probably yuo have to use Addressof there to pass a pointer to the function.
The function itself must be places in a module.
Bob724
May 23rd, 2000, 10:51 PM
Oh well--
Thanks anyways.
I'll can use another function call, and maybe I'll try using the function in a class module to run asynchronously to the program as an activeX DLL or activeX EXE that generates an event in the main program. I think that's about it, though.
Thanks
____
Bob K.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.