Alright, thanks! One more question: How to call WinMain?
Type: Posts; User: darealnash
Alright, thanks! One more question: How to call WinMain?
I`m trying to learn windows programming, and so far i don`t understand anything harder than a messagebox... I began with
MessageBox(NULL,"Whatever text you want in the window","Whatever you want...
When i click on my computer, my pc does nothing... What could be the cause of that? I tried a joke with my little sister, which involved editing the register, and making a new DWORD object called...
BTW, thantos, all that was needed was to change the prototypes into function calls. That keeps it running until you type quit as a command
Thanks a lot guys!
it closes right away when i open the program
Well, i`ve tried this:
#include <iostream.h>
char command[99999];
void exec();
void call();
int main()
and what`s in the faq doesnt work
Well, ive tried making the user input quit to exit:
#include <iostream.h>
#include <string.h>
char command[99999];
int main()
{
cout << "Command>";
I want to make a program similar to the dos prompt (i dont know the english name for it) in wich you can issue commands to your system (like 'netsat -n' or 'ping 127.0.0.1'). It works, but it should...
Okay, i'll learn how to use edit controls. Thanks. I`m just a beginner at windows programming, and i`ve only just learned how to create multiple lines of text in a messagebox, so i still got a lot of...
I found something about it, but thats way too complicated. I mean similar to cin <<.
what`s an edit control?
I am beginning to understand windows programming, and i know how to "print" text in my programs (MessageBox(); ) but i dont know how to make input. Please tell me.
Hey brain, thats chinese sign for dragon right?
OS? What`s that?
I have a question, i aready found out about
system ("PAUSE");, but are there other commands using 'system' and if yes, please explain their use.
Thanks!!!
"untitled1.cpp": E2268 Call to undefined function 'mountian' in function mountain() at line 72
"untitled1.cpp": E2134 Compound statement missing } in function mountain() at line 77
"untitled1.cpp": E2451 Undefined symbol 'action' in function mountain() at line 70
"untitled1.cpp": E2268 Call to undefined function 'mountian' in function mountain() at line 72
"untitled1.cpp":...
I don`t think thats what i mean, but here`s my code:
#include <iostream.h>
int main()
{
int input;
cout<<"This game simulates a rich life."<<endl;
1 cout<<"Input menu function"<<endl;
...
Do function calls make the program go to a certain part of the code (similar to goto) or something else? Because i need to repeat a certain part of the code after a certain input.
Well, i don`t really know what you`re talking about when you talk about 'function calls' but i`m currently working on a game-like thing, for which i think i need goto. But how do I set labels? And do...
I`ve tried the tutorials, but i couldn`t find anything about goto. I don`t know how to set labels and i don`t know how to use goto. Examples would really help.