PDA

View Full Version : HANDLE



yamne_h
چهارشنبه 17 اسفند 1384, 19:17 عصر
HANDLE hSemaphore;
LONG cMax = 10;
LONG cPreviousCount;

// Create a semaphore with initial and max. counts of 10.

hSemaphore = CreateSemaphore(
NULL, // no security attributes
cMax, // initial count
cMax, // maximum count
NULL); // unnamed semaphore

if (hSemaphore == NULL)
{
// Check for error.
}


با HANDLE مشکل دارم . انگار تعریف نشده . نمیدونم هدرفایلش چیه . فکر کنم به Platform SDK مربوط میشه که من بلد نیستم ازش استفاده کنم .

Blaster
چهارشنبه 17 اسفند 1384, 23:59 عصر
فایل Windows.h هست.