S
szyc927
Unregistered / Unconfirmed
GUEST, unregistred user!
请教高人将下面的C代码转为delphi的!
CString str = m_OpenDlg.GetPathName()
DWORD dwEndTime = 0;
char *s1 = new char[MAX_PATH];
wcstombs(s1,str,MAX_PATH);
m_FilePlayer.OpenFile((signed char *)s1);
if (s1)
delete[] s1;
CString str = m_OpenDlg.GetPathName();//CString对应的delphi是什么类型
char *s1 = new char[MAX_PATH];//这一句在delphi中又应该怎样定义
wcstombs(s1,str,MAX_PATH);
m_FilePlayer.OpenFile((signed char *)s1)
//(signed char *)s1这个又是什么类型的参数,delphi又怎么对应。
CString str = m_OpenDlg.GetPathName()
DWORD dwEndTime = 0;
char *s1 = new char[MAX_PATH];
wcstombs(s1,str,MAX_PATH);
m_FilePlayer.OpenFile((signed char *)s1);
if (s1)
delete[] s1;
CString str = m_OpenDlg.GetPathName();//CString对应的delphi是什么类型
char *s1 = new char[MAX_PATH];//这一句在delphi中又应该怎样定义
wcstombs(s1,str,MAX_PATH);
m_FilePlayer.OpenFile((signed char *)s1)
//(signed char *)s1这个又是什么类型的参数,delphi又怎么对应。