Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create 10,000 threads in Windows 2000 in service? Pin
JWood18-Apr-05 9:47
JWood18-Apr-05 9:47 
AnswerRe: How to create 10,000 threads in Windows 2000 in service? Pin
rwestgraham18-Apr-05 12:42
rwestgraham18-Apr-05 12:42 
GeneralCTreeCtrl ordered insertion. Pin
Maximilien18-Apr-05 3:44
Maximilien18-Apr-05 3:44 
GeneralRe: CTreeCtrl ordered insertion. Pin
mark novak18-Apr-05 3:57
mark novak18-Apr-05 3:57 
GeneralCImage to Bitmap Pin
Anonymous18-Apr-05 3:27
Anonymous18-Apr-05 3:27 
GeneralRe: CImage to Bitmap Pin
mark novak18-Apr-05 4:11
mark novak18-Apr-05 4:11 
GeneralFile creation and Reading Pin
S Palip18-Apr-05 3:00
S Palip18-Apr-05 3:00 
GeneralRe: File creation and Reading Pin
mark novak18-Apr-05 3:52
mark novak18-Apr-05 3:52 
If you want portability, use the STL and don't bother with the Win32 API calls.

// read a file

std::ifstream f("localfile.txt"); // this will get localfile.txt in the current directy
if(f)
{
std::string contents;
std::ostringstream ss;
ss << f.rdbuf();
ss.str().swap(contents);
// file buffer is now in contents
}
f.close();

// write a file

std::ofstream f("localfile.txt");
f << "Bienvenidos a Mexico";
f.close();
GeneralRe: File creation and Reading Pin
David Crow18-Apr-05 8:37
David Crow18-Apr-05 8:37 
GeneralLISP Pin
AAntix18-Apr-05 2:03
AAntix18-Apr-05 2:03 
Questionconvert double to ascii and then ascii to string in vc++? Pin
nehathoma18-Apr-05 1:09
nehathoma18-Apr-05 1:09 
AnswerRe: convert double to ascii and then ascii to string in vc++? Pin
David Crow18-Apr-05 2:38
David Crow18-Apr-05 2:38 
GeneralRe: convert double to ascii and then ascii to string in vc++? Pin
nehathoma18-Apr-05 17:45
nehathoma18-Apr-05 17:45 
GeneralListView Scroll Repaint Problem... Pin
usman999_118-Apr-05 0:20
usman999_118-Apr-05 0:20 
GeneralRe: ListView Scroll Repaint Problem... Pin
Jack Puppy18-Apr-05 0:37
Jack Puppy18-Apr-05 0:37 
GeneralRe: ListView Scroll Repaint Problem... Pin
usman999_118-Apr-05 0:41
usman999_118-Apr-05 0:41 
GeneralUnable to load bitmap Pin
Nilesh K.18-Apr-05 0:19
Nilesh K.18-Apr-05 0:19 
GeneralRe: Unable to load bitmap Pin
Jack Puppy18-Apr-05 0:44
Jack Puppy18-Apr-05 0:44 
GeneralRe: Unable to load bitmap Pin
Nilesh K.18-Apr-05 0:53
Nilesh K.18-Apr-05 0:53 
GeneralRe: Unable to load bitmap Pin
usman999_118-Apr-05 0:47
usman999_118-Apr-05 0:47 
GeneralCommand line parameters with MFC Pin
Trollslayer17-Apr-05 23:55
mentorTrollslayer17-Apr-05 23:55 
GeneralRe: Command line parameters with MFC Pin
Arsalan Malik18-Apr-05 0:27
Arsalan Malik18-Apr-05 0:27 
GeneralRe: Command line parameters with MFC Pin
Bleu Canard18-Apr-05 1:03
Bleu Canard18-Apr-05 1:03 
GeneralRe: Command line parameters with MFC Pin
Arsalan Malik18-Apr-05 1:17
Arsalan Malik18-Apr-05 1:17 
GeneralRe: Command line parameters with MFC Pin
Trollslayer18-Apr-05 1:39
mentorTrollslayer18-Apr-05 1:39 

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.