Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Retrival of from EXE Pin
Ryan Binns14-May-06 18:58
Ryan Binns14-May-06 18:58 
AnswerRe: Retrival of from EXE Pin
_AnsHUMAN_ 14-May-06 19:00
_AnsHUMAN_ 14-May-06 19:00 
GeneralRe: Retrival of from EXE Pin
birajendu14-May-06 19:12
birajendu14-May-06 19:12 
GeneralRe: Retrival of from EXE Pin
ThatsAlok14-May-06 23:40
ThatsAlok14-May-06 23:40 
QuestionSending Bytes to Activex VC++.Net Pin
satsumatable14-May-06 18:40
satsumatable14-May-06 18:40 
Questionhow to convert series of BMP to a movie(AVI) Pin
ramyasangeet14-May-06 18:38
ramyasangeet14-May-06 18:38 
AnswerRe: how to convert series of BMP to a movie(AVI) Pin
Cool Ju14-May-06 19:06
Cool Ju14-May-06 19:06 
Questionhelp on MFC (urgent) Pin
makaveli_0714-May-06 17:47
makaveli_0714-May-06 17:47 
i need a help or hint by anyone here..please help me..this is the codes i ve done by c++..n now i want to do the same thing as a application in MFC using c++ how to change it....please tell me as soon as possible...or leave me ur msn messenger details so that i contact you directly..thank you..
I m a very beginner for MFC so plese help me on this!


<code>#include <ctime>
#include <iostream>
#include <string>
#include <algorithm>
#include <fstream>
using namespace std;


time_t tmStart, tmEnd;

void DoStuff()
{
tmStart = time(0);

ifstream fin;
fin.open("data.txt",ios::in);

ofstream File("MyFile.txt",ios::out);

//cout << "Enter digit: ";

char str[10];
//cout << "sr"<<endl;
fin.getline(str,sizeof(str),'\n');


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



for (int i=0; i<50000; ++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;


tmEnd = time(0);

}
File.close ();
fin.close ();
cout << tmEnd-tmStart << " seconds " << endl;
}

int main(int argc, char* argv[])
{
DoStuff();

return 0;

}
</code>
AnswerRe: help on MFC (urgent) Pin
John M. Drescher14-May-06 18:09
John M. Drescher14-May-06 18:09 
GeneralRe: help on MFC (urgent) Pin
makaveli_0714-May-06 18:24
makaveli_0714-May-06 18:24 
GeneralRe: help on MFC (urgent) Pin
makaveli_0714-May-06 18:31
makaveli_0714-May-06 18:31 
GeneralRe: help on MFC (urgent) Pin
Christian Graus14-May-06 18:59
protectorChristian Graus14-May-06 18:59 
AnswerRe: help on MFC (urgent) Pin
bob1697214-May-06 18:16
bob1697214-May-06 18:16 
GeneralRe: help on MFC (urgent) Pin
makaveli_0714-May-06 18:31
makaveli_0714-May-06 18:31 
QuestionRe: help on MFC (urgent) Pin
David Crow15-May-06 6:25
David Crow15-May-06 6:25 
Questionfunction to calculate logarithm of number Pin
cuongcntt200214-May-06 15:41
cuongcntt200214-May-06 15:41 
AnswerRe: function to calculate logarithm of number Pin
Joe Woodbury14-May-06 16:05
professionalJoe Woodbury14-May-06 16:05 
AnswerRe: function to calculate logarithm of number Pin
Ryan Binns14-May-06 19:00
Ryan Binns14-May-06 19:00 
QuestionHow do I detect ports? Pin
guts taicho14-May-06 15:08
guts taicho14-May-06 15:08 
AnswerRe: How do I detect ports? Pin
NiceNaidu14-May-06 19:11
NiceNaidu14-May-06 19:11 
AnswerRe: How do I detect ports? Pin
ThatsAlok15-May-06 19:12
ThatsAlok15-May-06 19:12 
Question(sockets) why does it do this? Pin
Sam 200614-May-06 13:03
Sam 200614-May-06 13:03 
AnswerRe: (sockets) why does it do this? Pin
Michael Dunn14-May-06 13:10
sitebuilderMichael Dunn14-May-06 13:10 
AnswerRe: (sockets) why does it do this? Pin
Nishad S14-May-06 17:46
Nishad S14-May-06 17:46 
Questionerror in debugging directshow filter Pin
yongwpi14-May-06 12:11
yongwpi14-May-06 12:11 

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.