Click here to Skip to main content
15,924,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MyAtlCtrlInstace->PassMetafile(hMyMetafile) ( VT_METAFILE) Pin
Braulio Dez20-Feb-02 4:09
Braulio Dez20-Feb-02 4:09 
GeneralRe: MyAtlCtrlInstace->PassMetafile(hMyMetafile) ( VT_METAFILE) Pin
Mazdak20-Feb-02 4:32
Mazdak20-Feb-02 4:32 
GeneralProblems with inheritance Pin
20-Feb-02 3:22
suss20-Feb-02 3:22 
GeneralRe: Problems with inheritance Pin
Joaquín M López Muñoz20-Feb-02 3:25
Joaquín M López Muñoz20-Feb-02 3:25 
GeneralRe: Problems with inheritance Pin
Stan Shannon20-Feb-02 4:10
Stan Shannon20-Feb-02 4:10 
GeneralMDI application Pin
20-Feb-02 1:51
suss20-Feb-02 1:51 
GeneralRe: MDI application Pin
Jonathan Craig20-Feb-02 3:12
Jonathan Craig20-Feb-02 3:12 
General24 errors Pin
-Dy20-Feb-02 0:48
-Dy20-Feb-02 0:48 
Arrgghhh!!!! Can anyone tell me what I'm doing wrong or let me know that I'm not lossing my mind?

I have some code, does nothing fancy, compiles fine normally, but today when I compile I get the following:

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(536) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type<br />
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(536) : error C2059: syntax error : 'newline'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(674) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(674) : error C2059: syntax error : 'newline'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(674) : error C2238: unexpected token(s) preceding ';'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(675) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(675) : error C2059: syntax error : 'newline'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(675) : error C2238: unexpected token(s) preceding ';'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(683) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(683) : error C2059: syntax error : 'newline'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(683) : error C2238: unexpected token(s) preceding ';'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(1631) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(1631) : error C2059: syntax error : 'newline'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(122) : error C2059: syntax error : 'string'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2091: function returns function<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2802: static member 'operator new' has no formal parameters<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2333: 'new' : error in function declaration; skipping function body<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2059: syntax error : 'string'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2091: function returns function<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2802: static member 'operator new' has no formal parameters<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2059: syntax error : 'string'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2091: function returns function<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2556: 'void *(__cdecl *__stdcall CNoTrackObject::operator new(void))(unsigned int,const char *,int)' : overloaded function differs only by return type from 'void *(__c<br />
decl *__stdcall CNoTrackObject::operator new(void))(unsigned int)'<br />
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : see declaration of 'new'<br />
E:\develop\absolve\absolve\MainMenuView.cpp(29) : error C2660: 'new' : function does not take 3 parameters<br />
Error executing cl.exe.


Nothing's been changed in the code, so I can't see what the hell I've done, and I can't make it go away!

Any ideas folks?

Dylan Kenneally
London,UK
GeneralRe: 24 errors Pin
Roger Allen20-Feb-02 1:22
Roger Allen20-Feb-02 1:22 
GeneralRe: 24 errors Pin
-Dy20-Feb-02 1:51
-Dy20-Feb-02 1:51 
GeneralRe: 24 errors Pin
Sef Tarbell20-Feb-02 10:23
Sef Tarbell20-Feb-02 10:23 
GeneralHour Glass Pin
AJ12320-Feb-02 0:44
AJ12320-Feb-02 0:44 
Generalconverting a class to a reusable compiled object Pin
Kuniva20-Feb-02 0:44
Kuniva20-Feb-02 0:44 
GeneralRe: converting a class to a reusable compiled object Pin
Jon Hulatt20-Feb-02 0:56
Jon Hulatt20-Feb-02 0:56 
GeneralRe: converting a class to a reusable compiled object Pin
Joaquín M López Muñoz20-Feb-02 2:12
Joaquín M López Muñoz20-Feb-02 2:12 
QuestionHow Do I Detect Activity In a CEdit Control ? Pin
MJ_Karas20-Feb-02 0:37
MJ_Karas20-Feb-02 0:37 
AnswerRe: How Do I Detect Activity In a CEdit Control ? Pin
Jon Hulatt20-Feb-02 0:58
Jon Hulatt20-Feb-02 0:58 
GeneralRe: How Do I Detect Activity In a CEdit Control ? Pin
MJ_Karas20-Feb-02 16:03
MJ_Karas20-Feb-02 16:03 
GeneralDriverName Pin
19-Feb-02 23:50
suss19-Feb-02 23:50 
Questionhow do I Change the Font size of DrawText? Pin
John Cruz19-Feb-02 23:35
John Cruz19-Feb-02 23:35 
AnswerRe: how do I Change the Font size of DrawText? Pin
Roger Allen19-Feb-02 23:42
Roger Allen19-Feb-02 23:42 
GeneralATL IDataObject Pin
Braulio Dez19-Feb-02 23:36
Braulio Dez19-Feb-02 23:36 
QuestionHow to Change Shot-Cut Key of F1 Pin
louis19-Feb-02 22:41
louis19-Feb-02 22:41 
AnswerRe: How to Change Shot-Cut Key of F1 Pin
Roger Allen19-Feb-02 23:38
Roger Allen19-Feb-02 23:38 
AnswerRe: How to Change Shot-Cut Key of F1 Pin
Steen Krogsgaard20-Feb-02 0:07
Steen Krogsgaard20-Feb-02 0:07 

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.