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.
不过,a.dll不可用,赫赫!
http://hao.kjz.cn/xml/040918160927.xml如何从动态链接库(DLL)中导出类
http://hao.kjz.cn/xml/040917142352.xml