Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to auto close the MessageBox dialog in SDK Program? Pin
«_Superman_»10-Nov-09 16:08
professional«_Superman_»10-Nov-09 16:08 
QuestionMFC Multiple Views Pin
Cipher 2210-Nov-09 11:40
Cipher 2210-Nov-09 11:40 
AnswerRe: MFC Multiple Views Pin
«_Superman_»10-Nov-09 12:00
professional«_Superman_»10-Nov-09 12:00 
QuestionCreateEX() causing odd results in Vista/7 Pin
anthonym710-Nov-09 9:37
anthonym710-Nov-09 9:37 
AnswerRe: CreateEX() causing odd results in Vista/7 Pin
«_Superman_»10-Nov-09 10:44
professional«_Superman_»10-Nov-09 10:44 
GeneralRe: CreateEX() causing odd results in Vista/7 Pin
anthonym710-Nov-09 10:49
anthonym710-Nov-09 10:49 
QuestionPassword scramble PinPopular
Chris081210-Nov-09 8:21
Chris081210-Nov-09 8:21 
AnswerRe: Password scramble Pin
«_Superman_»10-Nov-09 8:30
professional«_Superman_»10-Nov-09 8:30 
Chris0812 wrote:
if( c >= '0' && c <= '9' )
char repass[256];
for (int i=passwdlen-1; i>=0; i--) strcat(rpass, passwd[i]);


The if condition looks like it is creating repass if the condition is met and nothing more.
I believe the first parameter of strcat must be repass which is a character array and not rpass which is an integer passed in as parameter.

Chris0812 wrote:
int main(int argc,char *argv[], int rpass, int passwdlen, int passwd)


I've never seen such a main function with so many parameters.
That wouldn't work.
main takes a max of 3 parameter - int main(int argc, char* argv[], char* envp[])

And to reverse a string you can use strrev.
Also you can use strtok to search for a token within a string like "aeiou".

«_Superman
I love work. It gives me something to do between weekends.

Microsoft MVP (Visual C++)

GeneralRe: Password scramble Pin
Chris081210-Nov-09 8:47
Chris081210-Nov-09 8:47 
GeneralRe: Password scramble Pin
Chris081210-Nov-09 8:51
Chris081210-Nov-09 8:51 
AnswerRe: Password scramble Pin
David Crow10-Nov-09 9:58
David Crow10-Nov-09 9:58 
QuestionHow to get the javascript part Pin
raja jamwal10-Nov-09 7:38
raja jamwal10-Nov-09 7:38 
GeneralRe: How to get the javascript part Pin
22491711-Nov-09 6:12
22491711-Nov-09 6:12 
AnswerRe: How to get the javascript part Pin
raja jamwal31-Dec-09 8:02
raja jamwal31-Dec-09 8:02 
QuestionWant to add a static horizontal splitter to an already created view in sdi app Pin
Member 570390510-Nov-09 7:02
Member 570390510-Nov-09 7:02 
AnswerRe: Want to add a static horizontal splitter to an already created view in sdi app Pin
«_Superman_»10-Nov-09 8:18
professional«_Superman_»10-Nov-09 8:18 
QuestionIntegration of WinForm and Visual C++ Pin
kikoso10-Nov-09 5:47
kikoso10-Nov-09 5:47 
AnswerRe: Integration of WinForm and Visual C++ Pin
«_Superman_»10-Nov-09 8:24
professional«_Superman_»10-Nov-09 8:24 
GeneralRe: Integration of WinForm and Visual C++ Pin
kikoso11-Nov-09 6:17
kikoso11-Nov-09 6:17 
GeneralRe: Integration of WinForm and Visual C++ Pin
kikoso12-Nov-09 4:11
kikoso12-Nov-09 4:11 
QuestionToolbar control access Pin
m_mun10-Nov-09 3:13
m_mun10-Nov-09 3:13 
AnswerRe: Toolbar control access Pin
LunaticFringe10-Nov-09 6:59
LunaticFringe10-Nov-09 6:59 
GeneralRe: Toolbar control access Pin
«_Superman_»10-Nov-09 7:46
professional«_Superman_»10-Nov-09 7:46 
GeneralRe: Toolbar control access Pin
LunaticFringe10-Nov-09 8:15
LunaticFringe10-Nov-09 8:15 
QuestionNot able to run the VC++ 2005 exe in remote machine. Pin
jain_MS10-Nov-09 1:57
jain_MS10-Nov-09 1:57 

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.