I am programming using an MPEG2 card and am having trouble getting callbacks from it.
The first method I tried using the CallBack function kept crashing my program when it was compiled and running outside of the VB environment.
The SDK suggestst that with VB you use a CallBack *message* rather than a *function*
The C+ code is
VCCCALL mpgCallBack ( HWND hwnd);
which i have translated to VB as
Declare Sub mpgCallback Lib "4reelaps.dll" (ByVal hwnd As Long)
in my init code, I am trying to route the messages to a window called frmMessageWindow
but how do I go about writing the procedure to receive the messages?
from the SDK, I know it returns 3 integers: Card, Channel and Message.
For your reference, the SDK for the card i am using is is available here