Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > vs2005 64-bit platformsdk issue

Reply
Thread Tools

vs2005 64-bit platformsdk issue

 
 
Anthony LaMark
Guest
Posts: n/a
 
      03-23-2006
Hi All,

I am porting a wmi event provider dll from 32 to 64 bit. I have WindowsXP
64bit with Visual Studio 2005. I made a 64 bit configuration in my project.
Everything compiles but I get two unresolved external references in the
link. Both are contained within FrameDyn.lib/dll. I will focus only on one
since the fix is probably the same for both. As you can see from below, the
error is looking for an entry point named ?GetDMTF@WBEMTime@@QEBAPEA_WH@Z.
When I run dumpbin /EXPORTS on the two FrameDyn.lib files installed in the
VisualStudio path, each one has a GetDMTF@WBEMTime entry point but the
decorated name of both do not match what the linker is looking for (see the
names below). I looked around msdn to see if there is a new PlatformSDK for
the Windows 64bit but it appears that the includes, libs and dlls all
shipped with VS2005. If anyone can help me (other than to tell me that I
should recode the project in .net managed...which is not possible right
now), I would be forever grateful.

Error 1 error LNK2019: unresolved external symbol "public: wchar_t * __cdecl
WBEMTime::GetDMTF(int)const " (?GetDMTF@WBEMTime@@QEBAPEA_WH@Z) referenced
in function "private: long __cdecl CMyClass::MyMethod(struct IWbemServices
*,struct IWbemClassObject *)"
(?MyMethod@CMyClass@@AEAAJPEAUIWbemServices@@PEAUI WbemClassObject@@@Z)
MyClass.obj


C:\Program Files (x86)\Microsoft Visual Studio
8\VC\PlatformSDK\Lib\FrameDyn.Lib
?GetDMTF@WBEMTime@@QBEPAGH@Z (public: unsigned short * __thiscall
WBEMTime::GetDMTF(int)const )


C:\Program Files (x86)\Microsoft Visual Studio
8\VC\PlatformSDK\Lib\AMD64\FrameDyn.Lib
?GetDMTF@WBEMTime@@QEBAPEAGH@Z (public: unsigned short * __cdecl
WBEMTime::GetDMTF(int)const )

Thanks in advance,
Tony




 
Reply With Quote
 
 
 
 
Chris Kushnir
Guest
Posts: n/a
 
      03-23-2006
It looks like the FrameDyn.lib files are compiled with:
typedef unsigned short wchar_t
whereas yours is compiled with wchar_t being a built-in data type (the
default for VS2005).

VS2005 - Property Pages - Configuration Properties - C/C++ - Language -
Treat wchar_t as Built-in Type = No (default is Yes)


cmk


 
Reply With Quote
 
 
 
 
Anthony LaMark
Guest
Posts: n/a
 
      03-23-2006
Hi Chris,
That was the trick!!!
Thank you very much!!!!!!!

"Chris Kushnir" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> It looks like the FrameDyn.lib files are compiled with:
> typedef unsigned short wchar_t
> whereas yours is compiled with wchar_t being a built-in data type (the
> default for VS2005).
>
> VS2005 - Property Pages - Configuration Properties - C/C++ - Language -
> Treat wchar_t as Built-in Type = No (default is Yes)
>
>
> cmk
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vs2005 HTML issue : "Another object on this page already uses ID" =?Utf-8?B?Y2hheg==?= ASP .Net 4 07-21-2006 03:08 PM
solution: IE7 and VS2005 issue with style builder harddrive1610@lycos.com ASP .Net 0 03-17-2006 11:46 PM
VS2005 Publish web site issue Krish ASP .Net 0 02-07-2006 01:10 AM
VS2005 Beta 2 - Web User Control Issue C Gatto ASP .Net 0 06-02-2005 06:16 PM
Beta 2 (VS2005) StyleSheet Issue C Gatto ASP .Net 2 05-18-2005 02:15 PM



Advertisments