在.net C#裏調用非託管動態庫函數dll(轉)

有一個動態庫:Dog.dll中個函數(只有這個函數):int DogIsValid() ,用VC6開發確認已經導出來,也就是說在別的地方能調用。函數 而後在C#裏用以下代碼調用: 加密 using System.Runtime.InteropServices; spa [DllImport("Dog.dll")] public static extern int DogIsValid(); 開發
相關文章
相關標籤/搜索