一、生成DLL
VS2013——建立win32项目——DLL——完成
二、调用DLL
VS2013——建立win32控制台项目——完成
把第一步生成的.dll和.lib两个文件拷入控制台程序的Debug文件夹下
添加引用:
项目——属性——链接器——常规——附加库目录——添加dll
项目——属性——链接器——输入——附加依赖项——添加lib
一、生成DLL
VS2013——建立win32项目——DLL——完成
二、调用DLL
VS2013——建立win32控制台项目——完成
把第一步生成的.dll和.lib两个文件拷入控制台程序的Debug文件夹下
添加引用:
项目——属性——链接器——常规——附加库目录——添加dll
项目——属性——链接器——输入——附加依赖项——添加lib