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

C / C++ / MFC

 
GeneralActiveX scripting engine link error Pin
Neville Franks18-Jan-02 14:10
Neville Franks18-Jan-02 14:10 
GeneralAutomation problems using MFC Pin
Jean Louis18-Jan-02 11:37
Jean Louis18-Jan-02 11:37 
GeneralRe: Automation problems using MFC Pin
moredip18-Jan-02 12:13
moredip18-Jan-02 12:13 
GeneralRe: Automation problems using MFC Pin
Jean Louis18-Jan-02 12:19
Jean Louis18-Jan-02 12:19 
GeneralRe: Automation problems using MFC Pin
Jean Louis18-Jan-02 12:48
Jean Louis18-Jan-02 12:48 
GeneralRe: Automation problems using MFC Pin
moredip18-Jan-02 12:55
moredip18-Jan-02 12:55 
GeneralRe: Automation problems using MFC Pin
Jean Louis18-Jan-02 13:07
Jean Louis18-Jan-02 13:07 
GeneralCArchive >> problems (why won't it take bools?) Pin
moredip18-Jan-02 11:26
moredip18-Jan-02 11:26 
Does anyone know why this code:

void Cfoobar::Serialize( CArchive &ar )
{
int int_val;
bool bool_val;
...
...

ar >> int_val;
ar >> bool_val;
ar >> (int)bool_val;
...
...
}

throws up compilation errors for the bool variable, even if I cast it into int?

The errors read:

... error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'bool' (or there is no acceptable conversion)

... error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'int' (or there is no acceptable conversion)

What obvious point have I missed? Confused | :confused:

TIA,

Pete
GeneralRe: CArchive >> problems (why won't it take bools?) Pin
Michael Dunn18-Jan-02 13:09
sitebuilderMichael Dunn18-Jan-02 13:09 
GeneralRe: CArchive >> problems (why won't it take bools?) Pin
moredip18-Jan-02 13:16
moredip18-Jan-02 13:16 
GeneralRe: CArchive >> problems (why won't it take bools?) Pin
Michael Dunn18-Jan-02 13:34
sitebuilderMichael Dunn18-Jan-02 13:34 
GeneralRe: CArchive >> problems (why won't it take bools?) Pin
moredip21-Jan-02 5:41
moredip21-Jan-02 5:41 
GeneralXmlToArray Pin
18-Jan-02 9:57
suss18-Jan-02 9:57 
GeneralNetwork monitor Pin
Not Active18-Jan-02 9:51
mentorNot Active18-Jan-02 9:51 
GeneralRe: Network monitor Pin
Joaquín M López Muñoz18-Jan-02 10:17
Joaquín M López Muñoz18-Jan-02 10:17 
GeneralRe: Network monitor Pin
Not Active18-Jan-02 12:14
mentorNot Active18-Jan-02 12:14 
GeneralCWnd text editor Pin
alex.barylski18-Jan-02 8:24
alex.barylski18-Jan-02 8:24 
GeneralRe: CWnd text editor Pin
Joaquín M López Muñoz18-Jan-02 8:43
Joaquín M López Muñoz18-Jan-02 8:43 
GeneralRe: CWnd text editor Pin
loket18-Jan-02 11:55
loket18-Jan-02 11:55 
GeneralRe: CWnd text editor Pin
alex.barylski18-Jan-02 21:02
alex.barylski18-Jan-02 21:02 
GeneralMemory Allocation Issues - MultiThreaded/MultiProcessor Pin
Peter Weyzen18-Jan-02 7:31
Peter Weyzen18-Jan-02 7:31 
GeneralRe: Memory Allocation Issues - MultiThreaded/MultiProcessor Pin
Joao Vaz18-Jan-02 7:58
Joao Vaz18-Jan-02 7:58 
Questionhow can i create ODBC DSN programetically? Pin
anju18-Jan-02 6:56
anju18-Jan-02 6:56 
AnswerRe: how can i create ODBC DSN programetically? Pin
Cliff Dabrowski18-Jan-02 7:55
Cliff Dabrowski18-Jan-02 7:55 
AnswerRe: how can i create ODBC DSN programetically? Pin
Jamie Hale18-Jan-02 8:57
Jamie Hale18-Jan-02 8:57 

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.