once the program has been compiled, and you open it must it open in a dos window?? can u not give it its own window like when you open paint it has its own window named paint
once the program has been compiled, and you open it must it open in a dos window?? can u not give it its own window like when you open paint it has its own window named paint
Well check your settings in the compiler.
You are able to choose where you want to output your exe files. Then its simply the matter of finding it and executing it.
I hope this is what your asking.
"Cut the foreplay and just ask, man."
Man, did you even read his question?? Geez.
WHat you are building, is a console application, you need to create a win32 one. I think you know nothing about Win32 programming, so I suggest to get a book or read tutorials.
Y3K Network http://www.y3knetwork.com
Bringing the software of the future on the net.
stop insulting ppl... there is a way a bad way but it does do something like you wanted
this will make a program open a program and on top in the status bar it should give you the name of your program in paints case it would sayCode:#include <stdlib.h> int main() { system("yourfile.exe"); return 0; }
Paint
and now it will say
yourfile
Dev C++
Win XP/2k/98
I DO NOT TAKE CLASSES I DONT GET HOMEWORK THIS IS NOT A HOMEWORK QUESTION!!!
He's lean he's keen... He's the spank machine!
why is it a bad way??
There's nothing bad about that way. All you're doing is sending dos the command to run the program (in case you didn't know that's about what windows does, manipulate dos....in 3x-9x). If you include windows.h you can use shellExecute.
But i don't think that pertains to the original posters question. I just posted a win32 tutorial zip file in on of the threads on this board, check it out.
PHP and XML
Let's talk about SAX
is win32 just like C++ or C? is it a seperate language cuz i can't be bothered to learn a new language i am sticking with C++
win32 programming is done in c if you use the API, and c++ if you use mfc. Read a tutorial and you'll learn these things.
PHP and XML
Let's talk about SAX
one more thing..... when i have put the "bad" code in or any other code and click compile & run i get a message saying unable to run program file
make sure the program isn't still running, sometimes when using visual c we tend to leave the program run after the last compile (the program you were compiling, not msvc). Make sure the program's closed, if it is, save your workspace and select project, clean. Then try again.
PHP and XML
Let's talk about SAX
Ignore the post about the system("yourfile.exe"); , that's not at all what you were asking about, I think the poster didn't understand your question.
Just start learning about the windows API.