|
See you can use RDA(Remote data access)or replication for this purpose , choose one of them depending on the size of data you want get on device ..., up to 10 mb on device by using RDA is very efficient...
Windows mobile development, pocket pc development , C#.net compact framework, Desktop application , web service
|
|
|
|
|
Can anyone tell me how to bulid a one click installer, that will install, my 3 cab files (SQL stuff, and deploy my application to the PDA? So that we do not have to do it manualy.
Thanks!
Computer Programmer Web/Mobile .NET
|
|
|
|
|
|
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Configuration.Install;<br />
using Microsoft.Win32;<br />
using System.Reflection;<br />
using System.IO;<br />
using System.Diagnostics;<br />
using System.Windows.Forms;<br />
<br />
namespace WindowsControlLibrary1<br />
{<br />
[RunInstaller(true)]<br />
public partial class CustomInstaller : Installer<br />
{<br />
public CustomInstaller()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
protected override void OnAfterInstall(System.Collections.IDictionary savedState)<br />
{<br />
string programName = "\"" + CeAppMgrExe + "\"";<br />
string programArg = "\"" + IniFilePath + "\"";<br />
<br />
MessageBox.Show(programName + " " + programArg);<br />
Process.Start(programName, programArg);<br />
base.OnAfterInstall(savedState);<br />
}<br />
<br />
const string _ceAppMgRegistryPath = @"software\Microsoft\Windows\CurrentVersion\App Paths\CEAppMgr.exe";<br />
const string _iniFileName = "PDARAM.ini";<br />
const string _filePrefix = @"file:\";<br />
string CeAppMgrExe<br />
{<br />
get<br />
{<br />
RegistryKey subKey = null;<br />
string exePath = null;<br />
try<br />
{<br />
subKey = Registry.LocalMachine.OpenSubKey(_ceAppMgRegistryPath);<br />
exePath = (string) subKey.GetValue("");<br />
}<br />
finally<br />
{<br />
if (subKey != null)<br />
subKey.Close();<br />
}<br />
return exePath;<br />
<br />
}<br />
}<br />
string IniFilePath<br />
{<br />
get<br />
{<br />
<br />
string installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);<br />
string iniFilePath = Path.Combine(installFolder, _iniFileName);<br />
if (iniFilePath.StartsWith(_filePrefix))<br />
{<br />
<br />
int index = _filePrefix.Length;<br />
iniFilePath = iniFilePath.Substring(index);<br />
<br />
}<br />
return iniFilePath;<br />
<br />
}<br />
}<br />
}<br />
}
Can anyonehelp me? I am buliding the Desktop installer, and it starts the install proccess, but tells me there is an error in my setup file?
This is my INI file
[CEAppManager]<br />
Version = 1.0<br />
Componet = DeviceApplication1<br />
<br />
[DeviceApplication1]<br />
Description = PDA RAM Data Collection Application<br />
CabFiles = SmartDeviceCab1.CAB<br />
Computer Programmer Web/Mobile .NET
|
|
|
|
|
Hi all,
I'm find some problem to bind a simple String Array (NamesWpt()) with a Datagrid (DataGrid1).
The only result I obtained with this simple code line:
DataGrid1.DataSource = NamesWpt
is to populate the DataGrid with length of strings contained in Array (NamesWpt()). And the name column is been named "Length".
How to see contained Names?
Is it possible to bind a multi-column DataGrid with a multi dimensional array?
Thanks
Marco
|
|
|
|
|
You would need to create an ArrayList, add any number of classes having n number of properties you want to the ArrayList and bind it to DataGrid.
To bind an Arraylist to a DataGrid, refer the link below:
http://www.c-sharpcorner.com/UploadFile/mahesh/ArrayListBinding10212005102338AM/ArrayListBinding.aspx
~Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Thanks for reply Dave,
I visited page you suggested me, and surely I'll can get some guideline.
Marco
|
|
|
|
|
How to load DLL in all processes in Symbian OS
Regards
Manisha
|
|
|
|
|
Hi
Anyone help about how to establish GPRS Connection using VS2005, VC++, pocket pc platform. Please suggest me with any sample code or article
Thanks in Advance.
|
|
|
|
|
if use VC++ to establish GPRS Connection ,there is a lib to dial,the name is "RasDial".
But I don't know how to establish GPRS Connection using VS2005,Csharp(C#)
|
|
|
|
|
We can Connect the GPRS through C#. Using Pinvoke Native Interop services,
|
|
|
|
|
hello,
If there is any API for hooking and intercepting in Symbian OS .
Please tell about that
Regards
Manisha
|
|
|
|
|
I need a help to send the query to GPS via serial port. I am using VS2005, VC++, Pocket PC 2003 Platform.
Anyone please suggest me with example source code ASAP.
Thanks
|
|
|
|
|
What is the exact problem and where are you stuck ? What did you try so far ?
|
|
|
|
|
Hi,
Thank you fo your reply. I tried code from Serial Port Enumeration on Window Mobile in Code project for my applicaiton, it shows COM2 : GPS_HWCOM. But actually on this Pocket PC 2003 GPS Port is COM5, I checked that GPS setting.
I try to read the data from serial port COM2, it shows letters are small square box, then I use COM5 to read the buffer it show the GPS information.
can you please suggest me how to solve this problem and how to scan this port by 1 sec or 2 sec delay..
Thanks
|
|
|
|
|
hi use serial ports and set the readdatabuffersize = 1024 and then register the
serial port DataRecieved event where you will get the data of GPS
when the buffer gets full, and then parse it.
hopefully this helpsgm
|
|
|
|
|
Hi All,
I am working on windows Mobile 6.0 and I want to use SIP(session Initiation Protocol) in my application. Is there any third party support for SIP API's which I can use in WM 6.0.
Thanks in Advance
Atul
|
|
|
|
|
Hi all,
I'm finding great problems in an apparently very simple piece of code:
I obtained that from a string (or an integer value) rappresenting an ARGB color, to reproduce the correspondig color, but I am not able to obtain the inverse (obtain a string (or an integer value) from a color.
Instead of a value I obtain only the string "System.Drawing.Color".
This is the code:
Console.WriteLine(Color.FromArgb(Red, Green, Blue))
I also tryed to use Color.ToString, but it seems it is not supported in C.F. 2 SP2.
I also tryed many other possibilities without results.
I find very strange there are no possibility.
Please help me to obtain a number or a string.
Regards
Marco
modified on Monday, May 12, 2008 6:31 AM
|
|
|
|
|
hi,
i also done this type of work in .net framework . Try following code in .netCF
for change color value to String variable
Dim a As New ColorDialog<br />
If a.ShowDialog = Windows.Forms.DialogResult.OK Then<br />
Dim STR As String = RGB2HTMLColor(a.Color.R, a.Color.G, a.Color.B)<br />
endif
where code of RGB2HTMLColor function is following
Private Function RGB2HTMLColor(ByVal R As Byte, ByVal G As Byte, ByVal B As Byte) As String<br />
<br />
Dim HexR, HexB, HexG As Object<br />
Dim sTemp As String<br />
<br />
'R<br />
HexR = Hex(R)<br />
If Len(HexR) < 2 Then HexR = "0" & HexR<br />
<br />
'Get Green Hex<br />
HexG = Hex(G)<br />
If Len(HexG) < 2 Then HexG = "0" & HexG<br />
<br />
HexB = Hex(B)<br />
If Len(HexB) < 2 Then HexB = "0" & HexB<br />
<br />
RGB2HTMLColor = "#" & HexR & HexG & HexB<br />
End Function<br />
and for change a string to color (reverse)
dim a as color<br />
Dim ArgbComp As String() = Microsoft.VisualBasic.Split(HEXCOL2RGB("#000000"), ",") '#000000 is sample<br />
a.BackColor = Color.FromArgb(ArgbComp(0), ArgbComp(1), ArgbComp(2), ArgbComp(3))
where code of HEXCOL2RGB function is following
<br />
Private Function HEXCOL2RGB(ByVal HexColor As String) As String<br />
<br />
Dim Red As String<br />
Dim Green As String<br />
Dim Blue As String<br />
<br />
Red = Val("&H" & HexColor.Substring(1, 2))<br />
'The red value is now the long version of "00"<br />
<br />
Green = Val("&H" & HexColor.Substring(3, 2))<br />
'The red value is now the long version of "FF"<br />
<br />
Blue = Val("&H" & HexColor.Substring(5, 2))<br />
'The red value is now the long version of "1F"<br />
<br />
<br />
HEXCOL2RGB = "255," & CInt(Red) & "," & CInt(Green) & "," & CInt(Blue)<br />
<br />
Return HEXCOL2RGB<br />
<br />
End Function
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Thanks Rupesh,
I tryed your code and it works, but I can't use HEX values.
Now I am studying how to adapt it in my appl.
In my case, for example, value 65535 (256*256) it's corresponding to Yellow color.
When I choose the Yellow (for example)color from color picker (or ColorDialog), I want convert it in the corresponding value (or string) 65535. This is the problem.
I'm using another Color Picker (free), but I would like to use Windows Color Dialog.
But It seems it is not supported in .net C.F. (Windows Mobile 2003 SE).
Marco
modified on Monday, May 12, 2008 10:45 AM
|
|
|
|
|
hi every body
i have a list view control in windows mobile application which read from database and it has some problems :
1- the list view has 5 columns , i made the alignText property to all of the columns to center but i have one problem the first column does not set to center i try to set it from the property window and from code to be center but it always be left , and i don't know why ?
can you help me in that ??
and other problem is i want to make the header text bold , not all the list view , how could i do that , i didn't find any property to do that in windows mobile
by the way i use vb in my application
Thanks a lot
Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
The left column always has it's text left aligned - it's the same in winforms.
I believe you would need to make your own ListView (inheriting from the built in one) and override the OnPaint method to alter the header font properties. You could possibly fix your first problem using this method too.
Dave
|
|
|
|
|
Can Anybody help me out with whether API Hooking or Intercepting of APIs is possible in SYmbian OS. its very urgent
Regards
Tejasvi Sabale
|
|
|
|
|
Hi Repsected All,
i m working with vb or c# in .net cf 2.0, and i m trying to controling GPS, actiualy after goes off for power saving my gps also off, but does not avctivate after power on the device, have to myself gps on, i want to on programetically, if possible than pls guide me.
bay
regards Rajat.
B in Game
|
|
|
|
|