ProWeblink加載ProToolkit開發的DLL問題

由於我們的項目是想在Pro/E中實現導引式功能,採用ProWeblink和Flash通過JS通信的方式,實現Flash網頁與Pro/E交互。
Get to business,使用Weblink的LoadProToolkitDll方法調用本地的Dll時,必須給全路徑。以下是PTC對此函數的說明:
[
pfcDll  
 LoadProToolkitDll (string ApplicationName, string DllPath, string TextPath, boolean UserDisplay)
 

Causes Pro/ENGINEER to load a Pro/TOOLKIT DLL application.

The application's
user_initialize() function will be called as the application starts.
Parameters: ApplicationName The name of the application. Application names must be unique within the Pro/ENGINEER session. DllPath The full path to the DLL binary file. TextPath The full path to the directory containing the DLL text, menu and resource files. UserDisplay If true, the application will be visible from the Auxiliary Applications dialog box, and the user will be allowed to stop it. If errors occur on startup, those errors will be presented to the user. If false, the application will be invisible to the user. Returns: The Pro/TOOLKIT DLL handle. 
]

結果在DLL中使用的ProMessageDisplay函數說找不到菜單文件中的消息提示字串,好奇怪,在單獨使用DLL的時候是OK的。後來DEBUG才發現,原來給定的TextPath多了Text這一層目錄。

只要將這一層目錄乾掉就OK了。呵呵!

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24494482/viewspace-674530/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24494482/viewspace-674530/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值