Thread: _vscprintf in VC6

  1. #1
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

    _vscprintf in VC6

    Hello. I am trying to use the CRT function _vscprintf(..) in an application I am programming and I keep getting the error:

    error C2065: '_vscprintf' : undeclared identifier

    I am not exactly what steps I should take to make this function availible to myself, any advice?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    It would seem to be a new function in the .net versions of the compiler.

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Oh no! Could you tell me where you saw that it is new in .NET? I thought it would be much more widespread with compatibility said to be "ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP". Oh well, thank you.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well I got the .net from the path
    MSDN Home > MSDN Library > Development Tools and Languages > Visual Studio .NET > Visual C++ > Reference > Visual C++ Libraries > Run-Time Library Reference > Alphabetical Function Reference > S Through Z

    As for being ANSI, well read the disclaimer
    "The names of Microsoft-specific functions and global variables begin with a single underscore."

    Now you might be able to download the latest platform SDK, which should get you updated header files and library files. But I've no idea how well it might work with an older compiler.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I would use vsprintf() and make it work somehow.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (VC6 -> VC++ 2005 Express)WinMain overload error
    By Kurisu33 in forum Windows Programming
    Replies: 2
    Last Post: 08-25-2006, 12:27 PM
  2. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 10:58 PM
  3. VC6 directories
    By Magos in forum Tech Board
    Replies: 0
    Last Post: 03-11-2005, 05:52 PM
  4. boost::serialization + vc6
    By Koyaanisqatsi in forum C++ Programming
    Replies: 1
    Last Post: 12-01-2004, 05:43 PM
  5. gcc compared to VC6
    By moemen ahmed in forum Linux Programming
    Replies: 1
    Last Post: 07-07-2002, 01:58 AM