Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionZip a file without zipping in folder Pin
zahid_ash18-May-06 1:13
zahid_ash18-May-06 1:13 
AnswerRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 1:48
ThatsAlok18-May-06 1:48 
GeneralRe: Zip a file without zipping in folder Pin
zahid_ash18-May-06 2:05
zahid_ash18-May-06 2:05 
GeneralRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 2:11
ThatsAlok18-May-06 2:11 
GeneralRe: Zip a file without zipping in folder Pin
zahid_ash18-May-06 2:14
zahid_ash18-May-06 2:14 
GeneralRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 2:34
ThatsAlok18-May-06 2:34 
Questionneed loop in mfc application(urgent) Pin
makaveli_0718-May-06 1:10
makaveli_0718-May-06 1:10 
AnswerRe: need loop in mfc application(urgent) Pin
ThatsAlok18-May-06 1:48
ThatsAlok18-May-06 1:48 
makaveli_07 wrote:
for (int i=0; i<500; ++i) { random_shuffle(line.begin(), line.end()); // File << "Randomised: " << line << endl; // File << " : " << line << endl; // File << " : " << line << endl; // File << " : " << line << endl; // File << " "<< endl; // File << "Single Row: " << s << " " << s << " " << s <<" " << s << endl; // File << " "<< endl; CString cStr(line.c_str ());cEdit2.SetWindowText ( cStr + "\n"); cEdit2.SetWindowText ("Randomised: "+ cStr + "\n"); UpdateData (FALSE); //tmEnd = time(0); }


Please check this modified version of loop!
CString cStr;
 for (int i=0; i<500; ++i)
 {
     random_shuffle(line.begin(), line.end());
    cStr+=CString("Randomised: ")+CString(line.c_str ())+CString("\n");
       
}   

cEdit2.SetWindowText ( cStr + "\n");



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
QuestionUrgent :- How to save the msg in Drafs in Pocket pc. Pin
Rocky Marrone18-May-06 0:53
Rocky Marrone18-May-06 0:53 
QuestionUrgent :- how to retrieve the Contact list from WAB ? Pin
Rocky Marrone18-May-06 0:51
Rocky Marrone18-May-06 0:51 
QuestionDynamic loading Dll Pin
bujji_bec18-May-06 0:38
bujji_bec18-May-06 0:38 
AnswerRe: Dynamic loading Dll Pin
velayudhan_raj18-May-06 0:51
velayudhan_raj18-May-06 0:51 
AnswerRe: Dynamic loading Dll Pin
Hamid_RT18-May-06 0:54
Hamid_RT18-May-06 0:54 
AnswerRe: Dynamic loading Dll Pin
Hamid_RT18-May-06 1:00
Hamid_RT18-May-06 1:00 
AnswerRe: Dynamic loading Dll Pin
Laxman Auti18-May-06 1:11
Laxman Auti18-May-06 1:11 
AnswerRe: Dynamic loading Dll Pin
voorugonda prashanth18-May-06 1:18
voorugonda prashanth18-May-06 1:18 
AnswerRe: Dynamic loading Dll Pin
NiceNaidu18-May-06 2:26
NiceNaidu18-May-06 2:26 
QuestionHow to use sysinfo Control? Pin
chybin18-May-06 0:36
chybin18-May-06 0:36 
AnswerRe: How to use sysinfo Control? Pin
ThatsAlok18-May-06 1:43
ThatsAlok18-May-06 1:43 
GeneralRe: How to use sysinfo Control? Pin
chybin18-May-06 15:14
chybin18-May-06 15:14 
GeneralRe: How to use sysinfo Control? Pin
ThatsAlok18-May-06 18:53
ThatsAlok18-May-06 18:53 
QuestionWorking with Timers Pin
VinayCool18-May-06 0:29
VinayCool18-May-06 0:29 
AnswerRe: Working with Timers Pin
Michel Wassink18-May-06 0:48
Michel Wassink18-May-06 0:48 
GeneralRe: Working with Timers Pin
VinayCool18-May-06 0:55
VinayCool18-May-06 0:55 
GeneralRe: Working with Timers Pin
Michel Wassink18-May-06 1:01
Michel Wassink18-May-06 1:01 

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.