I'm a pc-dmis developer using visual C++. When I use pc-dmis in 4.2 or lower version, I use ActiveX object to handle the application events.
But when I upgrade pc-dmis to 2010 and higher, this way is no longer work properly. When I handled a events such as "end-execution", the EXE tell me it is stop working ( not in 4.2 and lower version ).
So I want to find another way. I import pcdlrn.tlb into VC, but I don't know how to connect the IApplicationEvents object to pc-dmis. When the part-program executing ends, nothing happen to the EXE.
If somebody can tell me how to do this, I will be very appreciate.
Thanks!
The code generated by VC when impor pcdlrn.tlb is as following:
/////////////////////////////////////////////////////////////////////////////
// IApplicationEvents wrapper class