Error whenever I include <winbase.h> 
Author Message
 Error whenever I include <winbase.h>

Hello,

I'm getting a weird error in <winbase.h> while trying to
compile a win32 console program that includes <winbase.h>.

For example, if I try to compile the following simple
program:

#include <iostream.h>
#include <winbase.h>

int main(int argc, char* argv[])
{
        cout << "hello world" << endl;    

        return 0;

Quote:
}

The error that I get is:

d:\program files\microsoft visual studio\vc98
\include\winbase.h(216) : error C2146: syntax error :
missing ';' before identifier 'Internal'

actually, I get 74 errors, all in winbase.h.

I realize this must be a pretty stupid question, but I
can't seem to find a solution.  I'm using VS6 SP5



Fri, 16 Jul 2004 03:19:31 GMT  
 Error whenever I include <winbase.h>

Quote:

> Hello,

> I'm getting a weird error in <winbase.h> while trying to
> compile a win32 console program that includes <winbase.h>.

> For example, if I try to compile the following simple
> program:

> #include <iostream.h>
> #include <winbase.h>

> int main(int argc, char* argv[])
> {
>    cout << "hello world" << endl;    

>    return 0;
> }

> The error that I get is:

> d:\program files\microsoft visual studio\vc98
> \include\winbase.h(216) : error C2146: syntax error :
> missing ';' before identifier 'Internal'

> actually, I get 74 errors, all in winbase.h.

> I realize this must be a pretty stupid question, but I
> can't seem to find a solution.  I'm using VS6 SP5

Use #include <windows.h> instead. This should take care of all your troubles.


Sat, 17 Jul 2004 00:32:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error whenever I include winbase.h

2. #include <winbase.h> gives me syntax errors in winbase.h

3. <<<<<<<Parsing help, please>>>>>>>>

4. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

5. <<<>>>Need C code advice with functions and sorting.<<<>>>

6. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

7. Problem error at #include <stdafx.h>

8. Error when including <intshcut.h>

9. Link Errors when including <htmlctrl.h>

10. >>>Windows Service<<<

11. attempt to #include <algorithm> and <vector> cause compilation errors

12. proposal: <basic.h>, <pascal.h>, <fortran.h>, <cobol.h>

 

 
Powered by phpBB® Forum Software