由於我們的項目是想在Pro/E中實現導引式功能,採用ProWeblink和Flash通過JS通信的方式,實現Flash網頁與Pro/E交互。
pfcDll
LoadProToolkitDll (string ApplicationName, string DllPath, string TextPath, boolean UserDisplay)
]
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/