Cannot convert parameter

This is a discussion on Cannot convert parameter within the Windows Programming forums, part of the Platform Specific Boards category; I seem to be the only one getting these errors. I followed TheForger's WinAPI tutorial and I get these errors ...

  1. #1
    (++
    (++ is offline
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Cannot convert parameter

    I seem to be the only one getting these errors. I followed TheForger's WinAPI tutorial and I get these errors like "cannot convert parameter # from const char to LPCWSTR". I can convert it and get around by adding an L before the quotation but i hate doing this for every function. Im using VC++ 2008 express edition. Are these errors normal and is there a way to avoid them?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    I believe there is a project setting you can change to not use unicode. Check all the project settings.
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    1
    I have the same problem.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Quote Originally Posted by Teach C++ Plz View Post
    I have the same problem.
    I have the same suggestion.
    bit∙hub [bit-huhb] n. A source and destination for information.

  5. #5
    (++
    (++ is offline
    Registered User
    Join Date
    Jan 2010
    Posts
    3
    Thanks for the tip but i cant seem to find the properties page to turn off unicode.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Hmm... I don't have a copy of VC++ 2008, but I got this from a Google search: "Select menu item Project --> Properties --> expand Configuration Properties --> General. In the pane on the right, the third item from the bottom, change "Character Set" option to "Not Set""
    bit∙hub [bit-huhb] n. A source and destination for information.

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Quote Originally Posted by bithub View Post
    I have the same suggestion.
    Thanks, that post actually made me literally LOL.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-08-2008, 05:31 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. cannot start a parameter declaration
    By Dark Nemesis in forum C++ Programming
    Replies: 6
    Last Post: 09-23-2005, 02:09 PM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21