|
Here^
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Very good stuff! Thank you VuNic!
regards,
George
|
|
|
|
|
You are welcome
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Hi,
Actually I m developing one application whr I have to develop a speech recognisation control .As I know MS provide SAPI(Speech api),but if I m trying to use that then its not working for windows mobile platform . Can anyone tell me how to develop that control.
Ankur
|
|
|
|
|
Hello everyone,
I am developing a Windows Mobile application, using C/C++. It is an agent using HTTP(S) to communicate with server. And now I am using Cradle to test the application and it works fine.
Now I want to test it using GPRS connection. I am wondering whether I need any change in my code? Environment settings? Do I need to change any settings in order to have better performance?
In GPRS, is it the same as connection using Cradle to communicate with HTTP server?
thanks in advance,
George
|
|
|
|
|
Hi George ,
I think in device settings u have to make one connection setting entry for the same connection that u r using . For eg if u r using WAP then make one connection in setting->GPRS. nd in advance setting choose that connection for WAP.
Ankur
|
|
|
|
|
Thanks Ankur! I am a little confused. I have a simple HTTP based agent, which is working fine on Windows Mobile when I place it on Cradle (by borrowing host machine's IP address) to communicate with my home-made server.
Now, I need to test whether the application could work standalone (without host machine, Active Sync, etc.) by using GPRS to connect to server. I am not using Web browser on my PDA, so is WAP needed? (I only send HTTP package to HTTP server and wait for response.)
Could you indicate in my situation, whether I need to configure anything as you mentioned above, like WAP? (correct me if I am wrong, I think if we do not use Web Browser on mobile PDA, there is no need to configure WAP, even if my program is using HTTP based communication.)
Any comments are welcome.
regards,
George
|
|
|
|
|
Hi George,
I wrote WAP for an example . My motive is to tell u that for making a GPRS u have to make proper setting for that . Actually if u go in device setting->connection u will find that u have 4 option for a connection Like (Work,internet,wapnetwork and secure wap network.)
Now what u need to do is make one new gprs connection. For making that connection follow the steps
(1)Go in Setting->connection->gprs
(2)Click Add in menu
(3)Now chose any name for connection like myconn
(4)In connectto chose the connection that u r using in ur application(I mean work, internet or whatever u r using)for Example Work
(5)Give the other setting like APN and proxy (whtever required)
(6)Press Done and come out
(7)Now in main connection screen click on the menu
->advance
(8).Now if u have set the new connection for work then in combo box for work chose ur connection i.e myconn
(9)click on done
Now check ur application is working fine or not
|
|
|
|
|
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?
|
|
|
|