Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing language Pin
Atif Mushtaq10-Oct-03 0:12
Atif Mushtaq10-Oct-03 0:12 
Generaldetecting network computers Pin
YanivNahum9-Oct-03 2:36
YanivNahum9-Oct-03 2:36 
GeneralRe: detecting network computers Pin
David Crow9-Oct-03 3:13
David Crow9-Oct-03 3:13 
GeneralListbox help Pin
NewHSKid9-Oct-03 1:41
NewHSKid9-Oct-03 1:41 
GeneralRe: Listbox help Pin
jhwurmbach9-Oct-03 1:57
jhwurmbach9-Oct-03 1:57 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:02
Steve S9-Oct-03 2:02 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:05
Steve S9-Oct-03 2:05 
QuestionVector inside MFC app? Pin
Zizilamoroso9-Oct-03 1:00
Zizilamoroso9-Oct-03 1:00 
How can I use vector.h in an MFC app?

class_a.cpp:
<br />
#include "stdafx.h"<br />
#include "class_b.h"<br />


class_b.h:
<br />
#include "vector"<br />


class_b.cpp:
<br />
#include "stdafx.h><br />
#include "class_b.h"<br />


There's no code yet.

Compiling class_b.cpp is no problem.

But compiling class_a results in a whole bunch of compiler errors (inside new.h, memory.h, ...). I think it has something to do with namespaces, but I'm not sure. I'm not declaring nor using namespaces of my own. Could also be an debug/release prob.

These are (part of) the errors:
<br />
vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'<br />
vc98\include\new(35) : error C2091: function returns function<br />
vc98\include\new(35) : error C2809: 'operator new' has no formal parameters<br />
vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'<br />
vc98\include\new(37) : error C2091: function returns function<br />
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)'<br />
vc98\include\new(35) : see declaration of 'new'<br />
...


What do I have to do?



using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]

AnswerRe: Vector inside MFC app? Pin
Anand Paranjpe9-Oct-03 1:47
Anand Paranjpe9-Oct-03 1:47 
AnswerRe: Vector inside MFC app? Pin
Steve S9-Oct-03 1:51
Steve S9-Oct-03 1:51 
GeneralRe: Vector inside MFC app? Pin
Zizilamoroso9-Oct-03 3:20
Zizilamoroso9-Oct-03 3:20 
AnswerRe: Vector inside MFC app? Pin
jhwurmbach9-Oct-03 2:02
jhwurmbach9-Oct-03 2:02 
GeneralForm like MS Office assistance in vc++ Pin
sunju9-Oct-03 0:37
sunju9-Oct-03 0:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:30
Anthony_Yio9-Oct-03 2:30 
GeneralRe: Form like MS Office assistance in vc++ Pin
Atif Mushtaq10-Oct-03 0:17
Atif Mushtaq10-Oct-03 0:17 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:37
Anthony_Yio9-Oct-03 2:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
sunju9-Oct-03 18:49
sunju9-Oct-03 18:49 
Questionhow to implement a CDragCheckListBox? Pin
Jefferson Liu9-Oct-03 0:14
Jefferson Liu9-Oct-03 0:14 
GeneralStretchDIBits fit into paper Pin
vancouver7778-Oct-03 23:51
vancouver7778-Oct-03 23:51 
GeneralRe: StretchDIBits fit into paper Pin
Alex Dolpfin9-Oct-03 3:06
Alex Dolpfin9-Oct-03 3:06 
Questionqeustions on scrolling window? Pin
ashxly8-Oct-03 23:46
ashxly8-Oct-03 23:46 
AnswerRe: qeustions on scrolling window? Pin
ashxly9-Oct-03 2:48
ashxly9-Oct-03 2:48 
Generalwarning C4273 - inconsistent dll linkage. dllexport assumed. Pin
YaronNir8-Oct-03 23:39
YaronNir8-Oct-03 23:39 
GeneralStill got no answer can any1 help plz?????? Pin
YaronNir9-Oct-03 2:59
YaronNir9-Oct-03 2:59 
GeneralRe: warning C4273 - inconsistent dll linkage. dllexport assumed. Pin
Anthony_Yio9-Oct-03 3:09
Anthony_Yio9-Oct-03 3:09 

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.