Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to resize client area without resizing window?? Pin
zarraza8-Oct-07 11:44
zarraza8-Oct-07 11:44 
QuestionAn easy way to embed flash swf files in C++/MFC .exe? Pin
CryHaven7-Oct-07 8:16
CryHaven7-Oct-07 8:16 
Questionmulti threading Pin
locoone7-Oct-07 7:36
locoone7-Oct-07 7:36 
AnswerRe: multi threading Pin
Mark Salsbery7-Oct-07 8:06
Mark Salsbery7-Oct-07 8:06 
GeneralRe: multi threading Pin
locoone7-Oct-07 9:28
locoone7-Oct-07 9:28 
GeneralRe: multi threading Pin
Mark Salsbery7-Oct-07 9:32
Mark Salsbery7-Oct-07 9:32 
JokeRe: multi threading Pin
Nelek7-Oct-07 21:01
protectorNelek7-Oct-07 21:01 
QuestionClient FTP error code 12029 Pin
dev246-Oct-07 16:02
dev246-Oct-07 16:02 
Hi,

Following code is written in Visual Studio 2005 C++ for PDA(MC3000).
PDA is Motorola/Symbol's MC3000 and it has Windows CE 5.0 Operating System.

FTP Error Code 12029 meaning "Internet can not connect" as per Microsoft Documentation.

I am using following code to do FTP Send file to FTP Server:

int JSCFTPSendFile(TCHAR *tszLocalFileName, TCHAR *tszRemoteFileName)
{

HANDLE hInternetHandle = 0;
HANDLE hFTPHandle = 0;
TCHAR tszFTPServerName[256];
TCHAR tszFTPUserId[51];
TCHAR tszFTPPassword[51];
INTERNET_PORT ipFTPPortNo = 21;

_tcscpy(tszFTPServerName, _T("ftp.myftpserver.com");
_tcscpy(tszFTPUserId, _T("MyUserid");
_tcscpy(tszFTPPassword, _T("MyPassword");

hInternetHandle = InternetOpen(_T("Microsoft Internet Explorer"), INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_INVALID_PORT_NUMBER);
if ( hInternetHandle == 0 )
{
return FALSE;
}

hFTPHandle = InternetConnect(hInternetHandle, tszFTPServerName, ipFTPPortNo, tszFTPUserId, tszFTPPassword, INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0);

if ( hFTPHandle == 0 )
{

InternetCloseHandle(hInternetHandle);
return FALSE;
}
// upto here code works fine but when it executes FtpPutFile() I get Error code 12029
iRetStatus = FtpPutFile(hFTPHandle, tszSendFileName, tszRemoteFileName, FTP_TRANSFER_TYPE_BINARY, 0);
if ( iRetStatus )
{
bFileSent = true;
}

InternetCloseHandle(hFTPHandle);
InternetCloseHandle(hInternetHandle);

return TRUE;

}


In the above function upto "InternetConnect()" code works fine but when it executes "FtpPutFile()" I get Error code 12029.


This code works fine to conect to any standard FTP Server.
I am first connecting to PC using ActiveSync(Version 4.1) and once ActiveSync Connection established I can connect to any FTP Server(Local Network or Remote thru the gateway ) and transmit file. But if I try to send file from PDA(MC3000) to ActiveSync Connected PC(FTP Server Name is V4000) then it does not work.
I tried server name as "ppp_peer", "localhost", "V4000"(which is actual FTP Server Name for the local PC ). and it did not work.
Your help will be greatly appreciated.



Regards,



Dev


QuestionScrollBar movement by per click Pin
s196675m6-Oct-07 14:35
s196675m6-Oct-07 14:35 
AnswerRe: ScrollBar movement by per click Pin
Mark Salsbery7-Oct-07 5:46
Mark Salsbery7-Oct-07 5:46 
QuestionConvert HTML to XHTML Pin
Peishan, Wu6-Oct-07 5:50
Peishan, Wu6-Oct-07 5:50 
AnswerRe: Convert HTML to XHTML Pin
George L. Jackson6-Oct-07 7:37
George L. Jackson6-Oct-07 7:37 
QuestionScroll bars with CStatic Pin
shivrajbhosale6-Oct-07 0:08
shivrajbhosale6-Oct-07 0:08 
QuestionRe: Scroll bars with CStatic Pin
chandu0046-Oct-07 0:11
chandu0046-Oct-07 0:11 
AnswerRe: Scroll bars with CStatic Pin
shivrajbhosale6-Oct-07 0:22
shivrajbhosale6-Oct-07 0:22 
AnswerRe: Scroll bars with CStatic Pin
Hamid_RT6-Oct-07 1:32
Hamid_RT6-Oct-07 1:32 
GeneralRe: Scroll bars with CStatic Pin
shivrajbhosale7-Oct-07 21:40
shivrajbhosale7-Oct-07 21:40 
GeneralRe: Scroll bars with CStatic Pin
Hamid_RT8-Oct-07 2:52
Hamid_RT8-Oct-07 2:52 
QuestionTerminating Worker Thread from my UI thread causing problem? Pin
sanjudeepu5-Oct-07 21:13
sanjudeepu5-Oct-07 21:13 
AnswerRe: Terminating Worker Thread from my UI thread causing problem? Pin
chandu0045-Oct-07 22:16
chandu0045-Oct-07 22:16 
GeneralRe: Terminating Worker Thread from my UI thread causing problem? Pin
sanjudeepu5-Oct-07 23:25
sanjudeepu5-Oct-07 23:25 
GeneralRe: Terminating Worker Thread from my UI thread causing problem? Pin
chandu0046-Oct-07 0:05
chandu0046-Oct-07 0:05 
AnswerRe: Terminating Worker Thread from my UI thread causing problem? Pin
Mark Salsbery6-Oct-07 7:31
Mark Salsbery6-Oct-07 7:31 
QuestionImage or Bitmap Pin
sujtha5-Oct-07 20:26
sujtha5-Oct-07 20:26 
AnswerRe: Image or Bitmap Pin
Hamid_RT5-Oct-07 20:51
Hamid_RT5-Oct-07 20:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.