Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying The time Zone Pin
brucewayn9-Feb-09 3:29
brucewayn9-Feb-09 3:29 
GeneralRe: Displaying The time Zone Pin
Iain Clarke, Warrior Programmer9-Feb-09 4:16
Iain Clarke, Warrior Programmer9-Feb-09 4:16 
QuestionInfo on Public Key Encryption implementation. Pin
Comp_Users9-Feb-09 1:29
Comp_Users9-Feb-09 1:29 
QuestionRe: Info on Public Key Encryption implementation. Pin
CPallini9-Feb-09 1:40
mveCPallini9-Feb-09 1:40 
Questionchange dialog box width. Pin
sam_psycho9-Feb-09 0:56
sam_psycho9-Feb-09 0:56 
AnswerRe: change dialog box width. Pin
_AnsHUMAN_ 9-Feb-09 1:10
_AnsHUMAN_ 9-Feb-09 1:10 
AnswerRe: change dialog box width. Pin
David Crow9-Feb-09 6:19
David Crow9-Feb-09 6:19 
Questionvector in STL [modified] Pin
hrishiS9-Feb-09 0:55
hrishiS9-Feb-09 0:55 
Thanks to everyone for your kind reply..

here is the position where I am now.
I am giving my re explaining my problem again.

There is absolutely no problem when I compile the program without a header file (which is a .h file of ACE framework) ie #include "Defines.h"



#include "conio.h"
#include "time.h"

#include "WaveRecorder.h"
#include "MultiXtR.h"

#include <queue>
#include <vector>


using std::vector;
using std::queue;

//#include "Defines.h"


class MultiXtrPortDigitalTapDriver
{
public:
...
static vector <int> m_staVecActivePorts;
static vector <int> m_staVecActiveExtention;
...
...



But when i include the header file ...it gives error...I think its clash/redefinition..
the errors are....

c:\program files\microsoft visual studio\vc98\include\ios.h(103) : error C2371: 'streambuf' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(255) : see declaration of 'streambuf'
c:\program files\microsoft visual studio\vc98\include\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(257) : see declaration of 'ostream'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : error C2371: 'ios' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(254) : see declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\istream.h(64) : error C2371: 'istream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(256) : see declaration of 'istream'
c:\program files\microsoft visual studio\vc98\include\iostream.h(66) : error C2371: 'iostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(258) : see declaration of 'iostream'
Waveheader.cpp


Now, I need to include the defines.h (in order to use ace framework), and also I need to use the vector and list...


So please provide a solution..

Regards,
Himangshu

<div class="ForumMod">modified on Monday, February 9, 2009 11:21 PM</div>
AnswerRe: vector in STL Pin
Cedric Moonen9-Feb-09 1:02
Cedric Moonen9-Feb-09 1:02 
GeneralRe: vector in STL Pin
hrishiS9-Feb-09 1:08
hrishiS9-Feb-09 1:08 
GeneralRe: vector in STL Pin
Cedric Moonen9-Feb-09 1:11
Cedric Moonen9-Feb-09 1:11 
AnswerRe: vector in STL Pin
hrishiS9-Feb-09 1:07
hrishiS9-Feb-09 1:07 
GeneralRe: vector in STL Pin
Cedric Moonen9-Feb-09 1:12
Cedric Moonen9-Feb-09 1:12 
GeneralRe: vector in STL Pin
«_Superman_»9-Feb-09 1:53
professional«_Superman_»9-Feb-09 1:53 
GeneralRe: vector in STL Pin
Cedric Moonen9-Feb-09 2:02
Cedric Moonen9-Feb-09 2:02 
GeneralRe: vector in STL Pin
«_Superman_»9-Feb-09 2:06
professional«_Superman_»9-Feb-09 2:06 
AnswerRe: vector in STL [modified] Pin
hrishiS9-Feb-09 3:00
hrishiS9-Feb-09 3:00 
GeneralRe: vector in STL Pin
Maximilien9-Feb-09 3:53
Maximilien9-Feb-09 3:53 
QuestionHow to insert text at cursor position in a web browser? Pin
Joe Smith IX9-Feb-09 0:20
Joe Smith IX9-Feb-09 0:20 
QuestionPlease help me! Pin
Le@rner8-Feb-09 23:53
Le@rner8-Feb-09 23:53 
AnswerRepost. Pin
CPallini9-Feb-09 0:02
mveCPallini9-Feb-09 0:02 
GeneralRe: Repost. Pin
Le@rner9-Feb-09 0:15
Le@rner9-Feb-09 0:15 
Questionhow to communicate between two dialogs Pin
hemlat8-Feb-09 23:42
hemlat8-Feb-09 23:42 
AnswerRe: how to communicate between two dialogs Pin
SandipG 8-Feb-09 23:44
SandipG 8-Feb-09 23:44 
AnswerRe: how to communicate between two dialogs Pin
David Crow9-Feb-09 6:23
David Crow9-Feb-09 6:23 

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.