hr = MQCreateQueue( NULL, //Security descriptor
&QueueProps, //Queue properties
wcsFormatName, //Format name buffer
&dwFormatNameLen ); //Format name size
为什么出错?error LNK2001: unresolved external symbol _MQCreateQueue@16
&QueueProps, //Queue properties
wcsFormatName, //Format name buffer
&dwFormatNameLen ); //Format name size
为什么出错?error LNK2001: unresolved external symbol _MQCreateQueue@16
我用过的第一个参数如下:
typedef PVOID PSECURITY_DESCRIPTOR;
PSECURITY_DESCRIPTOR pSecurity;
hr = MQCreateQueue(pSecurity,
&QProps,
wszBuffer,
&dwBufferLength);
这样是没错的。