急!在使用CreateSemaphore和CreateMutex时报错,请大大们帮帮忙
我在用CreateSemaphore(NULL,100,100,"sp");建立一个信号量,但在build的时候报错说:
error C2501: 'CreateSemaphoreA' : missing storage-class or type specifiers
error C2373: 'CreateSemaphoreA' : redefinition; different type modifiers
error C2078: too many initializers
error C2440: 'initializing' : cannot convert from 'char [3]' to 'int'
在用CreateMutex(NULL,TRUE,"mt");建立一个互斥量,报错:
error C2501: 'CreateMutexA' : missing storage-class or type specifiers
error C2373: 'CreateMutexA' : redefinition; different type modifiers
error C2078: too many initializers
error C2440: 'initializing' : cannot convert from 'char [3]' to 'int'
his conversion requires a reinterpret_cast, a C-style cast or function-style cast
谢谢大大们了