几何尺寸与公差论坛

 找回密码
 注册
查看: 2410|回复: 3

How to get the status of dongle? SR:1-444863852

[复制链接]
发表于 2007-5-20 08:59:55 | 显示全部楼层 |阅读模式
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.
 楼主| 发表于 2007-5-20 09:00:26 | 显示全部楼层

回复: How to get the status of dongle? SR:1-444863852

Hello,

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
 楼主| 发表于 2007-5-20 09:00:58 | 显示全部楼层

回复: How to get the status of dongle? SR:1-444863852

Hi,

Would you like to provide an API function to get the dongle status in the future?

My company’s software named PC-DIMS authorizes with a dongle also. We provide the following interface to get the dongle status about every module.

Example as follows:

// call IsFeatureEnabled to get the dongle status about Gear module.

  CHASPClient hc;

  int nDummy=0;

  if(!hc.IsFeatureEnabled(MOD_GEAR, nDummy))

  {

    AfxMessageBox(IDS_PORTLOCK_NOT_PROGRAMED);

    return FALSE;

  }
yogy
 楼主| 发表于 2007-5-20 09:01:52 | 显示全部楼层

回复: How to get the status of dongle? SR:1-444863852

Hello Yanhua,


> Would you like to provide an API function to get the dongle status in the future?



As you be aware of, SolidWorks is migrating to "Software Activation" for its security. Hence in the not too distant future dongles will be phased out.



> How to identify SW running with a dongle, but a floating license?



I'm afraid we don't offer API access to the SolidWorks security mechanism, independent of the type of mechanism used.



> If no dongle, my program would not be able to create the dispatch to SW application.


Using failure to create an instance of the COM object representing SolidWorks, would be already an indication that SolidWorks is not properly licensed.


I would also like to refer you to the solutions suggested as part of Service Request SR-1-348618481.

For your convenience I've attached the last email for that Service Request.


Regards,


    Frank
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 19:19 , Processed in 0.038414 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表