|
Building a mobile application from the command line was traditionally a real bitch, because you need to reset all sorts of paths. In Visual Studio, go to Tools, Options, then expand Projects and Solutions, VC++ Directories, and change Platform to Windows Mobile 5.0 Pocket PC SDK. Then look at Executable Files, Include Files and Library Files. To get a successful command-line build, you need to set the PATH, INCLUDE and LIB folders as per these settings.
Next, you need to understand that Windows CE changes some of the core DLLs and hence the import library you use. It does not have kernel32, user32, gdi32, or advapi32. Instead it has a single core library, coredll.dll. To use this you link with coredll.lib.
Coredll also implements the standard Windows CE C runtime library, rather than this being a separate DLL. Visual Studio 2005 does add a few extra functions not implemented by coredll in msvcr80.dll, but the coredll implementation is mainly used.
I generally avoid the pain by simply running devenv.com with the /Build switch. That saves having to get and keep both your build scripts and Visual Studio up to date and in sync with each other.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
I am doing mobile application in .net 2005 .i want to save my all the form in formation when the mobile CE crash.I want to recovery that form when the Application again start.can u some one help me regarding this.
Ram Krishna Pattnayak
Software Developer(SDS)
Sun-Dew Solutions Pvt.Ltd
www.sundewsolutions.com
kolkata
|
|
|
|
|
can anyone tell me how I can create a new shell for windows xp embedded
I want complete detail regarding this i.e. how do we apporoach this problem, what are the basic skills required and which tools are helpful
|
|
|
|
|
Define what you mean by 'a shell'. If you mean 'a program that can take the place of Explorer at boot time', any program can do that. You simply set a registry entry to define the program that is the shell. I can't find the details right now.
MSDN has more details on custom shells for XP Embedded at http://msdn2.microsoft.com/en-us/library/ms940134.aspx[^].
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
hi guys.
I'm trying to develop an application for mobile second edition 2003,i can deploy and install windows mobile application in Visual Studio 2005.
about my application :
its just a simple tutorials application about C programming language, where user can read and learn from this program, thats it.
so tell me any good one, what could be the best way to start and guide me to go through.
thanks!!!
so much of happy ending...
|
|
|
|
|
Hello to all,
what's the procedure to connect to the database and retrieve the data in mobile enumerator
Mogha Ritesh
|
|
|
|
|
Hello,
VS 2005
WM 5.0 & WM 6.0
I am creating some software and don't want the software to be installed on any other PDA devices.
I can give it to the customer, but how can I avoid the customer from installing it on other PDAs.
I think I need to create some license so that the setup I give them will not be able to install if it has already been installed on another PDA.
Which is the best practice when it comes to distributing software and to avoid the customer from installing on many PDA?
The customer will have to buy 1 license for each PDA they want the software installed on. However, the customer could easily pay for 1 license and install on many. This is what I am trying to avoid.
Many thanks for any advice,
Steve
|
|
|
|
|
Devices typically have a unique identifier - this is a requirement for Windows Mobile. You can commonly link a licence key to the specific device using this unique identifier - this is the approach taken by TomTom Navigator, for example.
However, you'll have to come up with some way of transferring licences - customers will have a reasonable expectation of being able to transfer the software to a new device. This is particularly true in enterprise software because the amount of abuse that these devices take is incredible!
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
hi frndz,
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
-- modified at 6:22 Wednesday 10th October, 2007
|
|
|
|
|
Hi all
Is there any way to get notification when a program launched,
terminated, or set active?
and then get the program's name...
thanks~
|
|
|
|
|
I need to write an agent that will monitor activity on the PPC device.
In order to do so I need to get notified when process is started.
As I understand it may be done using 'SetWindowsHookEx' function but that all I know for now.
I'll be happy to sample or explanations how to continue.
|
|
|
|
|
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
|
|
|
|