09-11-2005 10:16 PM
09-12-2005 04:00 AM
hi there
i once had an error in eventoracle.cpp when using MSCOMCTL Toolbar, but i can't remember the line number anymore. the error occured after a ActiveX event which i registered with the "Register Event Callback - node. the whole event - code was in the Callback - VI. then i moved the code to a dynamic event case in the Event Structure of my top level VI and fired the dynamic event inside the CallBack - VI. then all was fine...
best regards
chris
11-15-2005 03:23 AM
hi chris,
read about how you solved the "eventoracle.cpp" error by registering your event callback as a dynamic event in an event structure. Here I am facing the same problem, can you provide some information on how that can be achieved? or maybe provide a simple sample vi on how dynamic event is registered instead of using the Register Event Callback node?
Thank you in advance.
with regards,
yeang
11-15-2005 06:17 AM
hi there
here it is....
11-16-2005 12:41 AM
Hi Chris,
Thanks for the sample, I am in the process of integrating the sample program into my own program. However I'm facing a small problem here as i'm trying to capture which callback functions are actually triggering the events. (I have registered more than ten events in my program).
Any advice?
Regards,
yeang
11-16-2005 04:30 AM
hi there
you can adjust the user event data type to your needs. for example you can add a string "source" to the events data. additionally you can pass the "user parameter" to the callback vi to specify its location. see attachment below.....
02-07-2007 10:39 AM
02-08-2007 03:52 AM
hi there
first try to find out if the camera is supported by the windows webcam api. if so you can acquire images with this api, you then won't need to use the DirectX interface. I'm not sure but i think supported cameras are shown in the explorers tree at "Scanners and cameras" at the system control.
02-09-2007 08:26 AM
02-09-2007 08:51 AM
hi there
well, then try the links mentioned here
http://forums.ni.com/ni/board/message?board.id=140&message.id=7359&query.id=45618#M7359
http://forums.ni.com/ni/board/message?board.id=170&message.id=168315&query.id=45618#M168315
or search in this forum for "webcam", "usb" etc.