Hi, guys
I meet the following error information when I try to compile my source code in VC 6.0:
error C2065: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : undeclared identifier
Anyone know how to solve it
Thanks.
Hi, guys
I meet the following error information when I try to compile my source code in VC 6.0:
error C2065: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : undeclared identifier
Anyone know how to solve it
Thanks.
help for Errors in VC 6.0
kirikiri
I think your advice would be right.
but I do not know which libs should be used.
Attached are the libs in my project:
oleaut32.lib msvcrtd.lib quartz.lib vfw32.lib winmm.lib kernel32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib ole32.lib olepro32.lib uuid.lib WSOCK32.LIB
And its project options are:
oleaut32.lib msvcrtd.lib quartz.lib vfw32.lib winmm.lib kernel32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib ole32.lib olepro32.lib uuid.lib WSOCK32.LIB /nologo /stack:0x200000,0x200000 /entry:"DllEntryPoint@12" /dll /profile /machine:I386 /nodefaultlib /def:".\CyklOneCtrl.def" /out:"..\Debug\CyklOneCtrl.ax" /implib:"Debug/CyklOneCtrl.lib" /libpath:"..\..\..\..\lib" /FORCE:MULTIPLE /FORCE:MULTIPLE /debug:mapped,full /subsystem:windows,4.0
Thanks for your time.
vini80
Looks like you are trying to use newer header files with VC++ 6. It may not be a good idea to even try that. But if you want to try, you could specify a #define for STRSAFE_NO_DEPRECATE and it may just work for you.
ding3r
thanks for your comments. You are right. I used VC 2005 express for free before. Today the company bought a VC 6.0. So I did not uninstall the VC 2005 SDK. Shall I uninstall VC 2005 SDK and which SDK for VC 6.0 since I wanna use DirectDraw and its files such as stream.h
Another question is the link error as follows:
Generating Code...
Linking...
CyklOneCtrl.def : error LNK2001: unresolved external symbol DllCanUnloadNow
CyklOneCtrl.def : error LNK2001: unresolved external symbol DllGetClassObject
Debug/CyklOneCtrl.lib : fatal error LNK1120: 2 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
Error executing link.exe.
CyklOne.exe - 4 error(s), 7 warning(s)
I have included the
Header: Declared in objbase.h.
Library: Included as a resource in oleaut32.dll.
Do you know what I should do for it
Thanks so much.
ames7401