CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    [RESOLVED] error C2065: 'swprintf_s' : undeclared identifier

    Hi all,

    I am using visual C++ 6.0 to build an unicode application, when i am compiling my code i have the following error:
    error C2065: 'swprintf_s' : undeclared identifier
    I have added the two headers: stdio.h and wchar.h.

    Regards.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: error C2065: 'swprintf_s' : undeclared identifier

    swprintf_s as well as other "Security Enhancements in the CRT" were introduced in Microsoft Visual Studio 2005. Thus they are not available in VC++6.0.
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: error C2065: 'swprintf_s' : undeclared identifier

    Thank you Victor,

    i have just resolved the problem by using the swprintf function.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [RESOLVED] error C2065: 'swprintf_s' : undeclared identifier

    Another way would be upgrade your project to use either of the next Visual Studio versions: 2005/2008/2010/2012
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured