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:18:40 GMT  
 Error whenever I include winbase.h
Hi..

            include <windows.h> instead of <winbase.h>

Cheers
Check Abdoul
------------------


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



Fri, 16 Jul 2004 03:24:28 GMT  
 Error whenever I include winbase.h
Thanks!

When would I use one instead of the other?

Quote:
>-----Original Message-----
>Hi..

>            include <windows.h> instead of <winbase.h>

>Cheers
>Check Abdoul
>------------------



>> 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

>.



Fri, 16 Jul 2004 03:49:26 GMT  
 Error whenever I include winbase.h

    You don't.   meaning you are not supposed to include <winbase.h>
directly into your application. It is included by windows.h for you.

Cheers
Check Abdoul
--------------------


Quote:
> Thanks!

> When would I use one instead of the other?

> >-----Original Message-----
> >Hi..

> >            include <windows.h> instead of <winbase.h>

> >Cheers
> >Check Abdoul
> >------------------



> >> 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

> >.



Fri, 16 Jul 2004 04:20:38 GMT  
 Error whenever I include winbase.h
Thanks again!

Quote:
>-----Original Message-----

>    You don't.   meaning you are not supposed to include
<winbase.h>
>directly into your application. It is included by
windows.h for you.

>Cheers
>Check Abdoul
>--------------------



>> Thanks!

>> When would I use one instead of the other?

>> >-----Original Message-----
>> >Hi..

>> >            include <windows.h> instead of <winbase.h>

>> >Cheers
>> >Check Abdoul
>> >------------------



>> >> 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

>> >.

>.



Fri, 16 Jul 2004 06:20:58 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Error whenever I include <winbase.h>

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

3. Winbase.h and compilation errors

4. Missing Storage class error in winbase.h

5. update: wince error with winbase.h

6. Missing includes in /usr/include/linux/*.h and /usr/include/asm.h

7. Crashes whenever I try to create a new project

8. How can I know the previliges of the user whenever he tries to invoke the applic

9. How to refresh my dialog box whenever it gets focus after changes in Registry

10. let my program to run whenever windows startup

11. Setting scrolling information whenever Window Size change

12. Whenever I try and access a COM Dll...

 

 
Powered by phpBB® Forum Software