no, the code generated from C# programs need to run under CLR, it cannot be compiled into unmanaged code directly, consider to expose managed code as COM component, seeExposing .NET Framework Components to COM
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp?frame=true

解决方案 »

  1.   

    correct, use unmanaged C++
      

  2.   

    C#可以编译成DLL,也可以把这些DLL象其他DLL一样的使用,但前提是需要基于.NET FRAMEWORK的运行环境。
      

  3.   

    思归大虾的意思是让我用.net把实现做成com,然后再用vc之类可以编译为win32 dll的compiler做个架子调用com?
      

  4.   

    “思归大虾的意思是让我用.net把实现做成com,然后再用vc之类可以编译为win32 dll的compiler做个架子调用com?

    nod!
      

  5.   

    triout(笨牛),要开发的plugin必须以win32 dll方式提供给server,C#编译出来的dll不行把
      

  6.   

    no, just pretend .net components are COM objects, you call these objects' methods from your win32 code, of course, you still need to install .Net Framework
      

  7.   

    那不是和我说的一样么,在vc的win32 dll project里调.net做的com