|
Prev: Which inclue file to use to use the winapi. Not using stdafx or MFC.
Next: what is type specifier to print unsigned long long
From: adebaene on 24 Apr 2008 03:18 On 24 avr, 07:49, chrisstankev...(a)gmail.com wrote: > Q1: Which include file(s) do I need to place in my cpp file to call > the winapi function ::CreateSemaphore? > Q2: Which include file(s) do I need for HANDLE > To access the Win32 API, you should always #include <windows.h> See the documentation for CreateSemaphore (http://msdn2.microsoft.com/ en-us/library/ms682438(VS.85).aspx), at the bottom of the page : Header : Declared in Winbase.h; include Windows.h. Since <windows.h> is a HUGHE header, it is highly recommende to use precompiled headers (stdafx.h), to speed up compilation time. Arnaud |