TRUE, HANDLE definitions. Where ?

M

Mike

I'm trying to compile some code that's supposed to be platform independent.

I'm getting streams of unknown definitions, e.g. TRUE, FALSE, DWORD etc.

Yes, I know what the values should be, but which include file has all
this stuff for VC++ V6.

then what about ...
C2065: 'DeleteCriticalSection' : undeclared identifier
C2065: 'EnterCriticalSection' : undeclared identifier
C2065: 'LeaveCriticalSection' : undeclared identifier
C2065: 'TryEnterCriticalSection' : undeclared identifier

I thought this was all part of mutex, but clearly not in the Microsoft
world.

Any help appreciated.
 
G

Gernot Frisch

Mike said:
I'm trying to compile some code that's supposed to be platform
independent.

I'm getting streams of unknown definitions, e.g. TRUE, FALSE, DWORD
etc.

Yes, I know what the values should be, but which include file has
all this stuff for VC++ V6.

then what about ...
C2065: 'DeleteCriticalSection' : undeclared identifier
C2065: 'EnterCriticalSection' : undeclared identifier
C2065: 'LeaveCriticalSection' : undeclared identifier
C2065: 'TryEnterCriticalSection' : undeclared identifier

I thought this was all part of mutex, but clearly not in the
Microsoft world.

Any help appreciated.

#define WIN32_LEAN_AND_MEAN
#include <windows.h> // at the very beginning

HTH,
Gernot
 
K

Karl Heinz Buchegger

Mike said:
I'm trying to compile some code that's supposed to be platform independent.

I'm getting streams of unknown definitions, e.g. TRUE, FALSE, DWORD etc.

Yes, I know what the values should be, but which include file has all
this stuff for VC++ V6.

then what about ...
C2065: 'DeleteCriticalSection' : undeclared identifier
C2065: 'EnterCriticalSection' : undeclared identifier
C2065: 'LeaveCriticalSection' : undeclared identifier
C2065: 'TryEnterCriticalSection' : undeclared identifier

I thought this was all part of mutex, but clearly not in the Microsoft
world.

Any help appreciated.

Going back to the first sentence you wrote:

'... that's supposed to be platform independent.'

All of what you post is platform dependent. So this is
an objection in itself.

You need to ask in a newsgroup about VC++, since standard C++
has nothing to say about TRUE, FALSE, DWORD, DeleteCriticalSection, etc ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,178
Messages
2,570,955
Members
47,509
Latest member
Jack116

Latest Threads

Top