|
Hi all, just getting started with WinMo5/6 development after coming over from the PalmOS world. I used HandHeld Basic for my Palm development and would like to use VB in Visual Studio 2005 now.
A few questions:
1. Can anyone point me to a good tutorial for getting started?
2. My utilities generally work with backup and restore functionality - can someone point me to some good source code for copying files & directories using VB under WinMo?
3. Is there a good 3rd party book that you'd recommend?
Thanks very much!
Dave
|
|
|
|
|
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
|
|
|
|
|
Two points to start. One I'm not sure this is the right place for this post, please move as needed. Two, thank you for any help I get on this one.
I am developing a PocketPC application. The application has two pieces. One runs on the handheld and the other runs on the desktop. I am attempting to create a single installer that installs both.
I followed the directions here: http://msdn2.microsoft.com/en-us/library/aa446504.aspx on how to create a compact framework installer. It works correctly. I have also added a second "Project Output" to the installation that installs the desktop portion of the application.
However all of the shortcuts that I create to the desktop portion launch both the desktop application AND the handheld installer. Inspection of the shortcut shows that it does not point to the exe that is the desktop application.
Does anyone know how to create such a shortcut? I'm really at a loss.
Best Regards,
Andrew Nortrup
|
|
|
|
|
Dear friends,
I am going to develop a mobile application in .net. I dont have any prior experiance on this.. Could any people suggest best possbile way to move forward.
thanks
Regards
Azeem
|
|
|
|
|
Which library you are using for sending or receiving sms
|
|
|
|
|
hi Azeem plz check this URL... it'll be useful to you
http://samples.gotdotnet.com/MobileQuickStart/(S0uuvg1ztbkesza55m5qcjeac))/Default.aspx?
anoop
|
|
|
|
|
|
hi,
I want to upload an image file from mobile web form. i'm using asp.net 1.1..
while cheking with IE it's working fine..But it's not working properly when i'm checking with "Openwave V7 Simulator".. The response i'm getting is "Openwave simulator crashed!!!" ..Any one can help me???????????????
anoop
|
|
|
|
|
Hello all
Im trying to send an alert to a WM6 Device (Emulator) from my PC
Code on PC:
Dim tcpClient As New Sockets.TcpClient
Dim portNumber As Integer = 1414 '????
'ERROR10060 on next line
tcpClient.Connect(New IPEndPoint(IPAddress.Parse("192.168.55.101"), portNumber))
Code on PPC:
Private Sub listener()
Dim tcpListener As New Sockets.TcpListener(IPAddress.Parse("192.168.55.101"), 1414)
tcpListener.Start()
While (True)
' Look for notification
If (tcpListener.Pending()) Then
' Get notification message
Dim tcpClient As Sockets.TcpClient = tcpListener.AcceptTcpClient()
Dim s As IO.Stream = tcpClient.GetStream()
Dim buffer(250) As Byte
Dim bytes As Int16 = s.Read(buffer, 0, buffer.Length)
Dim message As String = System.Text.Encoding.ASCII.GetString(buffer, 0, bytes)
' Send back confirmation
Dim response As String = "OK"
Dim responseBytes() As Byte = System.Text.Encoding.ASCII.GetBytes(response.ToCharArray())
tcpClient.GetStream().Write(responseBytes, 0, responseBytes.Length)
tcpClient.Close()
showNotification(message)
End If
System.Threading.Thread.Sleep(1000)
End While
End Sub
What am i suppossed to write on the port number?? I have tried several numbers but all of them give me the same error 10060
To get that IP address i run this code on my PPC
'Dns.GetHostEntry(Dns.GetHostName()).AddressList(0).ToString
Thanks in advance for any answers
-- modified at 15:36 Thursday 4th October, 2007
Alexei Rodriguez
|
|
|
|
|
i am also having problem in socket programing. i can not send request from PPC to server application running on same pc can u help me.
|
|
|
|
|
Hello,
I'm developing a PPC application using C# .Net CF 2.0 and SQL CE 2.0.
I don't want my database .sdf file to be visible or accessible by the user, because that way he would have the possibility to delete it. I tried the following code:
if ((File.GetAttributes(path) & FileAttributes.Hidden) != FileAttributes.Hidden)
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);
but .Net CF 2.0 does not support GetAttributes or SetAttributes methods.
Does anynone have an idea how I can do it or is there any program for hiding PPC files?
Thanks in advance,
Erisa
Destiny is not a matter of chance, it is a matter of choice.
|
|
|
|
|
|
Hi everyone,
Hopefully anyone will take the trouble to give me an idea, i'm posting the problem i've been working around these two days.
I'm deploing a pocket pc application, using C# .NET Visual Stdudio 2003.
I send the data I want print to server using socket communicaton. After the data are printed i receive a message from the server by means of socket programming.
This is the method that catches the message from the server
public void OnDataReceived(IAsyncResult asyn)
{
//end receive...
string mesazhi = "";
int iRx = 0 ;
try
{
if(asyn != null)
iRx =s.EndReceive(asyn);
char[] chars = new char[iRx + 1];
System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
int charLen = d.GetChars(m_DataBuffer, 0, iRx, chars, 0);
if(charLen != 0)
{
System.String szData = new System.String(chars);
if (szData == "Printed")
{ this.dataGrid.DataSource = this.dataTable;
this.dataGrid.TableStyles[0].MappingName= this.dataTable.TableName;
this.AddGridColumnStyles(false,"EMERTIMI","SASIA");
}
}
As you can see in the method, after i receive the message from the server i want to display some data in a datagrid, so i give to it a datatable as a datasource. At this point my application doesn't respond and i have to restart my pocket pc.If I do not use the datagrid anything goes fine.
Please, someone help me!
|
|
|
|
|
Hi Erisa85d, by now i hope you have already worked out a solution
I wonder if you could tell me how you passed the message from the server to the PPC or viceversa
What IP adress and port did you use on you Server and on you PPC??
I hope you can give me that information, since i cant seem to be able to connect my server to my PPC using sockets
I made a simple example on my local machine, with 2 apps, 1 server and 1 client and it works as it should, but that code doesnt work when using a PPC and a server
Thanks in advance for your time
Alexei Rodriguez
|
|
|
|
|
<b>any body know how to implement a socket program in windows mobile .
i am create a socketconnection in windows mobile emulator but it cannot connect to server and runtime error a msg that 'not find assemmbly reference' so any body know how connect a windows mobile to a server please give the valued idea </b>
from vijo
<b> </b>
vimal
|
|
|
|
|
i am also having this problem, i am working in C#. and can not connect my application(in emulator ) to locathost.
|
|
|
|
|
Multithread application.
I use PostMessagge() function to send a user message (WM_USER + 303) with a HWND of a window
::PostMessage(m_destHwnd, WM_USER + 303, 0, 0);
In a destination windows I use ON_MESSAGE (WM_USER + 303, function) but the window don't receive the message.
With a HWND_BROADCAST the window receive the message.
IsWindow(m_destHwnd) function doesn't recognise the m_destHwnd window handler as a window. Is it possible. I verified the handler is correct.
-- modified at 6:40 Wednesday 3rd October, 2007
-- modified at 6:11 Friday 5th October, 2007
picm
|
|
|
|
|
I have this problem with a pocket pc app that I'm working on. The app runs beautifully while the device is running, but when it comes back after sleeping, my app crashes. I'm don't know how to debug this situation since the debugger stops when the device goes to sleep.
Does anyone have any advice on how to debug in this situation?
I'm using activesync 4.5, windows mobile 2003 on pocket pc, VS 2003.
Thanks for your help!
"In the middle of difficulty lies opportunity." Albert Einstein
|
|
|
|
|
If I'm stupid for asking this could someone just tell me so? Please? Or is this just impossible?
|
|
|
|
|
Hi Muthiah,
MuthiahR wrote: Is there any solution to track End/Power button key in modal dialog?
You can handle WM_KEYUP on any key in a modal dialog if you answer to WM_GETDLGCODE with DLGC_WANTALLKEYS .
The SmartPhone key mapping is in <your sdk>\winuserm.h: identifiers begin with VKT_ .
MuthiahR wrote: I am unable to termiate the application from modal dialogs using End/Power button on keypad
Well-behaved mobile applications are 'minimized' (actually set to the bottom of the Z-order) by user or program action and closed by the system when appropriate.
cheers,
AR
|
|
|
|
|
Edit: this is a response to a deleted message
Hi Muthiah,
Looks like it's time for you to stop typing and read some doc.
That could save much of your time (and mine ).
Check your doc for LVN_KEYDOWN.
cheers,
AR
-- modified at 16:15 Monday 1st October, 2007
|
|
|
|
|
Hello AR,
In your previous reply to my post regarding closing or terminating mobile applications, you mentioned,
"Well-behaved mobile applications are 'minimized' (actually set to the bottom of the Z-order) by user or program action and closed by the system when appropriate."
Right now, I am posting a message to main dialog and calling Destroy Window and PostQuitMessage functions to close my applications. Is this correct way to do it? or Is this what you mentioned in your reply?
If not, can you please provide me with some reference? I tried to find or read more about this, but in vain. Your time and reply is greatly appreciated.
Thanks,
Muthiah.
|
|
|
|
|
Hello,
WM 5.0
VS 2005
I have a mobile application that I want to install on a PDA. However all the PDA will not have the CF 2.0 on them.
I have looked a many articles and none of them address the situation if the compact frame is not already installed.
Doe anyone know of any articles where the setup will install compact frame work if it is not already on the PDA.
Many thanks,
Steve
|
|
|
|
|
hi Steve,
When ever you Installing CAB File on PDA, that time you can install CF2.0 (CAB File NETCFv2.ppc.armv4.cab) First.
Pavan Pareta
|
|
|
|
|
steve_rm wrote: Doe anyone know of any articles where the setup will install compact frame work if it is not already on the PDA.
All you have to do is to right click on the .NET Compact Framework Merge Module in your setup and deployment and choose "Include" to include it with your CAB. It will increase the size of your installer quite a bit though.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|