Deploy - nonCAB file via MSI
I have my MSI file created and working properly. It
installs My App, SQL Client, and SQLCE Server programs on
the PocketPC.
The issues I'm running into is - how do I distribute the
database that I have created (.sdf file) on to the users
Pocket PC. I use this in My App. Calling a pre-populated
database.
I would like to send it to the My Documents Directory of
the PocketPC - but the path it gets to the PocketPC is not
really important. What is more important - is that I just
get it on to the PocketPC - with very little user
intervention (ie- if it could be part of the MSI setup
wizard - that is what I'm shooting for).
thanks for any advice. Tag: retrieving deviceid with C# Tag: 30940
is it possible to receive event raised from C++ dll in VB .NET?
I am forced to create a dll driver in eVC++, but the application in VB .NET.
The application is expected to receive message from the dll, instead of
doing a polling, I am wondering if it is possible to create an event in
the dll and set the event whenever there is message available to the
VB application. Can anyone tell me if this is feasible? And how the event
being linked between the DLL and the VB application?
Thanks.
Carl Tag: retrieving deviceid with C# Tag: 30936
OpenNETCF Controls in the VS toolbox
Hi all
there was a thread earlier about adding the OpenNETCFcontrols to the VS
toolbox. I actually tried adding the dlls to the toolbox but i always get
this error:
---------------------------
Microsoft Development Environment
---------------------------
Insufficient state to deserialize the object. More information is needed.
---------------------------
OK
---------------------------
what might the problem be?
I am using Windows Server 2003 + VS.Net 2003
thanks
mustafa Tag: retrieving deviceid with C# Tag: 30935
get same hash string from .NET and java?
Hello All,
Is it possible to get the same hashed string on .NET and Java using the
same hashing algorithm (e.g. MD5, SHA)??
On .NET side, the token is generated using the following code:
Private Function HashEncrypt(ByVal strInput as String) As String
Dim bytHash as Byte()
Dim uEncode As New System.Text.UnicodeEncoding
' - - - STORE THE SOURCE STRING INTO A BYTE ARRAY - - -
Dim bytSource() As Byte = uEncode.GetBytes(strInput)
Dim SHA1 As New System.Security.Cryptography.SHA1CryptoServiceProvider
' - - - CREATE THE HASH - - -
bytHash = SHA1.ComputeHash(bytSource)
' - - - RETURN AS A BASE64 ENCODED STRING - - -
Return Convert.ToBase64String(bytHash)
End Function
On the java side, the token is generated as follow:
MessageDigest _digester = null;
_digester = MessageDigest.getInstance("SHA1");
_digester.reset();
byte[] utf8 = _msg.getBytes("UTF-8");
_digester.update(utf8);
byte[] _tokenBytes = _digester.digest();
String s = new sun.misc.BASE64Encoder().encode(_tokenBytes);
Thanks for your help!
Grace
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: retrieving deviceid with C# Tag: 30933
form on task bar in CE
I have an app for pocketpc and am trying to get it to run on Windows
CE.NET... Everything works ok except for the times where I have 2 forms
loaded.. 1 is shown with .ShowDialog()... the problem is that the user can
tap the first form in the task bar on CE where they could not see that it
was loaded on PocketPC.
How can i hide this from the user... Idealy there would be a form property
to not show in the task bar but that does not seem to be available in the
CompactFramework.
Thanks in advance.
--
Tommy Tag: retrieving deviceid with C# Tag: 30925
Progress Bar Related.
Hi,
In the constructor of my main form class, (which is called by
Application.Run(MainClass) in main) I have InitializeComponent and to add to
it some heavy work to do. Also I want to show the progress bar of that heavy
work on to my UI. But I cannot show it since my UI is still not done. Also I
tried writing the "Heavy work" into some thread, but its also of no use
since the heavy work is blocking the UI, (i really donno why and which is
actually against the use of threads)
Can you suggest something as to how should i handle the thing.
Amit. Tag: retrieving deviceid with C# Tag: 30923
OpenNetCF Registry problem.
Hi,
I am using the OpenNetCF Registry.cs. I have to store two types of values
into the registry. A string type and other Int type. I am successfully able
to write string values into the registry. But when I try to write an
interger into the registry it gives me some InvalidCast Exception.
I will tell you the steps, sorry i cant be exact because i am mailing from
my house and not from my work place.
1) CreateRegistryKey: This returns object of RegistryKey
2) RegistryKey.SetValue("KeyName" , intValue);
3) RegistryKey.Close();
I donno if I am missing something. But I am not able to overcome this error.
Any suggestions are welcomed.
thanks a lot in advance.
Amit. Tag: retrieving deviceid with C# Tag: 30921
.NET compact framework sdk
Hi,
Is there a sdk for .NET compact framework. Plz tell me where I can download it.
Thanks a lot,
Chamal. Tag: retrieving deviceid with C# Tag: 30920
CAB dependencies (maybe OpenNETCF specific)
I just upgraded to v1.1 of the OpenNETCF framework and now the CAB files
for my project seem to have a dependency for the wrong platform in them.
What happens is when I run the cab file to install my application, I get a
warning telling me that OpenNETCF.SDF.ppc3.ARMV4.cab is required. The
trouble is, I'm running on Pocket PC 2003 - so I think it should be
requiring OpenNETCF.SDF.wce4.ARMV4.cab.
Can anyone shed any light on this, or possibly explain how CAB files get
their dependencies built into them - I mean how does it even know that I
need OpenNETCF at all?
Thanks,
Richard. Tag: retrieving deviceid with C# Tag: 30910
Background image on form
I have this error:
An unhandled exception of type 'System.NullReferenceException' occurred in
System.Drawing.dll
Why???
Thanks
Damiano Tag: retrieving deviceid with C# Tag: 30906
order of CAB auto-installation
is there a way to decide the order of CAB auto-installation?
i have 3 CABs for my application: the app's cab, the SQLCE cab and CF cab...
but... pocket pc decide to install app's CAB first, and it fails!
any suggestions?
tx
MAtteo GAbella Tag: retrieving deviceid with C# Tag: 30905
Handling a change in Height
Hi,
I am dynamically adding a series of custom labels (inherieted from the
label) controls that respond to the click event. When this event fires the
height of the label is doubled to allow more data to be displayed. However
when I do this I was the rest of the controls to move down. How should I go
about this?
Mark Tag: retrieving deviceid with C# Tag: 30899
Shared folders with the network?
Hello
I would know if is possible to share folders on a windows ce based
device and access them through the network (so not with USB) from a
desktop PC. I think it should be possible also with ActiveSync but it
displays the message "network connections are disabled". Practically I
would get/put files from/to the device when its is connected to the
network and I would avoid the use of a FTP server on the device. Can
anyone help me?
Thanks in advance
Gianco Tag: retrieving deviceid with C# Tag: 30893
surviving a cold reboot...
[Environment]
I'm developing an application for a Symbol MC9000-k, running Windows Mobile 2003, using c# and VS.Net 2003. I've also used OpenNetCF for some development, and have a PC app that uses ActiveSync to down/upload data to/from the scanner.
[Question]
It's quite simple, the client will have no GPO rights (or clue) on how to reinstall my application onto one of these scanners. If the battery runs dry (and so does the backup), or the user has to do a cold-reboot, the applicatin folder, and all the libraries that were deployed disappear. How can I get my .Net CF app back onto the scanner next time it is docked?
I'm assuming that if I install the app into non-volatile memory, it still won't work as all the libraries it uses won't be registered etc.
Is there a way to (for example) take a snapshot of the scanner build as I like it, and every download that is performed from the PC checks the build integrity and copies across a new partition (or updates the current partition) so that the user can easily carry on using the application? Tag: retrieving deviceid with C# Tag: 30892
Accessing SIM card from C#
Hi All,
the following article talks about how to get info from the SIM card. I
downloaded the sample, used the Phone.cs in an application, and everytime i
try to access the card i get "Can't read the service provider"
here's the code i am using:
using Microsoft.Wireless;
//application inits etc
private void button1_Click(object sender, System.EventArgs e)
{
string szOwnerNumber = "";
try
{
szOwnerNumber =
Microsoft.Wireless.Sim.GetServiceProvider();//Microsoft.Wireless.Sim.GetPhon
eNumber().ToString();
textBox1.Text = szOwnerNumber;
}
catch (Exception exp)
{
textBox1.Text = exp.Message;
}
}
is there something that i am missing or something?
I am using T-Mobile XDA-I upgraded to Windows Mobile 2003 (T-Mobile build)
thanks
mustafa Tag: retrieving deviceid with C# Tag: 30891
What are GAC dlls?
This might be a basic question however, I am trying to figure out what GAC_
dlls are. I am having problems with an application running on one device
and not on another and it appears one is missing GAC_ files. Tag: retrieving deviceid with C# Tag: 30886
connection problem
i am trying to connect a database on sql server ce:
connString = "Provider=Microsoft.SQLServer.OLEDB.CE.1.0; Data Source=\\My
Documents\\test.sdf";
conn = new SqlCeConnection(connString);
i got following error:
"Unknown connection option in connection string: provider"
what is the problem here? Tag: retrieving deviceid with C# Tag: 30882
couple Input Panel Questions
Hi,
I'm implementing an InputPanel in one of my Smart Device projects.
I want to be ablt for an user to select a letter with the InputPanel.
I placed one in my project (with a mainmenu) and its always visible, so no
problem there. I placed a button in my form, my intention was to press the
buton and then the InputPanel would expand automatically. I tried using
InputPanel1.Enabled = true;
but that aint doing nothing really... Any idea how to implement this ?
Second question :
About the letter that is selectd. What method or exception can I use to
capture the letter that the user has selected on the SIP ?
Thanx... Tag: retrieving deviceid with C# Tag: 30879
DataGrid
Is it possible to popultate a dataGrid from two databases(.sdf)?
For example, I populate the grid when it loads with some default information from DB1. I then want to update a number of the zero index cells to values based on the results from a table in DB2?
Can it be done? How?
Marc Tag: retrieving deviceid with C# Tag: 30877
Debug Class ????
Hello,
I'd like to be able to get some info about the performance of an application
I wrote. I have an application which sends an sql query to a database,
places the results in a datatable, sends this datatable to another form
which then writes a part of the datatable in a treeview. Now I'd like to
know how much time evry operation takes and place this info or on screen or
in a log file...
I've been looking around and saw there is a Debug class, only I cant seem to
fully comprehend if this class is suitable form what I want to do, and if so
which members I should be using ?
Thanx... Tag: retrieving deviceid with C# Tag: 30876
how to convert a UTF8 string to Unicode with C#
Dear all,
I use streamreader to read a file line by line. However, both UTF8 and
Unicode exists in each line. Is there a way to convert a substring's encoding of a string there is came from streamreader? Here is my code:
private String searchChapter(string book, string chap, string filePath)
{
String Chapter = "";
try
{
// Create an instance of StreamReader to read from a file.
// The using statement also closes the StreamReader.
using (StreamReader sr = new StreamReader(filePath))
{
// Read and display lines from the file until the end of
// the file is reached.
int colonIdx;
String line;
bool isFound = false;
//testing
Chapter = sr.CurrentEncoding.ToString() + "\r\n\r\n";
while ((line = sr.ReadLine()) != null)
{
//Console.WriteLine(line);
colonIdx = line.IndexOf(":");
if (line.Substring(0,3) == book && line.Substring(4,colonIdx - 4) == chap)
{
isFound = true;
}
Chapter = Chapter + line + "\r\n\r\n";
}
else if (isFound == true) break;
}
}
return Chapter;
}
catch (Exception e)
{
// Let the user know what went wrong.
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);
return Chapter;
} Tag: retrieving deviceid with C# Tag: 30872
How do i link in a specific built in Task into my App?
I am trying to associate one of the built in tasks on Pocket PC with numerous individuals within my application, but I cannot seem to find a way to associate a specific task with an individual. i.e. within my application if I only want to veiw tasks associated with individual 'A' how can I extract just the tasks associated with them from the main task list?
Any suggestions would be very welcome Tag: retrieving deviceid with C# Tag: 30868
MSI - CEMGR Opens but no install
I read the popular MSDN article about creating an MSI file
for installation/distribution via ActiveSync. I have been
successful in creating an MSI file. When I install the
file - the CABs are copied to my PC - and CEAPPMGR.EXE
launches - displaying the programs loaded on my Pocket
PC. However - I'm never prompted to add the new program.
It does not appear on the list of programs to install.
I think it has something to do with the setup.ini file -
although I feel that I've looked over that in detail.
Any suggestions why CDAPPMGR lauches but does not install
my file/application/cab?
thanks. Tag: retrieving deviceid with C# Tag: 30866
Parse event for databound controls in CF
Hi all,
I have a textbox bound to a nullable field in a DataTable,
and capture the parse event in a fairly standard way to allow for null
values:
private void newBinding_Parse(object sender, ConvertEventArgs e)
{
if (e.Value.ToString() == string.Empty)
{
e.Value = DBNull.Value;
}
}
This appears to work fine for standard windows forms but in the compact
framework, the original value of the field keeps appearing everytime the
user attempts to set the textbox to an empty string. I know the event
handler is definitely being called (from step through debugging) and the
event argument value is being set to DBNull but somewhere between that and
setting the actual value on the bound DataTable, it reverts back to the
original value.
Anyone have any ideas as to what I am missing?
Thanks in advance,
Minh Tag: retrieving deviceid with C# Tag: 30863
Drag & Drop in CF
Does the compact framework support Drag & Drop? I can't imagine this environment not supporting it, but I can't find the drag & drop properties, events, and methods for the CF controls.
Thanks
Mike Tag: retrieving deviceid with C# Tag: 30859
Beginner Connecting Two PPc's question - Please Help Me
I have multiple ppc's connected via wifi to a lan.I also have regular PC's on the same network, but these are connected with cables. This network is completely cut off from outside sources. The regular PC's have static IP addresses while the PPC's are dynamic. I want to write a small program that will allow the ppc's to see a list of ppc's currently connected, and then to click on one of them and to browse and transfer files off each other from a set "shared" folder. But I want it to work like this: When a ppc connects, it is to send its new IP address to "server pc" that keeps track of the current IP addresses the PPC's have. It will then send the current IP addresses of the other connected PPC's to the unit, which will then when it attempts to click on a particular unit on his screen will set up a Direct Connection thr the LAN, bypassing the "server pc". All I want the "server pc" to be used for is just to keep track and send out the current IPs. You could say that I want to sort of model this after Iâ??M programs.
Can you please tell me how would i go about this, I am pretty much a newbie regarding programing, so if you could please explain to me all of the steps required clearly. Also which language would be the best to use for this.
Thank you
ChinWan Tag: retrieving deviceid with C# Tag: 30852
ANN: Chat begins in 5 minutes
Just a reminder that a chat with the MS dev teams starts in 5 minutes. The
topic is ".NET Compact Framework and Smart Device Programming"
http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000070
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com Tag: retrieving deviceid with C# Tag: 30850
I don't want the a popup window occupy the entire screen.
Hi,
I want to popup a window to let use input some information, and I want this
popup windows has the behavior that is same as the normal Windows dialogbox,
don't want to popup window to occupy the entire screen.
wifiOrder.loginFrm frmLogin = new loginFrm();
frmLogin.Show(); // or ShowDialog() is the same.
how to do it?
Thank you very much! Tag: retrieving deviceid with C# Tag: 30840
Resumable HTTP downloads?
I'm trying to write an auto-update application. I followed Alex's example
of doing an HTTP download to obtain the new files that need to be
installed.
This works fine, but I would really like to make the downloads
resumable. Are there any 3rd party components out there that offer either
resumable HTTP downloads?
Thanks,
Richard. Tag: retrieving deviceid with C# Tag: 30830
Missing WinMsg of OpenNETCF Application Ex
hi all,
I try to use OpenNETCF.ApplicationEx to trap message but they inform
to miss WinMsg, although I download all project OpenNETCF.Drawing,
OpenNETCF, OpenNETCF.Windows.Forms, etc... when compiling it still
informs WinMsg not defined.
Is there any idea?
K Tag: retrieving deviceid with C# Tag: 30816
asp.net and body-tag
hello,
i want to create the background-color of my aspx-site dynamically
could i use a existing class or control to realize that, or i have to
use "<% =variable %>"
thanks for answering
regards
Rasta
----------------------------------------
HangulHanjaFastConversion-Eigenschaft
True if Microsoft Word automatically converts a word with
only one suggestion during conversion between hangul
and hanja. Read/write Boolean.
----------------------------------------
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: retrieving deviceid with C# Tag: 30810
Listview item index selected ?
Hi,
how can I know the listviewitem index is selected in a listview?
Thanks in advance Tag: retrieving deviceid with C# Tag: 30803
Dataset question
Hi,
I've got the following problem :
I made an api which is referenced by program1. In this API i have a method
(called Retrieve) in which I create a Dataset and fill a DataTable with data
out of a DataBase. This method returns the DataSet. While calling this
DataSet I allso supply two integer values (for search purposes in the
sql-query in the method).
My problem now is that when I call this method in program1 and try to assign
the returned value (thus de Dataset) I get the following error :
An object reference is required for the nonstatic field, method, or property
'Dictionarytest1.peccAttributeValues.Retrieve(int, int)'
I use this code for assigning :
DataSet myDataSet =
Dictionarytest1.peccAttributeValues.Retrieve(AttributeId, Level);
Like i've allways did when I assign like an integer or whatever...
Any idea what the problem is about ? Or if its better to implement something
else ?
If it's helpful I can always post some code... Tag: retrieving deviceid with C# Tag: 30802
ContextMenu and OnMouseDown in custom control
Hi,
I am stuck with the following problem:
I created my very own ListView type of control for the Pocket PC. I did
override OnMouseDown in order to select the tapped item. Basically this
works.
However, as soon as a ContextMenu is attached to my control the OnMouseDown
is no longer fired when tapped, but only when the stylus is removed (i.e.
when I would expect OnMouseUp to be fired). Even worse, it is not fired at
all when the stylus is held down and the ContextMenu actually pops up.
This behaviour leads to the problem, that I do not have a chance to actually
select the item that is underneath the popped up ContextMenu.
I also tried to select the item in the Popup event of the ContextMenu, but
Control.MousePosition does not return the position actually tapped (it
returns the last position that was tapped). Thus, I have no chance to really
determine where the user tapped on the display.
Any ideas?
Andreas Tag: retrieving deviceid with C# Tag: 30800
Fix Row height in a Datagrid
Hi everybody,
I've a little question : is it possible to fix the row height in a datagrid
?
When my app is running, if I "click" between 2 rows and move the pointer, it
modifies the height of the row and I would prefer to keep this fixed.
Is it possible and how ? I can't find any property for that.
Thanks,
Thomas. Tag: retrieving deviceid with C# Tag: 30794
XML Encrypting/ Compression
Hello,
We are developing a CF application that uses a web service to return xml. Does anyone know of a tool that can compress, encrypt and encode the xml so that it can be sent via a web service, and then decompressed, decrypted and decoded at the client app?
There seem to be plenty of components that either compress, encrypt, or encode but not one that does all three.
Thanks in advance,
Simon Tag: retrieving deviceid with C# Tag: 30793
MissingMethodException w/ SqlConnection
Hey,
I'm getting a MissingMethodException when I call Open() on a SqlConnection -- but only on my WindowsCE device. The program runs fine in the pocketPC emulator and the same code also works fine on the PC.
So -- how do I ensure that the System.Data.SqlClient library is being copied on the device correctly? I set the reference to copy locally and I can see it there...
ideas?
- Zack
P.S. One thing worries me and is a half-related question:
I can only deploy my project to the Windows CE device if I tell VisualStudio to deploy to a PocketPC device. If I specify the WindowsCE device the deploy halts when trying to send the first file. Why does VS only want to deploy my program as a PPC? And why does the WindowsCE device accept the PPC version? thoughts? Tag: retrieving deviceid with C# Tag: 30790
thread
is it possible to create a background thread and from this launch the form
every N hours????
If it is, how I can do this???
thanks
Damiano Tag: retrieving deviceid with C# Tag: 30789
Windows.Forms Issue (compact framework)
I have a form (form1) that I call another form (form2) from, using
.ShowDialog (modul). I disable form1 (.Enabled = False), once the user is
finished with form2 (checked a few check boxes, and clicked a button) the
Disposing event of Form2 is fired (on form1) and I re-enable(.Enabled =
True) Form1.
This all work fine. However! Form1 is minimized in the Taskbar, and will
only show if I click on it.
Anybody anay ideas?
Tried These.....
.ShowDialog()
.Show()
.Focus
.BringToFront
.SetWindowState
--
Regards
Brett Miller Tag: retrieving deviceid with C# Tag: 30783
Display both English and Chinese in textbox
regarding to the question I posted at 6/7, here is the code I wrote. I fthe encoding is correct, then it should give me squares for the chinese characters that the device can't encode. But it gives me something like "B2#$ke" instead. I think the problem exists in StreamReader. Any suggestions?
private String searchChapter(string book, string chap, string filePath)
{
String Chapter = "";
try
{
// Create an instance of StreamReader to read from a file.
// The using statement also closes the StreamReader.
using (StreamReader sr = new StreamReader(filePath))
{
// Read and display lines from the file until the end of
// the file is reached.
int colonIdx;
String line;
bool isFound = false;
while ((line = sr.ReadLine()) != null)
{
colonIdx = line.IndexOf(":");
if (line.Substring(0,3) == book && line.Substring(4,colonIdx - 4) == chap)
{
isFound = true;
Chapter = Chapter + line + "\r\n\r\n";
}
else if (isFound == true) break;
}
}
return Chapter;
}
catch (Exception e)
{
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);
return Chapter;
}
private void buttonGo_Click(object sender, System.EventArgs e)
{
if (cboBooks.SelectedIndex > -1 && cboChapters.SelectedIndex > -1)
textScriptures.Text = searchChapter(books[cboBooks.SelectedIndex], cboChapters.SelectedItem.ToString(), (curDir + "/" + fileName));
} Tag: retrieving deviceid with C# Tag: 30782
Cannot deploy to Pocket PC emulator with VS 2005 Beta 1
Hi, all
I've just installed VS 2005 Beta 1 on a Windows XP Pro machine. I chose to
install only C# and VB, as well as Smart Device options.
When I create a default Pocket PC App for C# or VB, I can deploy and debug
it on 'My Computer', but it does not deploy to any of the emulator choices.
This doesn't appear to be mentioned in the readme. Any idea what might be
going wrong?
Thanks
- rick Tag: retrieving deviceid with C# Tag: 30774
Button - No border
I would like to create my own custom button control. I
want the button to be able to change color - and/or - make
the border transparent.
I know the OpenNETCF ButtonEx has these properties, but I
was hoping to create my own control. Could someone steer
me in the right direction with some advice. Perhaps you
could refer me to some web links or MSDN articles that
refer to custom controls.
I'm hoping this is somthing relatively easy - but maybe
I'm wrong.
thank you. Tag: retrieving deviceid with C# Tag: 30772
.NET Compact Framework 2.0 Preview
http://www.ftponline.com/reports/vslivesf/2004/yuan1/
"A key crucial feature for all mobile development platforms is the
need for tight device integration. The software platform needs to
leverage all functionalities provided by the underlying device and
network. In the .NET Compact Framework 1.0, access to telephony and a
native Personal Information Management (PIM) database is available
only through native method call wrappers using Platform Invoke
(P/Invoke). Version 2.0 will support standard managed APIs for all
Pocket Outlook clients, including e-mail/SMS, contacts, calendar, and
to-do lists. You can also make phone calls and access call logs
directly from the managed code. Plus, Microsoft has planned a new
location API for both GPS and operator-based location retrieval."
Is this true, anyone test it? Does this mean we have native support
for POOM? Have anyone test it? Tag: retrieving deviceid with C# Tag: 30769
NotSupportException caused by DrawString
I create a custom control which inherits Picturebox. the e.Graphics.DrawString in the OnPaint method causes a NotSupportedException.
Could anyone help? Tag: retrieving deviceid with C# Tag: 30768
Hallo,
how can i retrieve the deviceid of a handheld at the CF with C# ?
"maximilian" <maxi@microsoft.com> wrote in message
news:OXfQw9nZEHA.3988@tk2msftngp13.phx.gbl...
> Hallo,
>
> how can i retrieve the deviceid of a handheld at the CF with C# ?
>
>
>