We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

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

PMH4514
PMH4514 asked
on
Medium Priority
910 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 :(
Comment
Watch Question

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
all that frustration and that's all it was!

thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.