How can i make a normal application, not win32?
What program...
What source code...
How can i make a normal application, not win32?
What program...
What source code...
Choose "console" application in your IDE (you didn't say which).
Ok but it still starts in a system32 screen??? ( i mean that black screen) What can i do about that???
btw. im using Visual C++ express edition
and btw. (i know im noob) what does IDE mean?
Last edited by jobbie; 01-20-2006 at 08:11 AM.
What do you mean by "normal" application. On win32 there are two main types of application these are windows console applications and windows GUI applications.
Console applications display a console with text, GUI applications don't display a console and normally create a window.
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.Originally Posted by jobbie
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?
A GUI application has a WinMain function instead of a main function. Some compilers will require to set it to GUI in the project settings.
To make a game you would use DirectX or OpenGL.
Before you do that you might want to read some tutorials such as those written by The Forger which will show you how a GUI application works.
Sorry that i have to ask one more thing...
But i have an error: Can't find windows.h, there's no such file...
What can i do bout that?
do you happen to use MSVC++2005 express edition? if so you need to download Platform SDK from microsoft.
If you have a legitimate copy of your compiler and IDE, and it was installed correctly, then your IDE should be able to locate the appropriate headers and libraries. If it cannot, and it is a genuine copy, I suggest you de-install it and re-install using the installers defaults.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
MSVC++ 2005 express dosen't come with the headers or libraries to create window API applications. The instructions say you need to download the SDK as well.Originally Posted by adrianxw
Make sure to do a full install of the SDK, I used the custom install and it didn't install a need library.
Last edited by Quantum1024; 01-20-2006 at 10:09 AM.
The Forger is not very usefull to me... because it's written in C..
Thank you all very much... my compiler now accepts windows.h and stuff...
Does anyone know a good site for a free Open GL download?
Last edited by jobbie; 01-20-2006 at 01:46 PM.
is there btw another tutorial like The Forger that is written in C++
and does anyone know a good site for a free Open GL download?
the error with this is:Code:#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; }
SDK special.cpp
c:\documents and settings\waalwijk\mijn documenten\visual studio 2005\projects\sdk special\sdk special\sdk special.cpp(6) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
what do i have to do bout this?
Last edited by jobbie; 01-20-2006 at 02:14 PM.
The code above in perfectly valid c++ the reason it isn't compiling is that the compiler is set to unicode.
To make the code work as it is open your project in MSVC++ and go to the project menu and click properties. underneath configuration properties select general and then set charactor set to "not set".
You can also work in unicode by placing an L before text strings
Code:MessageBox(NULL, L"Goodbye, cruel world!", L"Note", MB_OK);