dll
class afx_ext_class cmydlgdll : public cdialog
{
public:
cstring stredit;
}
exe
#include "mydlgdll.h"
#pragma comment(lib, "mydlgdll.lib")
class exe:
{
cmydlgdll dlg;
cstring str;
};
exe实现
onoptions()
{
dlg.stredit = str;
dlg.domodal(); // 在这过程中修改edit的值
str = dlg.stredit;
}