wadeyu 发表于 2006-9-6 15:16:00

[求助]在2004-2006下能正常运行,但在OBJECTARX2007下有问题

<P>请问各位高手,下面一段程序,在VS2002下编译在AUTOCAD2004-2006下都能正常运行,但在VS2005下编译通过,就是没得到正确的结果,谁能解释一下.</P>
<P>&nbsp;typedef USHORT (_stdcall *pGetID) (PTCHAR pszFilename, PTCHAR pszCardID, USHORT usCnt);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pGetID mDsiID=NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USHORT AA;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hDLL=LoadLibrary("amdsapi.dll");<BR>&nbsp;&nbsp;<BR>&nbsp;TCHAR&nbsp; strID;<BR>&nbsp;TCHAR&nbsp; strFileName;<BR>&nbsp;mDsiID=(pGetID) GetProcAddress(hDLL,"DsiQueryIDFromFilename");</P>
<P>&nbsp;lstrcpy(strFileName,curDoc()-&gt;fileName());</P>
<P>&nbsp;AA=mDsiID(strFileName,strID,15);<BR></P>
<P>就这句&nbsp;AA=mDsiID(strFileName,strID,15);没得到正确的strID返回值</P>
页: [1]
查看完整版本: [求助]在2004-2006下能正常运行,但在OBJECTARX2007下有问题