sgursahaney
Programmer
I have a need to develop a VB application that calls C functions get information. One of the functions allows me to specify a handler function that will be called every time a specific event occurs.
For example, in C to register the function I need to call:
sr_enbhdlr(devh, usEvtcd, (long int(*)()) alarm)
where alarm() is a C function that will be invoked when the specific usEvtcd is encountered.
I would like to invoke all of these functions from my VB application and have the handler call a function in my VB application rather than a C function. Does anybody know how I would specify the "alarm" function as a VB function rather than a C function?
Regards,
Suresh
For example, in C to register the function I need to call:
sr_enbhdlr(devh, usEvtcd, (long int(*)()) alarm)
where alarm() is a C function that will be invoked when the specific usEvtcd is encountered.
I would like to invoke all of these functions from my VB application and have the handler call a function in my VB application rather than a C function. Does anybody know how I would specify the "alarm" function as a VB function rather than a C function?
Regards,
Suresh