|
Does anybody know how to get going with a program using normal TCP/IP calls using the 2003 Pocket PC emulator?
when I try my program, it gets stuck during the connect call and I receive one of two errors:
if I use the address 127.0.0.1 to open the socket, the connect call returns a CONNECTION REFUSED error
if I use the address 192.168.0.100 to open the socket, the connect call returns a HOST NOT FOUND error.
I have not found where to set the IP address on the emulator, and it does not ask for an address at any time;
I'm I missing something; is there something I should load or add to the emulator.
Does the emulator need to have some configuration actions done for it to be part of an IP network and if so; where are these configuration actions done. I have browsed the MSDN documentatation and have found zilcht on this subject....
The code that I have is being ported from the Palm to the Pocket PC and it also runs on linux. Pocket PC seems to be the only unfriendly platforms so far....
Thanks for your help!
dt.lcr
|
|
|
|
|
Hi,
I have a SDA smartphone from HTC (T-Mobile, OS: WM 2003). I need a GSM connection (no GPRS) in my visual c++ program.
If I open a serial port and send "AT\r\n", I will get nothing back. I tested on port COM1 to COM10.
I need a GSM connection from mobile phone to mobile phone and from mobile phone to ISDN.
How can I start a connections?
Are there library or samples?
Thanks
Thomas
|
|
|
|
|
Look in the samples of OxygenMobileActiveX (search in google)
or www.softwarecave.com
?InsideThePandoraBox?
|
|
|
|
|
Hi everybody,
I have a iPaq Pocket PC with Windows 2003 Premium Edition and I am making a little script that move and update the current record like that:
rsSerie.Open "AIPTE", BANCO, adOpenDynamic, adLockOptimistic<br />
do while not rsSerie.EOF <br />
lbl.Caption = "Atualizando Status Serie... " & CInt(((cont + 1) / rsSerie.RecordCount) * 100) & "% - " & rsSerie("contador")<br />
If rsSerie("nr_ini") >= rsSerie("nr_fim") Then<br />
rsSerie("status") = "F"<br />
Else <br />
rsSerie("status") = "A"<br />
End If<br />
rsSerie.movenext<br />
Loop
The caption in the lbl is:
Autualizando Status Serie... 0% - 2
Autualizando Status Serie... 1% - 4
Autualizando Status Serie... 2% - 2
Autualizando Status Serie... 3% - 4
Autualizando Status Serie... 4% - 2
Autualizando Status Serie... 5% - 4
If I do this:
rsSerie.Open "AIPTE", BANCO, adOpenDynamic, adLockOptimistic<br />
do while not rsSerie.EOF <br />
lbl.Caption = "Atualizando Status Serie... " & CInt(((cont + 1) / rsSerie.RecordCount) * 100) & "% - " & rsSerie("contador")<br />
rsSerie.movenext<br />
Loop
The caption in the lbl is:
Autualizando Status Serie... 0% - 2
Autualizando Status Serie... 1% - 4
Autualizando Status Serie... 2% - 5
Autualizando Status Serie... 3% - 6
Autualizando Status Serie... 4% - 7
Autualizando Status Serie... 5% - 8
If I run in Pocket PC Emulator the script produces the same result in both cases but in Pocket PC produces this strange result when I update the recordset.
Any Idea?
|
|
|
|
|
Hi All,
I am currently working on my final year project. This project is about GPS programming. I am relatively new to this and would appreciate if someone could help me.
I have to pass information from my computer to my Pocket PC which has an in-built receiver without the use of an external receiver. I would really appreciate if you could provide me with the codes in VB.
It would also be helpful if I could get the codes asap as I could then overcome my first hurdle in GPS Programming.
Sorry for the trouble.
Thanks alot.
silver
|
|
|
|
|
Hello everyone,I'm totally new to this .Net development. I found problem on my mobile development here using ASP.NET. I'm using MS SQL 2000 as my database,I am creating a searching function which retrieve data from my database using this mobile development.
I have solve this command with no error,but I found this problem below now at this moment. Anyone can give me some help on this please? I think this is not too difficult for you,but I really have no idea with how to solve this.
1. I don't have any idea if the dataset is load with any data inside. Normally we can test with (Messagebox.show) function in VB.NET to check if there was load with data, but for this Mobile Development,what should we used to check?
2. I need to display the data adapter to a new form,the user can see all the data by a list in a new form. And the user can go for more details by selecting any field of the data to look for the details of each row.
The following are my code,I wish can get help from someone here. Thank you so much for reading and hear from you all soon.
Private Sub SrcSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SrcSubmit.Click
Dim xname As String 'This is the username
Dim xage As String 'This is the selected age
Dim xgender As String 'This is the gender being selected
Dim ObAdapter1 As SqlDataAdapter
If Len(SrcTxtB.Text) <> "0" Then
xname = Convert.ToString(SrcTxtB.Text)
End If
If SelectionList1.Selection.Text <> "" Then
xage = Convert.ToString(SelectionList1.Selection.Text)
End If
If SelectionList2.Selection.Text <> "" Then
xgender = Convert.ToString(SelectionList2.Selection.Text)
End If
If Len(xname) > 0 And xgender = "0" And xage = "0" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Username='" & xname & "' and Status='1'", Obconn)
ElseIf Len(xname) > 0 And xgender <> "0" And xage = "0" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Username='" & xname & "' and Gender='" & xgender & "' and Status='1'", Obconn)
ElseIf Len(xname) > 0 And xgender <> "0" And xage <> "0" Then
If xage = "1" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Username ='" & xname & "' and Gender='" & xgender & "' and Age>17 and Age<24 and Status='1'", Obconn)
End If
ElseIf Len(xname) > 0 And xgender = "0" And xage <> "0" Then
If xage = "1" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Username ='" & xname & "' and Age>17 and Age<24 and Status='1'", Obconn)
End If
ElseIf Len(xname) = 0 And xgender <> "0" And xage <> "0" Then
If xage = "1" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Gender='" & xgender & "' and Age>17 and Age<24 and Status='1'", Obconn)
ElseIf xage = "2" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Gender='" & xgender & "' and Age>23 and Age<30 and Status='1'", Obconn)
End If
ElseIf Len(xname) = 0 And xgender <> "0" And xage = "0" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Gender='" & xgender & "' and Status='1'", Obconn)
ElseIf Len(xname) = 0 And xgender = "0" And xage <> "0" Then
If xage = "1" Then
ObAdapter1 = New SqlDataAdapter("SELECT * FROM UserPass WHERE Age>17 and Age<24 and Status='1'", Obconn)
End If
End If
Try
Obconn.Open()
ObAdapter1.Fill(DS, "SrcResult")
List3.DataSource = DS.Tables("SrcResult").DefaultView
ActiveForm = SearchResult.Form
Catch ex As Exception
End Try
Obconn.Close
End Sub
|
|
|
|
|
Hey there all,
Today I get to try my hand at Embedded CE. I'm looking for a great tutorial along the lines of TheForgers Win32 API Tutorial
Can anyone point me in the right direction???
TY
Greg
|
|
|
|
|
I am developing an automation program on a panel pc that has Win CE 4.2 OS by .NET Compact Framework. My device does not have a soft reset option.I can only turn it off and every time i close it , all files and programs are being deleted except files in smart card. I need to edit the nk.bin and add setup files of .Net framework , sqlCE 2.0 and also my custom application to the nk.bin. Would someone tell me how to edit the nk.bin file by platform Builder 4.2 .
I also tried to build a new nk.bin but i always get errors while building .So maybe i can edit the existing nk.bin .
Thanx in advance
junior MCAD
|
|
|
|
|
In Windows Mobile platform I can use IWMPPlayer interface to play mp3 file with using Windows Media Player 10.
Does it work in C# ??
Could I get some examples ??
Thanks a lot.
|
|
|
|
|
How to detect a bluetooth mobile from a computer and to perform simple operations throug a mobile on computer.
|
|
|
|
|
Hello,
I'm trying to push using OBEX Object Push profile (and via Bluetooth, that means the BlueZ stack) on Linux (I'm sorry, I know this forum is more about Windows, but maybe someone could help me here).
I have no problem pushing the the file using the routine from the ussp-push tool. But what I'd need is to be able to push multiple files simultaneously to multiple devices. I keep getting a "device busy" message. Probably a problem with socket blocking or something, but I'm not a network specialist (and not even a linux specialist, first time i work with it ). Anybody has done that, has an application that does that and can gimme the source code's URL or any other hints?
PS: google - doesn't find anything, but I'm not even sure what the problem is though, so I might be googling for the wrong term.
|
|
|
|
|
hi all
am new to this community,
and i like to learn more abt mobile application development
plz guide me
thanks in advance
|
|
|
|
|
Hi.
A good start is to look at the basics.
There are two ways (as least as i know) of programing for mobile devices. The first comes from Microsoft, and is called .NET Compact Framework. To program with this, you have to purchase Visual Studio from Microsoft (Really expensive!).
Or you could try Pocket C or Pocket C#. Search in google for them. Although they're not free, they are less expensive.
The question is that you need a compiler to compile you programs on a mobile device, and both of the mentioned above does this. If you'd like to have a free compiler, there are too, but developement on these can be very dificult, speciallly if you want to make your programs available to many diferent platforms.
I hope that this helps you. Mail me to beniwtv@gmail.com if you want further information about the described above.
Benedikt
|
|
|
|
|
thanks for ur information
|
|
|
|
|
Hello
I have the following problem. I have 2.cab files programmed and to my Pocket PC transfer.
Then I execute these files and the PocketPC installs it also correctly.
However if I now execute these 2.cab files again, then I get a message
"The program existed already. Would you like to overwrite it?"
And that is the problem, I doesn't want that the PocketPC ask me this.
I want that the PPC overwrite the old program without asking me.
If someone knows any trick or solution I will be very thankful for all possible suggestions
Thanks, bye
|
|
|
|
|
As far as I know, this is not possible since this is a Windows issue. Windows looks if the given program is installed and if so it asks you to overwrite it.
If you want to "update" the program silently, maybe it helps to change the program name each update.
Benedikt
|
|
|
|
|
Hello, all.
I need to make my own on-screen keyboard application (or virtual driver) on PocketPC 2003.
Does anybody know what technique i must use and where can i find any information about that (source code of example will be better)? I'll greatly appreciate any links.
|
|
|
|
|
The on-screen keyboard (as you call this) that come with Windows Pocket PC are the so called "SIP"'s (Software Input Panel). Just search in google for SIP Pocket Pc and you will find information how to program your own SIP.
MSDN (msdn.microsoft.com) is also a great resource.
I hope that this helps you,
Benedikt
|
|
|
|
|
i connected to a Pc from PDA device(FALCON)troungh Remote Desktop
connection. so that i can see desktop of Pc on PDA device and i am
working with a inventory software, which actually running on
remote server, this software plays some sounds on some special
occations, but this sound is not playing on PDT device. i checked
all sound options on remote desktop connection settings, but sound is
not comming, can u suggest a option to get this sounds on PDT device which
is running on terminal server or can i stop bar code scanning option of pda ?
thank u
|
|
|
|
|
Hi every one...
I am trying to build a web mobile application that contains an ObjectList.I have used a stored procedure called GetTelephones()to provide the DataSource of the ObjectList using the code:
public static SqlDataReader GetTelephones()
{
SqlConnection connection=new SqlConnection(ConnectionString);
SqlCommand command=new SqlCommand("SELECT UserName,Telephone FROM IdentityTable",connection);
try
{connection.Open();
return command.ExecuteReader(CommandBehavior.CloseConnection);
}
catch(Exception ex)
{
connection.Close();
throw ex;
}
}
and to bind the ObjectList to the DataSource:
objlCustomersT.DataSource=
FirstWebMob.MobileData.GetTelephones();
objlCustomersT.DataBind();
And the HTML of the ObjectList:
<mobile:ObjectList id="objlCustomersT" runat="server" AutoGenerateFields="False" CommandStyle-StyleReference="subcommand"
LabelStyle-StyleReference="title">
<DeviceSpecific>
<Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ItemDetailsTemplate>
<mobile:Label id="lblName2" runat="server">
<!--<%#DataBinder.Eval(((MobileListItem)Container).DataItem,"UserName")%>-->
</mobile:Label>
<mobile:PhoneCall id=pcCustomer runat="server" PhoneNumber='<%#DataBinder.Eval(((MobileListItem)Container).DataItem,"Telephone")%>'>
</mobile:PhoneCall>
</ItemDetailsTemplate>
<ItemTemplate>
<mobile:Label id="lblName" runat="server"></mobile:Label>
</ItemTemplate>
<headerTemplate>
<mobile:Label id="lblTitle" runat="server" Font-Bold="True" Font-Size="Large">CustomerName</mobile:Label>
</headerTemplate>
</Choice>
</DeviceSpecific>
</mobile:ObjectList>
But when i run the application i get the error:
Must have one or more fields to databind. (Application may have autogenerated fields from an empty DataSource. To clear items, set DataSource to null.)
Before i use the templates I have run the application without templates and it worked successfully but i want to use the PhoneCall Control inside the columns of the ObjectList(in the ItemDetailsTemplate).
Please..Could any one help me to fix this error.
|
|
|
|
|
I built an ASP.NET mobile web application last year for fun and hosted it on my home server. I was successful in accessing it with my Sprint phone, which uses the "Obigo 1.1.4 WAP 2.0" browser. Now, I'm with Verizon and my current phone also uses an Openwave WAP 2.0 browser, but I cannot access my mobile web site. When I punch in the URL, it hangs for long time, then it gives me the error "Error: Request timed out".
I asked a friend who is with AT&T to try it on his cell phone, and it works. So, my app is working. I dont know if it's a problem with my new phone's browser software (do I need to upgrade it?), or with the Verizon service (maybe they block something on their network).
Another concern is that my home internet service provider blocks port 80 on our network. So i had to use another port, like 81. So to access my web app, the URL would be something like http://myapp.mydomain.com:81. Could it be that my phone's browser does not recognize this non-default port?
Any ideas? Anyone with Verizon that is able to successful access .NET mobile web apps?
|
|
|
|
|
Hello all,
I am trying to create a Smart Mobile/GPS application using .Net 2003 framework. In addition for the GPS support I am using OpenNETCF SDK 1.4 library. I am having problems reading in data from the GPS . The following is my code snippet:
private void button1_Click(object sender, System.EventArgs e)
{
gps.BaudRate = OpenNETCF.IO.Serial.BaudRates.CBR_9600;
gps.ComPort = "COM1:";
textBox1.Text = gps.ToString() + "\n";
gps.GpsSentence += new OpenNETCF.IO.Serial.GPS.GPS.GpsSentenceEventHandler(gps_GpsSentence);
gps.GpsCommState += new OpenNETCF.IO.Serial.GPS.GPS.GpsCommStateEventHandler(gps_GpsCommState);
gps.Start();
}
private void gps_GpsSentence(object sender,GpsSentenceEventArgs e)
{
MessageBox.Show("calling");
textBox1.Text += "calling" ;
textBox1.Text += e.Sentence + " ";
}
private void gps_GpsCommState(object sender,GpsCommStateEventArgs e)
{
switch(e.State)
{
case OpenNETCF.IO.Serial.GPS.States.Running:
textBox1.Text += "GPS Started";
break;
case OpenNETCF.IO.Serial.GPS.States.Stopped:
textBox1.Text += "GPS Stop";
break;
}
}
When I run the code using a pocket PC emulator , the code fires gps_GpsCommState event (it always shows the message GPS started even when its not connected) , and more importantly it does not fire the gps_GpsSentence event ever. What is the problem?? Could anyone help me out with this. I would be greatly obliged. If you of any other way to read in data pls lemme know. Also let me know what is the problem with the code.
|
|
|
|
|
Dear All
I am trying to create an MP3 player for Windows CE. What kind of SDK that I can use to decode the MP3 file, and where can I get it (for free.., hopefully)?
Thank you
|
|
|
|
|
Hi!
I am trying to create an mp3 player for Smartphone (WM 5.0) using WM Player 10
Have you solve problem with your mp3 player ?
I've tried solve this like:
Process audioPlayer = new Process();
audioPlayer.StartInfo = new ProcessStartInfo("wmplayer", "Baby.mp3");
audioPlayer.Start();
but I can not hear any sound and it appear error message from WM Player like:
Cannot play the file. The file is either corrupted or the Player does not support the format you are trying to play.
Can anyone help me ?
Regards.
|
|
|
|
|
Fortunately, I have tried using SDK from FMOD, and it worked!
We can use FMOD very simple and easy, just a view lines of code...
FMOD site: www.fmod.org
|
|
|
|