不行! 在“1 转换为.net 库:”这步时提示:TlbImp error: The input file 'C:\temp\Project1.dll' is not a valid type library如果不转换的话,直接用 DLLImport 导入,虽能通过编译,但不能得到正确的数据!在帮帮我!!!
当然,如果是com就可以使用了,但是你这个,难
你的DLL的确是正常的COM library 吗?你试试当引用,然后当模块处理
1.regsvr32注册时候,提示一个程序入口错误; 2.添加引用提示说不是有效程序集; 3.TlbImp error: The input file 'C:\temp\Project1.dll' is not a valid type library 4.如果不转换的话,直接用 DLLImport 导入,虽能通过编译,但不能得到正确的数据!提示说:"无法在 DLL Pdll.DLL 中找到名为 Show 的入口点"奇怪啊:)
public static extern 返回类型 MyFunction (参数);3 你现在可以使用MyFunction 了
在“1 转换为.net 库:”这步时提示:TlbImp error: The input file 'C:\temp\Project1.dll' is not a valid type library如果不转换的话,直接用 DLLImport 导入,虽能通过编译,但不能得到正确的数据!在帮帮我!!!
2.添加引用提示说不是有效程序集;
3.TlbImp error: The input file 'C:\temp\Project1.dll' is not a valid type library
4.如果不转换的话,直接用 DLLImport 导入,虽能通过编译,但不能得到正确的数据!提示说:"无法在 DLL Pdll.DLL 中找到名为 Show 的入口点"奇怪啊:)