My main goal was to write a multiuser network game..
Ive got a nice chat client and server allready to use..
I took all my code for irrlicht and put it into a header file..
Now beings there are many funtions in this header file how do I go about attaching it to my user sign in button..
At this time the sign in button just signs the person onto the chat client using the name they chose..
Example below..
}
if(pkg.request == SIGNIN){
bSignIn = TRUE;
m_wndShow.ShowMessage(pkg);
OnSignOut();
}
Its something like this..
I tried to rename the main to something else like mainwindow and just added it to the code like this..
}
if(pkg.request == SIGNIN){
bSignIn = TRUE;
m_wndShow.ShowMessage(pkg);
OnSignOut();
mainwindow();
}
But this dosnt work lol..
Im stumped on how to call the entire program code ive writen to run along with signing in the user..
So when they click on sign in It will load and run my code with the engine in its own window as if it was executing a second program..
I had considered useing a exe merge program and just merging them together but not only do most antivirus software not like these files it would also execute both the chat and 3d window at the same time wether the user was signed in or not...
So to clear this up and make more sense, I have a working program that I want to merge my irricht code into. So that when the sign in button is pressed the entire irricht code is executed as well..
It says that I could post some C++ questions here so I hope that someone here can help..
Thanks any help that anyone gives..
![Smile :)](./images/smilies/icon_smile.gif)