下面就為大家分享一下在vs2005中生成dll文件的步驟圖文版
新建項(xiàng)目> 模板 > windows > 類庫(kù)

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ClassLibrary2{  public class Class1  {    private int _age;    public int Age    {      get      {        return _age;      }      set      {        _age = value;      }    }  }}當(dāng)然代碼根據(jù)自己需要寫(xiě),要不就參考 //m.survivalescaperooms.com/article/69020.htm

右鍵 生成

然后 通過(guò) 在文件資源管理器中打開(kāi)文件夾找到生成的dll文件

VS2015生成64位dll文件
導(dǎo)入自己的源文件,準(zhǔn)備生成DLL文件。也可以自己創(chuàng)建。
右鍵項(xiàng)目,進(jìn)入屬性,修改Configuration Type 為 DLL。

修改為64位,Configureation Manager ->

->Active solution platform ,x新添加一個(gè)x64。 下面的會(huì)自動(dòng)變?yōu)閤64.

然后運(yùn)行,會(huì)生成一個(gè)x64/debug的目錄,里面即為64位DLL.
錯(cuò)誤集:
1. Error D8016 '/ZI' and '/Gy-' ......
解決:Debug -> c/c++里,修改為Program Database(/Zi).

2.LNK2001,LNK2019,添加兩個(gè)靜態(tài)庫(kù)。ws2_32.lib" , "winmm.lib。

新聞熱點(diǎn)
疑難解答
圖片精選