Hi~I'm planning to make a smiple program to upload file,but I've
traped by a strange problem,here is a chip of my program:
=============== =============== =============
LPCTSTR lpszMyFilePath =COptions::Stor agePath+_T("\\t est\\")+pWData-
LPCTSTR lpszPeerFilePat h = pWData->cFileName;
UINT nMyTaskID = 0;
nMyTaskID = WRMCC_RequestUp loadFile (/*_T("\\´æ´¢¿¨\\ test\
\20080618.dat") */lpszMyFilePath, lpszPeerFilePat h, FTNOTIFY_Callba ck );
==============
When I was using _T("\\´æ´¢¿¨\\t est\\20080618.d at") as LParm,the program
work successfully.bu t when I use lpszMyFilePath, which i defined myself
above,the server said "File not exist"
P.S.
COptions::Stora gePath is a instance of CString
cFileName is a name of TCHAR[ ] array
and the type of upload function is:
UINT WRMCC_RequestUp loadFile ( LPCTSTR lpszMyFilePath, LPCTSTR
lpszPeerFilePat h=NULL, FUNC_FTNOTIFY_C allback
Proc_FTNOTIFY_C allback=NULL, BOOL bForceRetransmi t=FALSE );
traped by a strange problem,here is a chip of my program:
=============== =============== =============
LPCTSTR lpszMyFilePath =COptions::Stor agePath+_T("\\t est\\")+pWData-
>cFileName;
UINT nMyTaskID = 0;
nMyTaskID = WRMCC_RequestUp loadFile (/*_T("\\´æ´¢¿¨\\ test\
\20080618.dat") */lpszMyFilePath, lpszPeerFilePat h, FTNOTIFY_Callba ck );
==============
When I was using _T("\\´æ´¢¿¨\\t est\\20080618.d at") as LParm,the program
work successfully.bu t when I use lpszMyFilePath, which i defined myself
above,the server said "File not exist"
P.S.
COptions::Stora gePath is a instance of CString
cFileName is a name of TCHAR[ ] array
and the type of upload function is:
UINT WRMCC_RequestUp loadFile ( LPCTSTR lpszMyFilePath, LPCTSTR
lpszPeerFilePat h=NULL, FUNC_FTNOTIFY_C allback
Proc_FTNOTIFY_C allback=NULL, BOOL bForceRetransmi t=FALSE );
Comment