ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ProWeblink加載ProToolkit開發的DLL問題

ProWeblink加載ProToolkit開發的DLL問題

原创 Linux操作系统 作者:aaron_07 时间:2010-09-21 07:52:47 0 删除 编辑
由於我們的項目是想在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博客 ” ,链接:https://blog.itpub.net/24494482/viewspace-674530/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2010-08-30

  • 博文量
    23
  • 访问量
    39376