Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get Visual C++ to use the char* forms of standard functions?

How to get Visual C++ to use the char* forms of standard functions?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionannouncement
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anthony Appleyard
    wrote on last edited by
    #1

    I am writing a Visual C++ program, using features from an from an older Visual C++ program which I wrote. How can I (for example) get the compiler to use the version of the standard function GetFileName(.....) which needs a char* parameter rather than the version which needs a WCHAR* parameter?

    S L 2 Replies Last reply
    0
    • A Anthony Appleyard

      I am writing a Visual C++ program, using features from an from an older Visual C++ program which I wrote. How can I (for example) get the compiler to use the version of the standard function GetFileName(.....) which needs a char* parameter rather than the version which needs a WCHAR* parameter?

      S Offline
      S Offline
      SajeeshCheviry
      wrote on last edited by
      #2

      Actualy i don't understand your problem. will you please eloborate?

      L 1 Reply Last reply
      0
      • A Anthony Appleyard

        I am writing a Visual C++ program, using features from an from an older Visual C++ program which I wrote. How can I (for example) get the compiler to use the version of the standard function GetFileName(.....) which needs a char* parameter rather than the version which needs a WCHAR* parameter?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Check the project settings in your application, and if the Character Set says Unicode, switch to MBCS or Not Set. Alternatively use a properly constructed Unicode parameter.

        S 1 Reply Last reply
        0
        • S SajeeshCheviry

          Actualy i don't understand your problem. will you please eloborate?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          See my answer.

          1 Reply Last reply
          0
          • L Lost User

            Check the project settings in your application, and if the Character Set says Unicode, switch to MBCS or Not Set. Alternatively use a properly constructed Unicode parameter.

            S Offline
            S Offline
            SajeeshCheviry
            wrote on last edited by
            #5

            Oh. good richard.

            A 1 Reply Last reply
            0
            • S SajeeshCheviry

              Oh. good richard.

              A Offline
              A Offline
              Anthony Appleyard
              wrote on last edited by
              #6

              Thanks.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups