- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I created a COM server for 32 bit . This one works fine for a long time.
I now want to create the same one under 64 bit, and it doesn't link because of two errors
error LNK2019: unresolved external symbol _CreateErrorInfo@4 referenced in function VFSETERRORINFO
error LNK2019: unresolved external symbol _SetErrorInfo@8 referenced in function VFSETERRORINFO
These two externals were called from the subroutine VFSetErrorInfo.I believe this subroutine came with one the sample projects.
Does someone know how to change this subroutine?
Thanks Aid Usman
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the interface declarations for CreateErrorInfo and SetErrorInfo, modify the attribute directive to be this:
!dec$ attributes stdcall, decorate, alias:"CreateErrorInfo" :: CreateErrorInfo
This removes the leading underscore and the trailing "@n" from the external name for Intel64. And, DECORATE tells the compiler to put it on for IA-32.
--Lorri
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page