在classwizard中的member variables项中为每一个控件关联一个变量,如IDC_EDIT1 可以关联int型变量或Cstring型变量m_1(可根据实际情况设定),然后在程序中的头文件中添加
#include
#include
在相应位置添加保存数据程序:
UpdateData(1);//更新控件中的数据
ofstream ab("abc.txt"); //ab可任意定义
ab<
char buff[1024*20+1];
typedef int (WINAPI ICEPUB_OPENURL)(char *currentUrlString,char *strHtmlText,int textMaxLen,char *strProxy);
ICEPUB_OPENURL *icePub_openUrl = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_openUrl =(ICEPUB_OPENURL *)GetProcAddress(hDLLDrv,"icePub_openUrl");
}
if(icePub_openUrl)
{
icePub_openUrl("http://www.baidu.com",buff,1024*20,"");
}
if(hDLLDrv)
FreeLibrary(hDLLDrv);
AfxMessageBox(buff);