3gstudent / feedback

0 stars 0 forks source link

大佬,xpn的addsecuritypackage_rawrpc那一个头文件,两个c文件是怎么编译的 #42

Closed um3ha4a closed 3 years ago

um3ha4a commented 4 years ago

https://gist.github.com/xpn/c7f6d15bf15750eae3ec349e7ec2380e 这个,我编译报大量的错,是sdk的版本问题吗

3gstudent commented 4 years ago

要看你具体的错误

VS2015下可正常编译,如果编译成在静态库中使用MFC,需要添加如下代码:#pragma comment(lib, "Rpcrt4.lib")

其他代码不用改动

nbsp-null commented 3 years ago

工程属性从UNICODE改成多字节符就可以了

pragma comment(lib, "Rpcrt4.lib") vs2019好像不行

3gstudent commented 3 years ago

我用的vs2015