yamne_h
چهارشنبه 17 اسفند 1384, 20: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 مربوط میشه که من بلد نیستم ازش استفاده کنم .
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 مربوط میشه که من بلد نیستم ازش استفاده کنم .