如何在mfc dll程序中添加一个已经写好的mfc
1个回答
展开全部
在Test.cpp中添加如下代码:
[cpp] view plain copy print?
CString CTestDlg::brow(LPCTSTR filter)
{
OPENFILENAME ofn;
TCHAR szFilename[512]=_T("");
ZeroMemory(&ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = ::AfxGetMainWnd()->m_hWnd;
ofn.lpstrFile = szFilename;
ofn.nMaxFile = sizeof(szFilename);
[cpp] view plain copy print?
CString CTestDlg::brow(LPCTSTR filter)
{
OPENFILENAME ofn;
TCHAR szFilename[512]=_T("");
ZeroMemory(&ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = ::AfxGetMainWnd()->m_hWnd;
ofn.lpstrFile = szFilename;
ofn.nMaxFile = sizeof(szFilename);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询