20051-7 ... 1-21MFC Dynamic Link Library Framework Establishment, Creating Functions, Requirements Vector The establishment of the test program framework requires DLL to support normal operation. Error Link 2001: Need some lib file support; error Link 2005: need stdafx.h, or cancel Precompile in Project-> Setting Add a modem dial connection to the DLL (using the use of the AT command set), add a serial port class (custom) and change optimization, Add a function of the concentrator, (use of the concentrator protocol), change the function class in the DLL; 1-22 Solution to the PCHVCT class export and generate an object problem: add macro definition DLL_EXPORTS (Project: lib) in Project-> Setting-> C / C -> Preprocessor Definitons (Project: lib) 1-23 Solution to reading data instability: Before each ReadByte () function call, the delayed one second waiting for the serial port read operation setting connection timeout 60 seconds 1-24 Test Procedure: About PCHVCT Data Display Problem: String.Data (); converts String class data to sprintf (char *, cstring); convert CString to a char * interface, use ComboBox Set the serial parameters, the application mode dialog DLL: Complete function functions as required 1-25 Code Optimization: Modular, increasing auxiliary functional function; increasing data members, reducing duplicate operations, is done with space change software, and is needed to further test, and provide corresponding technical documents.