|
Thanks a_jhakas! I have understood your points. Do you have any tricks/approaches to tune/improve the performance of GPRS connection?
Any reference resources (samples/tutorials) will be appreciated.
regards,
George
|
|
|
|
|
Hi,
I am developing an application of windows mobile 5.0 using visual studio 2005 C#.Net.Testing with a emulator windows mobile 5.0 pocket pc Emulator..
I have one doubt, How to identify device Manufacturer(Manufacturer of client's device) and device Model(Model of client's device)using C# code?
Appreciate if you can help..
Thanks
|
|
|
|
|
The only way I'm aware of is to use SystemParametersInfo with the SPI_GETOEMINFO flag. The code we're using:
private const int SPI_GETOEMINFO = 258;
[System.Runtime.InteropServices.DllImport("coredll")]
private static extern int SystemParametersInfo (
int uiAction,
int uiParam,
System.Text.StringBuilder pvParam,
int fWinIni );
public static string GetOemInfo()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder( 256 );
int result = SystemParametersInfo( SPI_GETOEMINFO, sb.Capacity, sb, 0 );
int error = System.Runtime.InteropServices.Marshal.GetLastWin32Error();
if ( result != 0 )
{
return sb.ToString();
}
return "";
}
|
|
|
|
|
Hi All,
I want to display the current location's latitude and longitude on the mobile screen using some web service or something.
(For India)
I ve explored www.geocoder.us but i want something similar for india
Can anyone please help me on this.
Thanks in Advance.
Regards,
Ritika
Ritika
|
|
|
|
|
Hello,
I am populating at combo box from a dataset. But when I run the program I find I get system.data.datarowview being displayed in the combo box. What should be displayed is the values in the table. i.e. R4484, G5474.
I am using pocket PC 5.0. I have tried this code in a simple window form, and it works fine, but not in a pocket Pc application. That is why i posted here. Thought maybe there was something wrong with this type of control being used in pocket pc application.
<br />
ds = ws.loadSupportContracts(clientID)<br />
<br />
If (ds.Tables(0).Rows.Count > 0) Then<br />
Me.cboSupportContracts.DisplayMember = "supportContractID"<br />
Me.cboSupportContracts.ValueMember = "supportContractID"<br />
Me.cboSupportContracts.DataSource =ds.Tables("contracts").DefaultView<br />
End If<br />
I did try and solve this problem by doing the follow. But had an error "value does not fall within the expected range"
[code]
ds = ws.loadSupportContracts(clientID)
Me.cboSupportContracts.DataSource = ds.Tables("contracts").DefaultView
Me.cboSupportContracts.DisplayMember = "supportContractID"
Me.cboSupportContracts.ValueMember = "supportContractID"
I have also tried using a binding source but still the combo box kept on displaying system.data.datarowview.
<br />
ds = ws.loadContacts(clientID)<br />
bs.DataSource = ds<br />
bs.DataMember = "contracts"<br />
<br />
If (ds.Tables(0).Rows.Count > 0) Then<br />
Me.cboContact.Items.Clear()<br />
Me.cboSupportContracts.DisplayMember = "supportContractID"<br />
Me.cboSupportContracts.ValueMember = "supportContractID"<br />
Me.cboContact.DataSource = bs<br />
End If<br />
If anyone has any ideas about this please let me know.
Many thanks in advance,
Steve
|
|
|
|
|
This code works fine for me in VB.NET 2005
<br />
Dim da As New SqlDataAdapter("SELECT * FROM Categories", conn)<br />
Dim ds As New System.Data.DataSet<br />
da.Fill(ds)<br />
With Me.cboCountries<br />
.DisplayMember = "CategoryName"<br />
.ValueMember = "CategoryID"<br />
.DataSource = ds.Tables(0)<br />
End With<br />
Alexei Rodriguez
|
|
|
|
|
Thanks for your reply Alexei,
But I have already tried that.
This works ok in a windows form, but in a pocket pc I can't get it to work. I have done like this many times in windows. This is my first pocket PC so not sure if there is something to do with it.
Many thanks for any suggestions,
Steve
|
|
|
|
|
Not sure if you still care, but i was getting the same issue, it ended up being the accessors. I changed my struct to be public as oppossed to internal, the bind started working just fine.
Ryan
|
|
|
|
|
OK, so the Process class in System.Diagnostics is not supported in CF 1.0. Is there any other way in CF 1.0 that I can invoke a process and kill a process as the following lines would achieve in CF 2.0?
System.Diagnostics.Process.Start("iexplore", "http://www.codeproject.org");
and
System.Diagnostics.Process procIe = System.Diagnostics.Process.GetProcessesByName("iexplore")[0];<br />
procIe.Kill();
|
|
|
|
|
You can use the Windows CE CreateProcess API to load a program.
|
|
|
|
|
Excellent stuff! Thanks man, it worked like a charm.
Do you mind if I ask one more questions please?
I assume that killing the process will be done through the TerminateProcess call but I can't seem to figure out how to kill the process that I have just created through CreateProcess. Any pointers here?
Thanks again. You saved me a lot of headaches.
|
|
|
|
|
Public Structure PROCESS_INFORMATION
Public hProcess As IntPtr
Public hThread As IntPtr
Public dwProcessID As UInteger
Public dwThreadID As UInteger
End Structure
Use the hProcess returned from CreateProcess with TerminateProcess.
|
|
|
|
|
Hi, I'm developing an application on PocketPC 2003 2nd edition.
Anyway, I'm looking in my output folder and I've located the executable, the object files and another bunch of object files with the extension of 'sbr'.
These sbr files have the same name, date-time stamp and number-of obj files. (10 obj files means 10 sbr files, etc...)
Does anyone know what these files are for?
|
|
|
|
|
SBR files contain Source BRowsing information. They contribute to a final .BSC file. This file is used when you select Tools/Source Browser in eVC, and also when you select some options from ClassView (e.g. Calls, Called By, References, Base Classes, Derived Classes).
The option to generate .sbr files is under Project/Settings, C/C++ tab, Listing Files category. Check 'Generate Browse Info' to generate the files, or uncheck to stop generating them. To turn generation of the .bsc file on or off, go to the Browse Info tab and check or uncheck 'Build Browse Info File'.
I have noticed the two settings get out of sync sometimes. I think it might be after you're prompted to build browse info when using any of the options I listed in the first paragraph, then the environment subsequently crashes before you save the workspace (which saves changes to the project file). This seems to leave the option to build .sbr files turned on, but loses the .bsc setting.
|
|
|
|
|
Hello everyone,
I am wondering whether there are some samples/tutorials for a beginner to learn how to use C/C++ to read SIM card information on Windows Mobile platform?
thanks in advance,
George
|
|
|
|
|
Hi guys,
does anyone know how to export the phone call log in Windows CE 5.0 (maybe in a XML file)? I've tried with Microsoft.WindowsMobile.Status and Microsoft.WindowsMobile.Telephony without results. Thank you.
Stefano
Stefano
|
|
|
|
|
i always failed with create a IPv6 socket on PPC2003/WM5 . the function like that: socket(AF_INET6, SOCK_DGRAM, IPPROTO_IPV6));
it always return INVALID_SOCKET, and the error code is 10043.
but the IPv4 socket could be success everytimes.
how can i do? whether the IPv6 protocol was not deploy on my device? how to deploy it?
|
|
|
|
|
Hello,
VS 2005
I have created a Pocket that uses a web service to get data from a SQL server.
I have created the web refererence to the web service.
I am developing a pocket PC in WM 5.0
However, when I click a button on the PDA to get the data I get this error message "Cannot establish a connection to the network"
I am using active syn and have and using the emulator. This has been connected ok.
I have also configured the emulator from File | configure | Network and checked host only network. ( I don't think this makes much difference as the pocket 2003 i developed, it did not make much difference, as it worked if it was checked or not).
The code that causes the error is below:
<br />
Try<br />
Dim ws As New DataIncidents.Service()<br />
Dim ds As New DataSet<br />
<br />
ds = ws.getIncidents()<br />
'Dim cnnStr As String<br />
'cnnStr = ws.getIncidents()<br />
<br />
Me.grdIncidents.DataSource = ds.Tables(0).DefaultView<br />
<br />
Catch ex As Exception<br />
MessageBox.Show(ex.Message)<br />
End Try<br />
If I add the Url line in, it works ok
<br />
Try<br />
Dim ws As New CodeRed.Service()<br />
ws.Url = "http://1.1.1.1/Incidents/Service.asmx" 'Works with this line<br />
Dim ds As New DataSet<br />
<br />
ds = ws.getIncidents()<br />
'Dim cnnStr As String<br />
'cnnStr = ws.getIncidents()<br />
<br />
Me.grdIncidents.DataSource = ds.Tables(0).DefaultView<br />
<br />
Catch ex As Exception<br />
MessageBox.Show(ex.Message)<br />
End Try<br />
Its not good to have this line hard coded in the program as if the location is changed then the problem will no longer function.
Can anyone tell me why I am getting this error.
Many thanks in advance,
Steve
|
|
|
|
|
Maybe when you added the WebReference to your project you used http://localhost/ws/Service.asmx in the url, you should use the ip address of the pc since localhost when executed in the PPC will be the PPC itself
I hope this can help you, but even if it works, since you dont want to hard code the url, this wont be the best way to do it
Maybe you should write the url in a text file and read the url from that file when you execute the project to establish the ws.url property dinamically
Alexei Rodriguez
|
|
|
|
|
Thanks Alexei,
I did something stupid, I forgot to change the web reference properties to my computer IP address.
Steve
|
|
|
|
|
Hi Steve,
I think u r getting this msg becoz u have not cradle ur device . In WM 5.0 u have to cradle ur device to make data connection from Desktop PC or laptop.
Ankur
|
|
|
|
|
Hi.
I'm writing an application with Compact Framework 2.0 SP 1. I want to apply the [STAThread] attribute to the main method, but there seems to be no such attribute. I get offered the MTAThread attribute, but not STAThread. Of course, the compiler doesn't find either. It just seems to be missing in the referenced assemblies (System.dll). I didn't find anything about this problem on the web, so could anybody help me, please? I'm quite desperate. I already reinstalled the CF 2.0, no success. Nobody else seems to have had this problem, ever. Help!!!
Thanks!
rudiman
PS: Sorry for posting this question in the .NET discussion group, too. Now I think it fits better here.
-- modified at 18:58 Saturday 2nd December, 2006
|
|
|
|
|
STAThread is relevant to COM. There are two versions of the COM runtime available to the OEM for Windows CE. One only supports in-process COM objects, with no marshalling: the objects must support the free-threaded model. The other version is a reasonably full DCOM implementation which supports full cross-apartment and cross-process marshalling (in some versions, also cross-machine connections but I think this was dropped in CE 5.0 and later).
Windows Mobile devices include only the simpler in-process, no-marshalling version. Compact Framework therefore doesn't support the more complete version. There's no point having the STAThread attribute because the underlying support isn't there.
|
|
|
|
|
Hi,
I have developed an audio record/playback app using Visual Studio 2005 on i-mate JAM (Windows Mobile 2003 OS). If I record and play back a large single buffer, I get good quality audio. However, if I fragment the buffer into smaller records and use the callback facility provided with waveInOpen(), I get bad quality audio and the audio takes longer to play. This seems to be due to the fact that the overhead in preparing/unpreparing and adding buffers is creating a burden on the system. I find this strange since the micro is a 400Mhz Arm device that has plenty of steam. I have tried using the event-based notification and the windows message notification, even polling the flag in the WAVEHDR structure. I am also using double-buffering.
Without including the actual code, I wondered if anyone else has experienced problems like this using the audio wave function on a Pocket PC ?
|
|
|
|
|
I'm a rookie, and I am learning to write mobile programs using c++ these days.
Yesterday I write a listview, it has the fouction of insert new, modify, and delete items, and when click on the label on the top, items will sort by the column you click.
The problem is, the first item I've inserted into the list refused to attend the arrangement, it is always on the first line. So I hope you guys give me some prompts, thanks.
|
|
|
|