1、在 Visuall Studio Command Prompt 执行: dumpbin /exports CoreFoundation.dll > CoreFoundation.def 2、编辑 yourdll.def 文件,使之格式与.def文件格式一致。比如: LIBRARY CoreFoundation EXPORTS fn1; fn2; 3、在命令行执行: lib /def:CoreFoundationl.def /machine:i386 /out:CoreFoundationl.lib