Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to disable Close button? Pin
includeh1014-Mar-06 12:37
includeh1014-Mar-06 12:37 
AnswerRe: how to disable Close button? Pin
Nibu babu thomas14-Mar-06 16:55
Nibu babu thomas14-Mar-06 16:55 
AnswerRe: how to disable Close button? Pin
ThatsAlok14-Mar-06 18:14
ThatsAlok14-Mar-06 18:14 
Questionneed code for PhoneCall program Pin
calizdesi14-Mar-06 11:36
calizdesi14-Mar-06 11:36 
AnswerRe: need code for PhoneCall program Pin
hint_5414-Mar-06 13:56
hint_5414-Mar-06 13:56 
GeneralRe: need code for PhoneCall program Pin
calizdesi15-Mar-06 12:52
calizdesi15-Mar-06 12:52 
GeneralRe: need code for PhoneCall program Pin
hint_5415-Mar-06 13:22
hint_5415-Mar-06 13:22 
Questionifstream issue in Visual C++ .NET 2005 Pin
yellowine14-Mar-06 10:20
yellowine14-Mar-06 10:20 
I got an error for the following codes regarding ifstream:

#include <fstream>
#include <afxtempl.h>

class CMyclass: public CObject
{
public:
CMyclass();
DECLARE_SERIAL (CMyclass)
virtual ~CMyclass();
public:
//
// other methods here
//
BOOL OnLoadData(ifstream& inFile); // load data from a file stream
};


When compile this header, I got "error C2061: syntax error : identifier 'ifstream'" message. I am wondering why 'ifstream' is NOT defined in <fstream> (it should be as msdn says).

Thanks.

-- modified at 16:31 Tuesday 14th March, 2006
AnswerRe: ifstream issue in Visual C++ .NET 2005 Pin
PJ Arends14-Mar-06 10:26
professionalPJ Arends14-Mar-06 10:26 
GeneralRe: ifstream issue in Visual C++ .NET 2005 Pin
yellowine14-Mar-06 10:32
yellowine14-Mar-06 10:32 
AnswerRe: ifstream issue in Visual C++ .NET 2005 Pin
PJ Arends14-Mar-06 10:40
professionalPJ Arends14-Mar-06 10:40 
GeneralRe: ifstream issue in Visual C++ .NET 2005 Pin
yellowine14-Mar-06 10:44
yellowine14-Mar-06 10:44 
QuestionMaking an Object global Pin
viperlogic14-Mar-06 10:18
viperlogic14-Mar-06 10:18 
AnswerRe: Making an Object global Pin
BadKarma14-Mar-06 10:29
BadKarma14-Mar-06 10:29 
GeneralRe: Making an Object global Pin
viperlogic14-Mar-06 11:27
viperlogic14-Mar-06 11:27 
AnswerRe: Making an Object global Pin
Stephen Hewitt14-Mar-06 17:18
Stephen Hewitt14-Mar-06 17:18 
AnswerRe: Making an Object global Pin
ThatsAlok14-Mar-06 18:20
ThatsAlok14-Mar-06 18:20 
AnswerRe: Making an Object global Pin
ThatsAlok14-Mar-06 18:22
ThatsAlok14-Mar-06 18:22 
GeneralRe: Making an Object global Pin
viperlogic14-Mar-06 23:23
viperlogic14-Mar-06 23:23 
GeneralRe: Making an Object global Pin
Stephen Hewitt15-Mar-06 0:06
Stephen Hewitt15-Mar-06 0:06 
GeneralRe: Making an Object global Pin
viperlogic15-Mar-06 2:22
viperlogic15-Mar-06 2:22 
Questionhow to detect hyperlink from word file Pin
mk_le14-Mar-06 9:48
mk_le14-Mar-06 9:48 
QuestionExample on creating an item identifier list Pin
Chris Meech14-Mar-06 9:33
Chris Meech14-Mar-06 9:33 
AnswerRe: Example on creating an item identifier list Pin
Michael Dunn14-Mar-06 10:28
sitebuilderMichael Dunn14-Mar-06 10:28 
GeneralRe: Example on creating an item identifier list Pin
Chris Meech15-Mar-06 2:37
Chris Meech15-Mar-06 2:37 

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.