iCAx开思工具箱

标题: 有人用过C#BULIDER做UG二次开发吗? [打印本页]

作者: mould    时间: 2006-7-13 02:18
标题: 有人用过C#BULIDER做UG二次开发吗?
C#bulider写的应用程序,DLL在UG中加载时老是提示:无法加载图形,详细信息参见日志
The reason d:\myuser\application\test.dll failed to load was:
System.BadImageFormatException: 文件“test.dll”的格式无效。
文件名: “test.dll”
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
   at ManagedLoader.Load(String assemblyName)

=== Pre-bind state information ===
LOG: Where-ref bind. Location = d:\myuser\application\test.dll
LOG: Appbase = d:\myuser\application\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///d:/myuser/application/test.dll.

&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE OUT 1
&MACRO FOCUS CHANGE IN 1
&MACRO MESSAGE_BOX  -2  无法加载图像 - 详细信息请参见日志文件
&MACRO MESSAGE_TEXT  
&MACRO MESSAGE_TEXT  文件名:d:\myuser\application\test.dll
&MACRO MESSAGE_TEXT  
&MACRO MESSAGE_TEXT  功能名:Main
&MACRO MESSAGE_TEXT  
&MACRO MENU, 0, UG_HELP_SYSTEM_LOG UG_GATEWAY_MAIN_MENUBAR !

上面这段日志文件弄不懂出错在哪?


作者: kailler    时间: 2008-9-8 21:18
我第一次编译也是这个错误,我用的是sample工程,有高手可以解答吗




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3