Click here to Skip to main content
15,878,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: extern variable Pin
ThatsAlok26-Apr-09 18:31
ThatsAlok26-Apr-09 18:31 
Questionconstructor and OnInitDialog() Pin
durban225-Apr-09 21:21
durban225-Apr-09 21:21 
AnswerRe: constructor and OnInitDialog() Pin
Stuart Dootson25-Apr-09 21:42
professionalStuart Dootson25-Apr-09 21:42 
AnswerRe: constructor and OnInitDialog() Pin
ThatsAlok26-Apr-09 21:18
ThatsAlok26-Apr-09 21:18 
QuestionFont text on command button Pin
durban225-Apr-09 21:16
durban225-Apr-09 21:16 
AnswerRe: Font text on command button Pin
Stuart Dootson25-Apr-09 21:38
professionalStuart Dootson25-Apr-09 21:38 
AnswerRe: Font text on command button Pin
Hamid_RT25-Apr-09 22:51
Hamid_RT25-Apr-09 22:51 
QuestionMFC exe Pin
linux_xjtu25-Apr-09 17:36
linux_xjtu25-Apr-09 17:36 
when i try to build ALMTree.hand ALMTree.cpp file in mfc application everything is all right at first.
Then i would like to employ <iostream> in .cpp file to prompt some hints with the help of "cout"
so in the .cpp file, #include <iostrem> is used.
But lots of errors occurred:

:\program files\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
d:\program files\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
d:\program files\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
d:\program files\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
d:\program files\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
d:\program files\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl op
erator new(void))(unsigned int)'

is there anyone who can offer help?Confused | :confused:

Attached is the .cpp file briefly:

// ALMTree.cpp: implementation of the CALMTree class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "TALM_AED.h"
#include "ALMTree.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//#include <iostream>
//using namespace std;


CALMTree::CALMTree()
{
****************************************
// cout<<"The tree is constructed";
****************************************
}

CALMTree::~CALMTree()
{
Destroy();
}

CALMTree::CALMTree(const CALMTree& listSrc)
{
int i, size;
size = listSrc.GetTreeSize();
if(size<=0)
return;

}

const CALMTree& CALMTree:: operator=(const CALMTree& listSrc)
{}
AnswerRe: MFC exe Pin
Stuart Dootson25-Apr-09 21:32
professionalStuart Dootson25-Apr-09 21:32 
Question3d object with transparent background Pin
high25-Apr-09 9:38
high25-Apr-09 9:38 
QuestionHow to Find files using http url path? Pin
SIJUTHOMASP25-Apr-09 6:05
professionalSIJUTHOMASP25-Apr-09 6:05 
AnswerRe: How to Find files using http url path? Pin
Stuart Dootson25-Apr-09 6:12
professionalStuart Dootson25-Apr-09 6:12 
GeneralRe: How to Find files using http url path? Pin
SIJUTHOMASP25-Apr-09 6:50
professionalSIJUTHOMASP25-Apr-09 6:50 
QuestionRe: How to Find files using http url path? Pin
David Crow25-Apr-09 16:46
David Crow25-Apr-09 16:46 
AnswerRe: How to Find files using http url path? Pin
Hamid_RT25-Apr-09 22:56
Hamid_RT25-Apr-09 22:56 
AnswerRe: How to Find files using http url path? Pin
SIJUTHOMASP26-Apr-09 3:37
professionalSIJUTHOMASP26-Apr-09 3:37 
GeneralRe: How to Find files using http url path? Pin
ThatsAlok26-Apr-09 18:34
ThatsAlok26-Apr-09 18:34 
QuestionStartup program blocked. Pin
Le@rner25-Apr-09 2:57
Le@rner25-Apr-09 2:57 
Questionhead file including problem Pin
linux_xjtu25-Apr-09 0:19
linux_xjtu25-Apr-09 0:19 
AnswerRe: head file including problem Pin
Garth J Lancaster25-Apr-09 0:37
professionalGarth J Lancaster25-Apr-09 0:37 
GeneralRe: head file including problem Pin
linux_xjtu25-Apr-09 2:24
linux_xjtu25-Apr-09 2:24 
GeneralRe: head file including problem Pin
Stuart Dootson25-Apr-09 3:26
professionalStuart Dootson25-Apr-09 3:26 
Questionsetting active audio output vista [modified] Pin
Snoepie25-Apr-09 0:03
Snoepie25-Apr-09 0:03 
AnswerRe: setting active audio output vista Pin
Yovav25-Apr-09 0:21
Yovav25-Apr-09 0:21 
GeneralRe: setting active audio output vista Pin
Snoepie25-Apr-09 0:37
Snoepie25-Apr-09 0: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.