Z
zjy2004
Unregistered / Unconfirmed
GUEST, unregistred user!
static OPENFILENAME ofn={0};
m_pPlayer[m_nCurCh]->m_szName[0]=0;
m_pPlayer[m_nCurCh]->m_szNamex[0]=0;
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = this->m_hWnd
ofn.lpstrFilter = NULL;
ofn.lpstrFilter = FILE_FILTER_TEXT;
ofn.lpstrCustomFilter = NULL;
ofn.nFilterIndex = 1;
ofn.lpstrFile = m_pPlayer[m_nCurCh]->m_szName;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrFileTitle=m_pPlayer[m_nCurCh]->m_szNamex;
ofn.nMaxFileTitle = MAX_PATH;
ofn.lpstrTitle = TEXT("Open Media File.../0");
ofn.lpstrDefExt = TEXT("*/0");
ofn.Flags = OFN_FILEMUSTEXIST | OFN_READONLY | OFN_PATHMUSTEXIST;
ofn.lpstrInitialDir = NULL;
if(GetOpenFileName((LPOPENFILENAME)&ofn) == false)
{
return
}
为什么m_pPlayer[m_nCurCh]->m_szNamex只能得到三个字符,后边的就没有了,大家帮我看看了啊,谢谢!
m_pPlayer[m_nCurCh]->m_szName[0]=0;
m_pPlayer[m_nCurCh]->m_szNamex[0]=0;
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = this->m_hWnd
ofn.lpstrFilter = NULL;
ofn.lpstrFilter = FILE_FILTER_TEXT;
ofn.lpstrCustomFilter = NULL;
ofn.nFilterIndex = 1;
ofn.lpstrFile = m_pPlayer[m_nCurCh]->m_szName;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrFileTitle=m_pPlayer[m_nCurCh]->m_szNamex;
ofn.nMaxFileTitle = MAX_PATH;
ofn.lpstrTitle = TEXT("Open Media File.../0");
ofn.lpstrDefExt = TEXT("*/0");
ofn.Flags = OFN_FILEMUSTEXIST | OFN_READONLY | OFN_PATHMUSTEXIST;
ofn.lpstrInitialDir = NULL;
if(GetOpenFileName((LPOPENFILENAME)&ofn) == false)
{
return
}
为什么m_pPlayer[m_nCurCh]->m_szNamex只能得到三个字符,后边的就没有了,大家帮我看看了啊,谢谢!