?
Solved

still having problems with compile errors in atlbase.h.. getting very irritated!

Posted on 2006-04-17
2
Medium Priority
?
787 Views
Last Modified: 2012-06-27
I am at an absolute loss here, and getting very frustrated. I installed visual studio 6 on a new computer, followed by the platform SDK and DirectX9 and my app will no longer compile.

I get all kinds of errors like:
:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(305) : error C2065: '_vsnprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : undeclared identifier
e:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(338) : error C2065: '_vsnwprintf_instead_use_StringCbVPrintfW_or_StringCchVPrintfW' : undeclared identifier
e:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5515) : error C2065: 'lstrcpy_instead_use_StringCbCopy_or_StringCchCopy' : undeclared identifier
e:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5989) : error C2065: 'lstrcat_instead_use_StringCbCat_or_StringCchCat' : undeclared identifier

and:
error C2065: 'strcpy_instead_use_StringCbCopyA_or_StringCchCopyA' : undeclared identifier

etc.

I've installed and uninstalled and reinstalled the platform SDK and various releases of the DX sdk, following directions here:
http://www.gamedev.net/community/forums/topic.asp?topic_id=328532

My library/include paths are all defined properly as far as I can tell, but still nothing gets rid of these compile errors. I have never seen them before on the old computer, so something must be mis-aligned or improperly installed.  All my google searches for that error message have only led me in circles, yet nothing is working.

Somebody out there must have had this problem. It is not my code, my code was compiling without errors before I got a new computer.

Anybody? It has brougth my work to a complete standstill :(
0
Comment
Question by:PMH4514
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 1000 total points
ID: 16471439
It looks like compiler cannot find _vsnprintf definition. Try to include <stdio.h> before atl headers.
0
 

Author Comment

by:PMH4514
ID: 16471533
all that frustration and that's all it was!

thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question