i have this:
i want to make it so id doesnt bring up the command line i figured a bit out but i wont be at my compiler (dev-c++) for a while and this is bugging me badly would this work and just show the window?
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
wow cant believe i rememberd that! :D so am i right?
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
Are you trying to make a windows application but when you execute your program a console window pops up?
If so, you're creating the wrong type of project, you must be creating a win32 console project, I don't use dev-cpp so I'm not sure how you change the project type sorry.
its a blank project (started out blank) there is a win32 ver. but i dont use it alwways do blank so....
When you create a new project, it must ask you whether you would like to create a console project, windows project, DLL, etc... You must select windows project.
in dev if you start a blank project you dont need to select win32 your code modifies what type of proj. it is
Then what is your problem?
If you get the console window apearing, obviously dev-cpp isn't doing what it's supposed to, so just select a windows project and problem solved.
its the parameters of winmain if i change nCmdShow and the LPSTR it should work
Has anyone ever told you that they worry about your sanity, C+noob?
Only joking, but here's a bit of Windows executable theory for you: there's a flag in the header of each Windows program that indicates whether it uses the console subsystem or just the Windows GUI subsystem.
This isn't controlled by code, the different entry point functions are simply an indication of the project settings. To change this, you need to go into Project Options ("top right icon") and select "Win32 GUI" from the General tab. There may be more you need to change, but I don't know what (I don't use Dev C++, trudged around Google to find that info).
thnbx but thew thing is i like to use blank projects to learn it the hard way and thus would like to know how to do it myself
i compiled it and it works :D