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. Help...win 98 to win XP

Help...win 98 to win XP

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiontutoriallearning
2 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.
  • F Offline
    F Offline
    fynox
    wrote on last edited by
    #1

    Hi, i'm a beginner to all this so pls forgive me if this is a silly qn...i hv a dll that works on win 98 but i recently migrated to win xp. I've changed the project settings to _Unicode but i'm not sure how to modify the code so that it works the same way on win xp. For eg. how do i use AfxMessageBox? Also, how do i use CFileDialog class? The code i hv is: CFileDialog filenewdlg(TRUE, NULL, NULL, OFN_ALLOWMULTISELECT |OFN_HIDEREADONLY, "Part Files(*.asm)|*.sldasm||", this); But on compiling, the error i get is cannot convert parameter 5 from 'char[29]' to 'const unsigned short' 1) How do i correct this? 2) Is there anything else i need to know? Best regards and thanks in advance...

    M 1 Reply Last reply
    0
    • F fynox

      Hi, i'm a beginner to all this so pls forgive me if this is a silly qn...i hv a dll that works on win 98 but i recently migrated to win xp. I've changed the project settings to _Unicode but i'm not sure how to modify the code so that it works the same way on win xp. For eg. how do i use AfxMessageBox? Also, how do i use CFileDialog class? The code i hv is: CFileDialog filenewdlg(TRUE, NULL, NULL, OFN_ALLOWMULTISELECT |OFN_HIDEREADONLY, "Part Files(*.asm)|*.sldasm||", this); But on compiling, the error i get is cannot convert parameter 5 from 'char[29]' to 'const unsigned short' 1) How do i correct this? 2) Is there anything else i need to know? Best regards and thanks in advance...

      M Offline
      M Offline
      Magnus Westin
      wrote on last edited by
      #2

      If you are going to do a unicode project then all strings must begin with L eg. L"Part Files(*.asm)|*.sldasm||" to tell the compiler you want a wide string. But I would recommend you read up on TCHAR, that way you can compile your program in both UNICODE and single byte mode. I dont know any good unicode resource on the web, but if you are going to do a unicode project, then I recommend you read some books on the subject. Its a lot more to unicode than meets the eye. Also here on codeproject is http://www.codeproject.com/cpp/unicode.asp?target=unicode[^] http://www.codeproject.com/vcpp/stl/upgradingstlappstounicode.asp[^] Magnus

      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