Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Recommendations for language and IDE Pin
ldsdbomber16-Mar-08 22:43
ldsdbomber16-Mar-08 22:43 
GeneralRe: Recommendations for language and IDE Pin
led mike17-Mar-08 5:50
led mike17-Mar-08 5:50 
QuestionHow to compile a Visual Studio 2003 with vs 2008 Pin
limitless13-Mar-08 7:08
limitless13-Mar-08 7:08 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Matthew Faithfull13-Mar-08 7:14
Matthew Faithfull13-Mar-08 7:14 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Maximilien13-Mar-08 7:36
Maximilien13-Mar-08 7:36 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
CPallini13-Mar-08 10:22
mveCPallini13-Mar-08 10:22 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Hamid_RT23-Mar-08 1:03
Hamid_RT23-Mar-08 1:03 
QuestionI need help on writing a function I already wrote but need to alter or convert to something else? Pin
Larry Park13-Mar-08 6:03
Larry Park13-Mar-08 6:03 
I need help on just re-writing this function I created to something else that also functions the same for a friend of mine to use. Here is the function code:

*These are just input parameters
NoErrors is a Bool: passed by reference
amp is an int: passed by reference
string g[]: an array
string key: just a string


void Check(string g[], int& i, bool& NoErrors, string key)
{
while(g[i].length()!=4) //Checks to see if it is 4 letters
{
g[i]="";
cout << "Please enter 4 colors!" << endl << endl;
cin >> g[i];
}
NoErrors = IsStringLike(g[i], "RGBCMYrgbcmy"); //Checks for right input
// The IsStringLike is a function I also have but that does not need to be changed
// If checks to see if the string is like the characters in "RGBCMYrgbcmy"

while(NoErrors == false && g[i]!="Fred")
{
g[i]="";
cout << "Please enter appropriate colors!" << endl << endl;
cin >> g[i];
NoErrors = IsStringLike(g[i], "RGBCMYrgbcmy");
}
//Fred Cheat - allows user to display the code before the game is over
if (g[i] == "Fred")
{
cout << key << endl << endl;
g[i]="";
cin >> g[i];
while(g[i].length()!=4) //Checks to see if it is 4 letters
{
cout << "Please enter 4 colors!" << endl << endl;
cin >> g[i];
}
NoErrors = IsStringLike(g[i], "RGBCMYrgbcmy"); //Checks for right input
while(NoErrors == false && g[i]!="Fred")
{
cout << "Please enter appropriate colors!" << endl << endl;
cin >> g[i];
NoErrors = IsStringLike(g[i], "RGBCMYrgbcmy");
}
}
} // End of function

This function is an error checking function and it checks for valid input in a game I'm creating. I hope that the comments in the code are suffice for you to understand what that particular part does. I just need to somehow alter this code and make sure it still does its basic function but written different. It's a little hard to alter something and make it work the same as the initial function. Please email me if you have any questions. Thanks for your time! I hope you can help.
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 6:11
led mike13-Mar-08 6:11 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
Eytukan13-Mar-08 7:28
Eytukan13-Mar-08 7:28 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
David Crow13-Mar-08 7:53
David Crow13-Mar-08 7:53 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 7:59
led mike13-Mar-08 7:59 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
Mark Salsbery13-Mar-08 8:15
Mark Salsbery13-Mar-08 8:15 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 8:18
led mike13-Mar-08 8:18 
General[GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
followait13-Mar-08 4:51
followait13-Mar-08 4:51 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
bob1697213-Mar-08 4:58
bob1697213-Mar-08 4:58 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Rajkumar R13-Mar-08 6:08
Rajkumar R13-Mar-08 6:08 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Mark Salsbery13-Mar-08 6:52
Mark Salsbery13-Mar-08 6:52 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Californian213-Mar-08 7:36
Californian213-Mar-08 7:36 
GeneralCustom HTTP headers in IWebBrowser2 Pin
berserker_r13-Mar-08 4:50
berserker_r13-Mar-08 4:50 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
Rajkumar R13-Mar-08 5:17
Rajkumar R13-Mar-08 5:17 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
berserker_r13-Mar-08 22:05
berserker_r13-Mar-08 22:05 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
Rajkumar R14-Mar-08 4:03
Rajkumar R14-Mar-08 4:03 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
berserker_r17-Mar-08 0:08
berserker_r17-Mar-08 0:08 
GeneralCIPAddressCtrl doesn't show Tooltips! Pin
Vikas K.13-Mar-08 4:43
Vikas K.13-Mar-08 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.