Click here to Skip to main content
15,889,867 members
Home / Discussions / Mobile
   

Mobile

 
QuestionDatabase connectivity in J2ME Mobile Edition Pin
Mogha Ritesh11-Oct-07 19:54
Mogha Ritesh11-Oct-07 19:54 
Questiondistributing a license with PDA Pin
steve_rm11-Oct-07 15:23
steve_rm11-Oct-07 15:23 
AnswerRe: distributing a license with PDA Pin
Mike Dimmick12-Oct-07 9:22
Mike Dimmick12-Oct-07 9:22 
QuestionFile uploading in asp.net 1.1 web forms [modified] Pin
Anoop_Ravindran9-Oct-07 23:45
Anoop_Ravindran9-Oct-07 23:45 
QuestionHow to get Notification of program launch and termination Pin
Resare Shen9-Oct-07 2:26
Resare Shen9-Oct-07 2:26 
QuestionGet notified when process is started Pin
Arnon A8-Oct-07 21:52
Arnon A8-Oct-07 21:52 
QuestionJust getting started with WinMo - a few questions Pin
thindave8-Oct-07 13:15
thindave8-Oct-07 13:15 
QuestionClient FTP Error Code 12029 Pin
dev248-Oct-07 12:33
dev248-Oct-07 12:33 
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


QuestionApplication Deployment Pin
MrWizard548-Oct-07 11:58
MrWizard548-Oct-07 11:58 
Questionmobile application Pin
Ahamed Azeem6-Oct-07 23:08
Ahamed Azeem6-Oct-07 23:08 
AnswerRe: mobile application Pin
Raman-kumar10-Oct-07 0:02
Raman-kumar10-Oct-07 0:02 
AnswerRe: mobile application Pin
Anoop_Ravindran10-Oct-07 0:28
Anoop_Ravindran10-Oct-07 0:28 
GeneralRe: mobile application Pin
Ahamed Azeem10-Oct-07 0:31
Ahamed Azeem10-Oct-07 0:31 
Questioncan you help me plz.. Pin
Anoop_Ravindran10-Oct-07 3:59
Anoop_Ravindran10-Oct-07 3:59 
QuestionSend message to PPC from PC using sockets (Error 10060) [modified] Pin
AlexeiXX34-Oct-07 9:04
AlexeiXX34-Oct-07 9:04 
GeneralRe: Send message to PPC from PC using sockets (Error 10060) Pin
imranatif4-Oct-07 21:42
imranatif4-Oct-07 21:42 
QuestionHow to hide a file in a PPC Pin
Erisa85d4-Oct-07 5:28
Erisa85d4-Oct-07 5:28 
AnswerRe: How to hide a file in a PPC Pin
João Paulo Figueira6-Oct-07 6:22
professionalJoão Paulo Figueira6-Oct-07 6:22 
QuestionMy PPC application gets frozen after receiving data by socket Pin
Erisa85d4-Oct-07 5:03
Erisa85d4-Oct-07 5:03 
AnswerRe: My PPC application gets frozen after receiving data by socket Pin
AlexeiXX315-Oct-07 10:48
AlexeiXX315-Oct-07 10:48 
Questionmobile socket application Pin
vimal_q3-Oct-07 19:00
vimal_q3-Oct-07 19:00 
GeneralRe: mobile socket application Pin
imranatif4-Oct-07 21:36
imranatif4-Oct-07 21:36 
QuestionPostMessage() function [modified] Pin
nemarc3-Oct-07 0:29
professionalnemarc3-Oct-07 0:29 
QuestionApp crashes when Pocket PC device wakes Pin
Payrok2-Oct-07 4:26
Payrok2-Oct-07 4:26 
AnswerRe: App crashes when Pocket PC device wakes Pin
Payrok9-Oct-07 11:33
Payrok9-Oct-07 11:33 

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.