请问VC中,要把EXE文件转换成DLL,应该怎么转换?要注意什么问题?

解决方案 »

  1.   

    a.exe->rename->a.dll
    不过,a.dll不可用,赫赫!
      

  2.   

    You need to change your WinMain to an exported function, and possible add some other exported function, besides changing the compiler/linking options.Other issues will depend on how the DLL is being used. If the DLL can be used in a multi-threading program, you need to make sure your code is multi-thread safe, besides be compiled with multi-thread runtime library.
      

  3.   

    FengYuanMSFT(袁峰,你说的是什么啊?能不能用中文啊?
      

  4.   

    中文意思大概是1 你得改一些编译、链接设置 把要导出的函数修改一下2 如果你的DLL文件,可能用于multi-threading program,那就要保证它multi-thread safe总之去找点DLL相关资料比较好
      

  5.   

    把exe的相关函数转换为你DLL所要输出的函数就行了
      

  6.   

    在非MFC扩展Dll中导出class
    http://hao.kjz.cn/xml/040918160927.xml如何从动态链接库(DLL)中导出类
    http://hao.kjz.cn/xml/040917142352.xml