I think you should put 21 instead of INTERNET_INVALID_PORT_NUMBER :-D
san123pune
Posts
-
Cannot connect to FTP Server. -
BSTR supports UnicodeHi , Is BSTR support UNICODE? I have a component method that takes BSTR as argument. That component is build with UNICODE support. In that method, I have written this code.
TCHAR tChar[255]; _stprintf(tChar,_T("%s"),(LPCTSTR)bstrName); // then print
Is it correct way ? Thanks in advance -
File pointer & File descriptorThank you toxcct
-
File pointer & File descriptorWhat is difference between File pointer and File Descriptor?
-
ASCII vs UNICODESorry Buddy :(
-
Win32 equivalent of CPtrListU can use STL It is better to use vector or list with void * as container But it will not support for Cobject functionality
-
ASCII vs UNICODEI think u shd not use char * as it is not supported to UNICODE Either use CString or TCHAR Only this much I know :(
-
How to convert CString to char*.CString str = "this is a test"; char* pchar = new char[str.GetLength() + 1]; //then .... strcpy(pchar, str.GetBuffer()); str.ReleaseBuffer(); It will copy the content from string to char *
-
How to authenticate SMTP ServerI think u use AUTH command incorrectly. AUTH cmd has parameter of Authentication type e.g CRAM-MD5 which is supported by server Following example will clarify this : [C : Client S: Server] C: EHLO jgm.example.com S: 250-smtp.example.com S: 250 AUTH CRAM-MD5 DIGEST-MD5 C: AUTH FOOBAR S: 504 Unrecognized authentication type. C: AUTH CRAM-MD5 S: 334 PENCeUxFREJoU0NnbmhNWitOMjNGNndAZWx3b29kLmlubm9zb2Z0LmNvbT4= C: ZnJlZCA5ZTk1YWVlMDljNDBhZjJiODRhMGMyYjNiYmFlNzg2ZQ== S: 235 Authentication successful. Hope this will useful to u ...
-
Failed to remove/rename the file using remvoe()/rename()I think first u hav to chk for access rights ..... if access rights r fine then try this... char oldFile[512]; instead of char *oldFile Hope this will help u ...:)
-
How to connect to SFTP ServerHi, I wann to connect to SFTP server using MFC :doh:. How can I do that :(? Thank you Sandeep