- 导入自己的源文件,准备生成DLL文件。也可以自己创建。
- 右键项目,进入属性,修改Configuration Type 为 DLL。
- 修改为64位,Configureation Manager ->
![](https://img-blog.csdnimg.cn/img_convert/f2910811aef2e274e1d5d3b28a7251ff.png)
- ->Active solution platform ,x新添加一个x64。 下面的会自动变为x64.
- 然后运行,会生成一个x64\debug的目录,里面即为64位DLL.
错误集:1. Error D8016 '/ZI' and '/Gy-' ......
解决:Debug -> c/c++里,修改为Program Database(/Zi).
![](https://img-blog.csdnimg.cn/img_convert/437dceeec6cb17325a58339b7091e84f.png)
2.LNK2001,LNK2019,添加两个静态库。ws2_32.lib" , "winmm.lib。