Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automatic year in Date Problem :( Pin
Anders Molin14-Apr-01 12:56
professionalAnders Molin14-Apr-01 12:56 
Generaldev c++ Pin
James McCarty12-Apr-01 16:31
James McCarty12-Apr-01 16:31 
QuestionWin98.....Win NT?????? Pin
Richard Cheng12-Apr-01 11:39
Richard Cheng12-Apr-01 11:39 
AnswerRe: Win98.....Win NT?????? Pin
l a u r e n13-Apr-01 23:06
l a u r e n13-Apr-01 23:06 
QuestionWin98.....Win NT?????? Pin
Richard Cheng12-Apr-01 11:21
Richard Cheng12-Apr-01 11:21 
GeneralADO with VC Pin
12-Apr-01 10:51
suss12-Apr-01 10:51 
GeneralWH_SHELL Hook Pin
Mustafa Demirhan12-Apr-01 9:46
Mustafa Demirhan12-Apr-01 9:46 
GeneralSTL compiling problems in New and Memory : syntax error : identifier 'THIS_FILE' Pin
12-Apr-01 8:21
suss12-Apr-01 8:21 
Hi I've tried to use STL in an MFC project. The subject describes the problem rather well.
The strange about this is that THIS_FILE doesn't exists in the lines where the compiler complains.
I checked what THIS_FILE is, and became even more confused. Why would STL use an identifier used by
the MFC macros ASSERT and VERIFY? Anyone who has solved this?

the compiler output:
c:\program\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
c:\program\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
c:\program\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
c:\program\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 operator
new(void))(unsigned int)'
c:\program\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
c:\program\microsoft visual studio\vc98\include\memory(16) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2091: function returns function
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2784: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' : could not deduce template argument for 'void *(__cdecl *)(unsigne
d int,class std::allocator<_Ty> &)' from 'void *(__cdecl *)(unsigned int)'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2785: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' and 'void *(__cdecl *__cdecl operator new(void))(unsigned int)' hav
e different return types
c:\program\microsoft visual studio\vc98\include\memory(16) : see declaration of 'new'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2809: 'operator new' has no formal parameters
c:\program\microsoft visual studio\vc98\include\memory(20) : error C2954: template definitions cannot nest
GeneralError about MFC42D.DLL ... Pin
Hadi Rezaee12-Apr-01 8:14
Hadi Rezaee12-Apr-01 8:14 
GeneralRe: Error about MFC42D.DLL ... Pin
Mustafa Demirhan12-Apr-01 9:51
Mustafa Demirhan12-Apr-01 9:51 
GeneralRe: Error about MFC42D.DLL ... Pin
Mustafa Demirhan12-Apr-01 9:53
Mustafa Demirhan12-Apr-01 9:53 
QuestionHow to Clone a Workspace/Project? Pin
Bryan Anslow12-Apr-01 6:30
Bryan Anslow12-Apr-01 6:30 
AnswerRe: How to Clone a Workspace/Project? Pin
Daniel Ferguson12-Apr-01 10:15
Daniel Ferguson12-Apr-01 10:15 
GeneralRe: How to Clone a Workspace/Project? Pin
Christian Skovdal Andersen14-Apr-01 22:17
Christian Skovdal Andersen14-Apr-01 22:17 
GeneralMy greatest fear... Pin
Brendan Tregear11-Apr-01 16:50
Brendan Tregear11-Apr-01 16:50 
GeneralRe: My greatest fear... Pin
Michael Dunn12-Apr-01 10:40
sitebuilderMichael Dunn12-Apr-01 10:40 
GeneralRe: My greatest fear... Pin
12-Apr-01 11:04
suss12-Apr-01 11:04 
GeneralThanks everyone for your help.... Pin
Brendan Tregear16-Apr-01 12:19
Brendan Tregear16-Apr-01 12:19 
QuestionHow to make a icon from a graphic file? Pin
Richard Cheng11-Apr-01 11:31
Richard Cheng11-Apr-01 11:31 
AnswerRe: How to make a icon from a graphic file? Pin
Andrew Peace14-Apr-01 4:40
Andrew Peace14-Apr-01 4:40 
GeneralRe: How to make a icon from a graphic file? Pin
PJ Arends14-Apr-01 7:35
professionalPJ Arends14-Apr-01 7:35 
GeneralPlease help me with WinHelp (and RoboHelp) Pin
Matt Philmon11-Apr-01 10:33
Matt Philmon11-Apr-01 10:33 
GeneralTake pity on a VB developer... Pin
Neil Kiser11-Apr-01 8:56
Neil Kiser11-Apr-01 8:56 
GeneralSet font and color for printer !!! Pin
Hadi Rezaee11-Apr-01 7:41
Hadi Rezaee11-Apr-01 7:41 
GeneralRe: Set font and color for printer !!! Pin
Richard Cheng11-Apr-01 8:31
Richard Cheng11-Apr-01 8:31 

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.