MgErr Occur(LVRefNum occ);
This is the prototype of the function. LVRefNum is the occurrence refnum you have generated somewhere in your VI
and pass to your external code.
But depending on what you want to do and if it is for LabVIEW 7.1 or newer you might be interested to use PostLVUserEvent() instead. Attached is a small project that uses this as an example but I believe there is also an official NI example somewhere here around.
Rolf Kalbermatter
Message Edited by rolfk on 10-23-2007 09:01 AM
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390