Click here to Skip to main content
15,883,705 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using C++ source code to control Logitech gampad Pin
ghmy8218-May-06 15:02
ghmy8218-May-06 15:02 
GeneralRe: Using C++ source code to control Logitech gampad Pin
Justin Tay18-May-06 18:12
Justin Tay18-May-06 18:12 
Question. What are the different types of polymorphism? Pin
Scorpio17-May-06 21:51
Scorpio17-May-06 21:51 
AnswerRe: . What are the different types of polymorphism? Pin
Eytukan17-May-06 22:10
Eytukan17-May-06 22:10 
AnswerRe: . What are the different types of polymorphism? Pin
Laxman Auti17-May-06 22:14
Laxman Auti17-May-06 22:14 
GeneralRe: . What are the different types of polymorphism? Pin
Scorpio17-May-06 22:18
Scorpio17-May-06 22:18 
AnswerRe: . What are the different types of polymorphism? Pin
ThatsAlok17-May-06 23:17
ThatsAlok17-May-06 23:17 
Questionrandowm shuffle( ) in MFC Pin
makaveli_0717-May-06 21:39
makaveli_0717-May-06 21:39 
i used random shuffle function in MFC application it doesnt working i dont know why...anyone knows the reason...

<code>void CConeverterDlg::OnEnter()
{
// TODO: Add your control notification handler code here

CString str;
// char str[13];
//cEdit.GetWindowText (str);
//AfxMessageBox(myStr);



//tmStart = time(0);


CTime time=CTime::GetCurrentTime ();
CString strttime= time.Format ("%Y%m%D%H%M%S");
// cEdit2.SetWindowText (strttime+"\n");//;(str)
//cEdit2.SetWindowText (strttime+"\n");


string line(str);
//line.c_str (),100);
//fin.open("data.txt");
// cout << str<<endl;



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");


//tmEnd = time(0);

}
CTime time1=CTime::GetCurrentTime ();
CString strtti= time1.Format ("%Y%m%D%H%M%S");
cEdit1.SetWindowText (str);
cEdit1.SetWindowText (strtti+"\n");
//cout << tmEnd-tmStart << " seconds " << endl;





}
</code>
QuestionRe: randowm shuffle( ) in MFC Pin
Maxwell Chen17-May-06 21:47
Maxwell Chen17-May-06 21:47 
AnswerRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 21:56
makaveli_0717-May-06 21:56 
GeneralRe: randowm shuffle( ) in MFC Pin
Maxwell Chen17-May-06 22:01
Maxwell Chen17-May-06 22:01 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:07
makaveli_0717-May-06 22:07 
GeneralRe: randowm shuffle( ) in MFC Pin
Maxwell Chen17-May-06 22:04
Maxwell Chen17-May-06 22:04 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:21
makaveli_0717-May-06 22:21 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:31
makaveli_0717-May-06 22:31 
GeneralRe: randowm shuffle( ) in MFC Pin
Maxwell Chen18-May-06 1:51
Maxwell Chen18-May-06 1:51 
AnswerRe: randowm shuffle( ) in MFC Pin
Laxman Auti17-May-06 22:12
Laxman Auti17-May-06 22:12 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:36
makaveli_0717-May-06 22:36 
AnswerRe: randowm shuffle( ) in MFC Pin
kakan17-May-06 22:28
professionalkakan17-May-06 22:28 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:34
makaveli_0717-May-06 22:34 
GeneralRe: randowm shuffle( ) in MFC Pin
kakan17-May-06 22:37
professionalkakan17-May-06 22:37 
GeneralRe: randowm shuffle( ) in MFC Pin
makaveli_0717-May-06 22:50
makaveli_0717-May-06 22:50 
GeneralRe: randowm shuffle( ) in MFC Pin
kakan17-May-06 22:59
professionalkakan17-May-06 22:59 
QuestionChild to Popup dynamically... Pin
Nishad S17-May-06 21:18
Nishad S17-May-06 21:18 
AnswerRe: Child to Popup dynamically... Pin
_AnsHUMAN_ 17-May-06 21:49
_AnsHUMAN_ 17-May-06 21:49 

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.