1.建立目标工程,比如“W:\WNetTest”
2.将“WiMinet.dll”和“WirelessTCP.dll”动态链接库文件放入目标EXE程序的搜索路径中,有两个路径是应用程序必须会搜索的:a) Windows操作系统的公共路径,比如“C:\Windows\System32” b) 可以执行程序的目录,比如: “W:\WNetTest”
3. 在工程目录“W:\WNetTest”建立include子目录“W:\WNetTest\include”,将文件“API-Message.h”和“API-WiMinet.h”文件放入目录“W:\WNetTest \include”
4. 在工程目录“W:\WNetTest”建立lib子目录“W:\WNetTest\lib”,将静态链接库文件“WiMinet.lib”和“WirelessTCP.lib”放入目录“W:\WNetMgr\lib”
将头文件的路径“W:\WNetTest\include”加入工程的包含路径中
下图是 Microsoft Visual Studio 6.0的头文件包含路径的设置
下图是Microsoft Visual Studio 2017的头文件包含路径的设置
将lib文件的路径“W:\WNetTest\lib”加入工程的库文件路径中
下图是 Microsoft Visual Studio 6.0的库文件名称设置
下图是 Microsoft Visual Studio 6.0的库文件路径设置
下图是Microsoft Visual Studio 2017的库文件的名称设置
下图是Microsoft Visual Studio 2017的库文件的路径设置
下图是 Microsoft Visual Studio 6.0的设置
下图是Microsoft Visual Studio 2017的截图
针对Debug版本和Release版本,执行上述步骤1.2,1.3,1.4三个章节的配置
Microsoft Visual Studio 6.0的工程文件尾缀是 *.dsp 以及 *.dsw;Microsoft
Visual Studio 2017的工程文件的尾缀是 *.sln。
由于Windows 操作系统文件关联的设置,有可能双击 *.dsp 或者 *.dsw 工程文件的时候,仍然会采用Microsoft Visual Studio 2017打开。精确控制打开的集成开发环境,有下述两种方法:
2. 右键单击 *.dsp或者*.dsw文件,选择“打开方式”,然后通过“打开方式”的二级子菜单选择“Microsoft(R) Developer Stduio”打开Microsoft Visual Studio 6.0集成开发环境。
Microsoft Visual C++ 6.0 在Windows 10操作系统上运行的时候,有权限方面的兼容性问题。在单步运行Step into/over的时候,会弹出来“OLE Remote Procedure
Call”的警告,此时需要以管理员身份运行Microsoft Visual C++ 6.0的程序组件即可。
具体如下:选中Microsoft Visual C++ 6.0的程序图标,右键弹出菜单,选中“以管理员身份运行”即可。
del /s *.pch
del /s *.ilk
del /s *.log
del /s *.tlog
del /s *.ncb
del /s *.plg
del /s *.opt
del /s *.obj
del /s *.htm
rem Delete [Version]......
rmdir /S/Q Version\Backup
rmdir /S/Q Version.vs
rmdir /S/Q Version\Debug\WNetTest.tlog
rmdir /S/Q Version\Release\WNetTest.tlog
rem Delete [Send]......
rmdir /S/Q Send\Backup
rmdir /S/Q Send.vs
rmdir /S/Q Send\Debug\WNetTest.tlog
rmdir /S/Q Send\Release\WNetTest.tlog
rem Delete [Recv]......
rmdir /S/Q Recv\Backup
rmdir /S/Q Recv.vs
rmdir /S/Q Recv\Debug\WNetTest.tlog
rmdir /S/Q Recv\Release\WNetTest.tlog
rem Delete [eWOR]......
rmdir /S/Q eWOR\Backup
rmdir /S/Q eWOR.vs
rmdir /S/Q eWOR\Debug\WNetTest.tlog
rmdir /S/Q eWOR\Release\WNetTest.tlog
rem Delete [BMP]......
rmdir /S/Q BMP\Backup
rmdir /S/Q BMP.vs
rmdir /S/Q BMP\Debug\WNetTest.tlog
rmdir /S/Q BMP\Release\WNetTest.tlog
rem Delete [[App-01].eWOR+Send]......
rmdir /S/Q [App-01].eWOR+Send\Backup
rmdir /S/Q [App-01].eWOR+Send.vs
rmdir /S/Q [App-01].eWOR+Send\Debug\WNetTest.tlog
rmdir /S/Q [App-01].eWOR+Send\Release\WNetTest.tlog