Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwrong variable value from debugger on x64 Pin
George_George10-Jul-08 21:54
George_George10-Jul-08 21:54 
QuestionHow can I make theme-awared transparent control with UXTheme library (MFC / VC++ 2005) Pin
xanagan66610-Jul-08 21:39
xanagan66610-Jul-08 21:39 
Questioni can't understand why this result is showed~ Pin
Jung Seng Won10-Jul-08 21:36
Jung Seng Won10-Jul-08 21:36 
AnswerRe: i can't understand why this result is showed~ Pin
_AnsHUMAN_ 10-Jul-08 21:44
_AnsHUMAN_ 10-Jul-08 21:44 
AnswerRe: i can't understand why this result is showed~ Pin
Cedric Moonen10-Jul-08 21:47
Cedric Moonen10-Jul-08 21:47 
AnswerRe: i can't understand why this result is showed~ Pin
SandipG 10-Jul-08 21:50
SandipG 10-Jul-08 21:50 
AnswerRe: i can't understand why this result is showed~ Pin
CPallini10-Jul-08 22:02
mveCPallini10-Jul-08 22:02 
AnswerRe: i can't understand why this result is showed~ Pin
Stephen Hewitt10-Jul-08 22:12
Stephen Hewitt10-Jul-08 22:12 
Assuming you're using C++ forget about all that C-style file manipulation bollocks and do something like the following:

// VanillaConsole.cpp : Defines the entry point for the console application.
//
 
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
 
int main()
{
	ifstream ifs("C:\\Data.txt");
	if (!ifs)
	{
		cerr << "Failed to open file!" << endl;
		return -1;
	}
 
	string line;
	while (getline(ifs, line))
	{
		cout << line << endl;
	}
 
	return 0;
}


Easier to understand and no limit on the length of a line.

Steve

Questiongraph using ProEssentials v6 in vc++ Pin
ani_ikram10-Jul-08 21:32
ani_ikram10-Jul-08 21:32 
QuestionHow to communicate between two activex? Pin
manish.patel10-Jul-08 21:09
manish.patel10-Jul-08 21:09 
QuestionConvert English letter to japenese Pin
manju#12310-Jul-08 20:54
manju#12310-Jul-08 20:54 
QuestionRe: Convert English letter to japenese Pin
jazy110-Jul-08 23:09
jazy110-Jul-08 23:09 
AnswerRe: Convert English letter to japenese [modified] Pin
Michael Schubert11-Jul-08 2:48
Michael Schubert11-Jul-08 2:48 
QuestionHow to create a .h file in C++? Pin
Shah Ravi10-Jul-08 20:50
Shah Ravi10-Jul-08 20:50 
AnswerRe: How to create a .h file in C++? Pin
Richard Andrew x6410-Jul-08 20:57
professionalRichard Andrew x6410-Jul-08 20:57 
GeneralRe: How to create a .h file in C++? Pin
Shah Ravi10-Jul-08 21:01
Shah Ravi10-Jul-08 21:01 
GeneralRe: How to create a .h file in C++? Pin
Richard Andrew x6410-Jul-08 21:05
professionalRichard Andrew x6410-Jul-08 21:05 
GeneralRe: How to create a .h file in C++? Pin
Cedric Moonen10-Jul-08 21:39
Cedric Moonen10-Jul-08 21:39 
AnswerRe: How to create a .h file in C++? Pin
T.RATHA KRISHNAN10-Jul-08 22:47
T.RATHA KRISHNAN10-Jul-08 22:47 
AnswerRe: How to create a .h file in C++? Pin
pallaka10-Jul-08 22:47
pallaka10-Jul-08 22:47 
QuestionMemoryleak Pin
T.RATHA KRISHNAN10-Jul-08 20:30
T.RATHA KRISHNAN10-Jul-08 20:30 
AnswerRe: Memoryleak Pin
Cedric Moonen10-Jul-08 20:38
Cedric Moonen10-Jul-08 20:38 
QuestionRe: Memoryleak Pin
T.RATHA KRISHNAN10-Jul-08 20:45
T.RATHA KRISHNAN10-Jul-08 20:45 
AnswerRe: Memoryleak Pin
Cedric Moonen10-Jul-08 20:46
Cedric Moonen10-Jul-08 20:46 
AnswerRe: Memoryleak Pin
Richard Andrew x6410-Jul-08 20:43
professionalRichard Andrew x6410-Jul-08 20:43 

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.