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. 3 2069
"Mike" <no****@nospam.com> schrieb im Newsbeitrag
news:QJ***************@newsfe5-win.ntli.net... 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
Mike wrote: 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 ...
--
Karl Heinz Buchegger kb******@gascad.at
Gernot Frisch wrote: "Mike" <no****@nospam.com> schrieb im Newsbeitrag news:QJ***************@newsfe5-win.ntli.net...
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
Many thanks. That's sorted a lot of it out. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scott Chapman |
last post by:
There seems to be an inconsistency here:
Python 2.3.2 (#1, Oct 3 2003, 19:04:58)
on linux2
>>> 1 == True
True
>>> 3 == True
False
>>> if 1: print "true"
....
|
by: dewisch |
last post by:
i have made a dll which will be used by web and
windowsapplication.
now i need a handle to the application, which uses my dll.
is there any way to do this?
thx in advance
dewisch
|
by: Walter Dnes (delete the 'z' to get my real address |
last post by:
I took a C course some time ago, but I'm only now beginning to use it,
for a personal pet project. My current stumbling-block is finding an
efficient way to find a match between the beginning of a...
|
by: gmtonyhoyt |
last post by:
I need assistance coming up with a clean way to handle filename
extensions with my application.
While I can come up with several ways of doing so on my own, I felt
perhaps it would be worth...
|
by: Paminu |
last post by:
As I remember if(1) evaluates to true and all other numbers including 0
evaluate to false.
But where do I find out about this for sure?? I have looked through K&R, all
the C for dummies books...
| |
by: Fei Yuan |
last post by:
Please forgive me re-posting this question since I wasn't clear in my
original post.
----
Starting an external process needs to pass it a ProcessStartInfo() object.
ProcessStartInfo has a...
|
by: Jonathan Trevor |
last post by:
Hi,
I've found what appears to be a bug with ASP.NET web service method
invocation - making it impossible to invoke and get the result of a
synchronous web call after an asynchronous call has...
|
by: CMM |
last post by:
Unless someone has come up with a way, I still don't understand how you can
use TableAdapters in a true n-tier infrastructure.... where the
DataAccessLayer is in one Dll and *only* the Datasets...
|
by: Jason |
last post by:
I am fairly new to ASP--I have been using it about 2 months. I did these
tests (below), and it doesn't make sense to me. False is equal to 0, and
that's fine. True should be equal to 1, but it's...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |