Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I am using semaphore. and i have written following code to create semaphore
C++
HANDLE m_deviceStatusChanged;
m_deviceStatusChanged = ::CreateSemaphore(NULL,0,256,NULL);

Following errors are coming while building the project
1) missing ';' before identifier 'm_deviceStatusChanged';
2) "CreateSemaphore" is not a member of "global namespace"
3) "CreateSemaphore" identifier not found
Posted
Updated 23-Aug-11 19:43pm
v3

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900