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

    [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
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,178

    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
    126

    Re: error C2065: 'swprintf_s' : undeclared identifier

    Thank you Victor,

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

  4. #4
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,178

    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

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width