Thread: How can i make a normal application

  1. #16
    Registered User
    Join Date
    Jan 2006
    Posts
    21
    Code:
    c:\documents and settings\waalwijk\mijn documenten\visual studio 2005\projects\sdk special\sdk special\sdk special.cpp(6) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'const wchar_t [22]' to 'LPCSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    this is the error... i tried all...

  2. #17
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    The error saying MessageBoxA instread of MessageBoxW shows that you've successfully switched unicode off.

    I sugested using an L before the text if you wanted to stick with unicode it won't work with it turned off. Using the _TEXT macro sugested by Salem should work fine for both.

  3. #18
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    If you have a legitimate copy of your compiler and IDE, and it was installed correctly,
    MSVC++ 2005 express dosen't come with the headers or libraries to create window API applications.
    If this was his problem, then consulting the download and install page for 2005 express, it was not installed correctly.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #19
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by jobbie
    I want to make a game, understand?
    but not with text... but with models in 3D
    So i need a GUI application... if i understand it right??
    how do i do that then?
    no offense, but you're not ready to do anything in 3d.

    Learn the C++ language first, preferably in console mode.
    Then learn GUI programming (and try to avoid the win32 api, which is a C API)
    then try a 2d game (a tetris clone is a good start)
    THEN you can think about 3d.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cleanup of the application...
    By Petike in forum Windows Programming
    Replies: 1
    Last Post: 08-16-2008, 05:23 PM
  2. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 11:53 AM
  3. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  4. socket send() exits app unexceptively
    By Kleid-0 in forum C Programming
    Replies: 9
    Last Post: 07-25-2005, 08:29 AM
  5. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 04:33 AM