[求助]c#引用自己用c做的个dll,为什么会这样?
											我用c做的个dll,其中有个int hello()会返回一个int型的值,我试着用c调用这个hell0()还成功了呢。
但我在c#控制台应用程序中输入如下代码,调用hello()怎么就有这样的问题呢?
帮我看看,非常感谢。
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace dlltest
{
       class Class1
    {
         [DllImport("mydll.dll")]
         static extern int hello( );
         [STAThread]
         public static void Main(string[] args)
        {
         Console.WriteLine("{0} you have suceeded.", hello());
        }
    }
}
	
		
			
[此贴子已经被作者于2007-5-15 16:53:19编辑过]



 
											





 
	    

 
	
