Linker error when using VC7

D

Deepa via .NET 247

(Type your message here)
Hi,
My app (DLL) that was developed in VC6 is using ddao35u.lib toaccess the Access Database.
When I try to build the same DLL using VC7 I get the followinglinker error.
Any pointers on how to resolve this?
Thanks!
Deepa


error LNK2019: unresolved external symbol "public: classATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsignedshort,class ATL::ChTraitsCRT<unsigned short> > > __thiscallCdbLastOLEError::GetDescription(void)"(?GetDescription@CdbLastOLEError@@QAE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@XZ)
 
R

Roman Yankin

Does your DLL require any registration? If so may be you should re-register
it?
regsvr32 /u [your dll name]
regsvr32 [your dll name]

Not sure whether this helps.

(Type your message here)
Hi,
My app (DLL) that was developed in VC6 is using ddao35u.lib to access the
Access Database.
When I try to build the same DLL using VC7 I get the following linker error.
Any pointers on how to resolve this?
Thanks!
Deepa


error LNK2019: unresolved external symbol "public: class
ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class
ATL::ChTraitsCRT<unsigned short> > > __thiscall
CdbLastOLEError::GetDescription(void)"
(?GetDescription@CdbLastOLEError@@QAE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$C
hTraitsCRT@G@ATL@@@@@ATL@@XZ)
 
G

Gabest

You might need to switch between wchar_t and unsigned short as the default
WCHAR type.
 
D

Doug Bailey

When I had a problem linking on a CString, it was because I was not
linking in the foillowing libraries:

mfc71d.lib
mfcs71d.lib

Make sure that these are being included in your link path. You can
manually specify them from Linker->Input->Additional dependencies.

- Doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top