几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   How to get the status of dongle? (http://www.dimcax.com/hust/showthread.php?t=740)

yogy 2007-05-20 01:33 PM

How to get the status of dongle?
 
Q:
Dear,
How to get the status of dongle? If no dongle, SW application is still running in the background or foreground, and locked.
Now I find a way to get Errors with GetErrorMessages. I want to know more details of GetErrorMessages
GetErrorMessages from SW API as follows:
m_pSldWorks.GetErrorMessages(&msgs,&msgIDs,&msgTypes);
Which type or ID is relative to the status of dongle?

By the way, it took about 1’ when my program runs or loads SW Application.

It is a better way to get the status of dongle before my program runs SW application. If no dongle, my program would not be able to create the dispatch to SW application.
Yanhua

yogy 2007-05-20 01:34 PM

回复: How to get the status of dongle?
 
R:



I am sorry, we do not have API access to the security information of SW. The GetErrorMessages does not provide information regarding the dongle status.



You will likely want to kill the SW process as there would not be another alternative to shut it down if SW is started in the background.





Regards,

-Earl

windzai 2007-06-01 05:19 PM

回复: How to get the status of dongle?
 
try


所有的时间均为北京时间。 现在的时间是 03:17 AM.