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. Use CFileDialog and get Unicode filenames in a Multi-Byte project

Use CFileDialog and get Unicode filenames in a Multi-Byte project

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
3 Posts 2 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.
  • M Offline
    M Offline
    manchukuo
    wrote on last edited by
    #1

    Hi guys I have a project using Multi-Byte Character Set, but i need to open some files wich names and/or paths may have Unicode Chars. How can i use CFileDialog with Unicode support in my project without changing my project configuration to Unicode char set?

    K 1 Reply Last reply
    0
    • M manchukuo

      Hi guys I have a project using Multi-Byte Character Set, but i need to open some files wich names and/or paths may have Unicode Chars. How can i use CFileDialog with Unicode support in my project without changing my project configuration to Unicode char set?

      K Offline
      K Offline
      Kushagra Tiwari
      wrote on last edited by
      #2

      Hi , There are always aliases of the functions in Widechar or ANSI .So for example u have a function WriteprivateprofileString () .It will be available in WriteprivateprofileStringA () and WriteprivateprofileStringW ().Similarly, for unicode you will have to use function equivalents in ANSI to get your job done. So, no need of switching to UNICODE.

      M 1 Reply Last reply
      0
      • K Kushagra Tiwari

        Hi , There are always aliases of the functions in Widechar or ANSI .So for example u have a function WriteprivateprofileString () .It will be available in WriteprivateprofileStringA () and WriteprivateprofileStringW ().Similarly, for unicode you will have to use function equivalents in ANSI to get your job done. So, no need of switching to UNICODE.

        M Offline
        M Offline
        manchukuo
        wrote on last edited by
        #3

        I Know that there are counterparts to Ansi o Widechar Functions. The thing is that i can not find the Widechar version of CFileDialog There is no CFileDialogW, there is a LPOPENFILENAMEW but how do you use it with CFIleDialog

        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