Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2005
I have VS2005 installed on XP.
When I transported a project from VS2003 to 2005 I get a lot of errors in swprintf.inl when I compile individual files.
 
For example:
 
1>c:\program files\microsoft visual studio 8\vc\include\swprintf.inl(36) : error C2065: '_String' : undeclared identifier
1>c:\program files\microsoft visual studio 8\vc\include\swprintf.inl(36) : error C2275: 'size_t' : illegal use of this type as an expression
1> c:\conferencre sacha stern\conference 2012\testvs\testvs\testvs.cpp : see declaration of 'size_t'
 
I suspected corruption in the installation, and reinstalled it, but that makes no difference.
 
It happens even when I create a new project, whether console or Win32, where there is no call to printf or related functions.
 
Is there any answer to this crazy behaviour ?
RaymondM
Posted 25-Mar-13 5:07am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have you done a complete clean and rebuild since you moved from VS 2003 to 2005?
Take a look at that file and see what is on line 36. When I checked the version on my system it contains:
static __inline int swprintf(wchar_t * _String, size_t _Count, const wchar_t * _Format, ...)
which looks perfectly legal.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The file swprintf.inl that is called in the error report is the same as in all the earlier installations ov VW. The problem is surely that this should not be called anyway. In the project set up to test I add nothing to the code that is automatically created, so this problem just should not happen.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 280
1 Maciej Los 280
2 BillWoodruff 240
3 Afzaal Ahmad Zeeshan 239
4 Sergey Alexandrovich Kryukov 195
0 OriginalGriff 6,499
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,193
3 Manas Bhardwaj 4,657
4 Maciej Los 4,120


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 25 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100