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

Posted on 2006-04-17
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

error C2065: 'strcpy_instead_use_StringCbCopyA_or_StringCchCopyA' : undeclared identifier


I've installed and uninstalled and reinstalled the platform SDK and various releases of the DX sdk, following directions here:

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 :(
Question by:PMH4514
    LVL 48

    Accepted Solution

    It looks like compiler cannot find _vsnprintf definition. Try to include <stdio.h> before atl headers.

    Author Comment

    all that frustration and that's all it was!


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
    C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
    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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now