delegates
what is the advantage in using delegates over calling the method directly. I
guess we get run time binding to method calls, but what do I gain with this
flexibility. Tag: print from a pocket pc Tag: 9528
WebService and CF Performance - Again the issue
Hi, I've replied to a thread about this issue but it was rather old so i'm
posting a new one...
I'm having very poor performance acessing webservices!
I'm using both SQL CE Replication and WebServices to send data to my Pocket
PC from the cradle or GPRS.
Replication works fine, but webservices take several seconds to execute, up
to 20 or 30, which is unacceptable.Thing is I want to keep webservices...
I'd be very interested in earing from microsoft, or anyone else, about this
one.
bye,
André Tag: print from a pocket pc Tag: 9521
Transparent image
Hello
I'd like to create transparent image for my application.
If I point to bmp or ico file in project properties,
shortcut created to this exe file has non-transparent icon
in start menu on PDA and this does not look good.
thanks for any tip
Jacek Tag: print from a pocket pc Tag: 9514
Serial Communication
I am trying to implement serial communication on a CE
platform using .Net compact framework. Are there any
resources on this subject? Any help would be appreciated.
Thanks Tag: print from a pocket pc Tag: 9513
REe Creating a setup File for CF Application
Maybe not technicly this group, but this was where the original posting
was...
I'm using EzSetup, but each time I run it using the commandline:
ezsetup -l english -i MyApp_PPC.ini -o MyAppSetup.exe
in a command window, all I get back is the syntax text, not even an
error. All cabs and the ini file are in the same directory as ezsetup.
I was wondering if all options have to be supplied (in my case, no eula
or readme).
Contents of my ini file is as follows:
[CEAppManager]
Version = 1.0
Component = MyApp
[MyApp]
Description = "My new App"
;Because there are multiple .cab files specific to a CPU type,
;these files are relative to the installation directory.
CabFiles= MyApp_PPC.ARM.CAB; MyApp_PPC.ARMV4.CAB; MyApp_PPC.MIPS.CAB;
MyApp_PPC.SH3.CAB; MyApp_PPC.WCE420X86.CAB; MyApp_PPC.X86.CAB
This format was pilfered off of another posting, but without the listing
of multiple cabs. I also tried using commas to separate the file names,
but with no luck.
Any help would be greatly apprieciated.
Paul Tag: print from a pocket pc Tag: 9511
Numeric upDown Control decimal increment ??
If i set de Increment value to 0.5 the up/down does not work ?
Min, max, Value and increment seem all decimals , but the increment and
value properties seems to work only if you put a integer value in it
Is this a bug or am i missing something ?
Johan Tag: print from a pocket pc Tag: 9509
using loadcursorfromfile in vb.net
I have written:
"Declare Function LoadCursorFromFile Lib "\Program
Files\Axilog_SavPad\user32.dll" Alias "LoadCursorFromFile" (ByVal
lpFileName As String) As Long
l = LoadCursorFromFile("\Program Files\Axilog_SavPad\Cursor1.cur")"
But it gives no result.
How can I do to solve this problem? Tag: print from a pocket pc Tag: 9507
IrDA DiscoverDevices
Using VS NET 2003 C#
O2 XDA (Pocket PC 2002)
Nokia 6150 (6100)
The InfaRed Function of Pocket PC can find the Nokia 6150 Mobile Telefon.
When I run a program with :
IrDAClient irdaClient = new IrDAClient();
IrDADeviceInfo[] irdaDevices;
irdaDevices = irdaClient.DiscoverDevices(10);
irdaDevices.Length is allways 0. (No Exceptions)
If the PDA can find the Nokia then why can't IrDAClient find it?
Has any body tried this on a O2 XDA with different results?
For that matter has anybody had the same results, but has found it to be
Machine specific ?
I have tried a c++ Sample (IrdaMobil) that looks for a Nokia 5300 with a AT
Command. Connection to (IrDA Port) COM2 and COM3 works but the AT Commands
recieves a Timeout.
So the main questions are :
- is it the O2 XDA Maschine ?
- or am I doing something wrong ?
Mark Johnson, mj10777@mj10777.de Tag: print from a pocket pc Tag: 9505
SQL CE Install Problem
Hi.~
I am trying to install SQL CE 2.0 edition on Windows
2000 Server where SQL Server 2000(with sp3) and IIS is
installed previously in.
but, I am puzzled.
When I am trying to install SQLCE 2.0, the windows2000
shows error message "SQL Server CE tool will be only
compatible with SQL Server 2000 and SP1 higher..."
but SQL Server 2000 in my pc is updated to SP3.
please help me.. Tag: print from a pocket pc Tag: 9504
How to "free / dispose" objects?
Hi,
i'm really new to .NET and i know, that the garbage-collection should free
objects itself... but is there any way to force this?
for example: i have a loop in which i need to create a new object every
time, fill in some data, store it to a database and then... free it...
[pseudo-code]
while (readline(myLine) != eof)
{
TMyObj tempObject = new TMyObj;
tempObject.abc = "abc";
//...more data to fill
StoreObject(tempObject)
//in pascal i would do:
// tempObject.Free;
}
[/pseudo-code]
The loop will run thru about 100000 times - so 100000 objects are created
but only used for a very short time!
I need a new object to have a new reference - so a Clear-Function to clear
my data is not enough.
Question: WHEN will the garbage-collection free the instances of the loops
before?
Boris Tag: print from a pocket pc Tag: 9499
direct access from Handheld(CASIO IT 500) to remote sqlserver2000
hello everyone;
I need help^^;
Is it possible direct data access through wireless
network(bluetooth or others) from PDA(CASIO IT 5000) to
remote SQL Server 2000 Database?
If it is possible, how can I do that?
Until now, I write data access logic, which works in PC
environment.(using System.Data.SqlClient). and install
this program in PDA. but it didn't works. The error
message is some kind of typeload exception.
please help me.^^; have a nice day. Tag: print from a pocket pc Tag: 9494
Keydown Event losing focus
Hi,
I'm using the Keydown event on a form with a panel and scroll bar on
it, to trap the user pressing the hardware scroll buttons. It works
fine when the form is first loaded, however if the use selects a
control, then the scroll bar doesn't work on the form any more. Is
there a way of ensuring that the form always has focus so if the
scroll bars are pressed, the keydown event is fired as when the form
first loads?
Regards,
David. Tag: print from a pocket pc Tag: 9493
SQLCE Optimization Help
Background:
I am writing a word game in which you have a 4*4 grid of random letter,
and you find words within the grid using adjacent letters. I'm using
this project to help learn the .net cf as well as sqlce, but at the same
time, I'd like the game to start quickly.
Problem:
After I've created the game grid, I have to figure out all the available
words in the grid. I have two functions (see below), one to check if
the current string is the start of a word, and another function to check
if the current string is a word. On my test grid, IsWord is called 272,
StartWord is called 1435. The game takes 1 minute and 45 seconds to
find all of the possible words. I was hoping to tap into someone's
expertise in these forums, and see if I could tweak these functions to
be leaner and meaner. The database the wordlist is on is 26 tables (one
for each letter), with one column Primary Key column which is the word.
Other info:
I'm testing this application on an iPaq 3850 Pocket PC 2002 device.
.net cf 1.1 sp1. The database is over 15,000 words.
***IsWord Function***
Private Function IsWord(ByVal strWordToCheck As String) As Boolean
Try
Dim strSql As String = "SELECT word FROM word_" & _
Mid(strWordToCheck, 1, 1) & " WHERE word = '" & _
strWordToCheck & "'"
Dim strStuff As String
cmd.CommandText = strSql 'cmd is a module level object
strStuff = cmd.ExecuteScalar
If strStuff Is Nothing Then
Return False
Else
Return True
End If
Catch ex As SqlCeException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Function
***StartWord***
Private Function StartWord(ByVal strWordToCheck As String) As Boolean
If (strWordToCheck.Length > 1) Then
Try
Dim strStuff As String
Dim strSql As String = "SELECT word FROM word_" & _
Mid(strWordToCheck, 1, 1) & " WHERE word LIKE '" & _
strWordToCheck & "%'"
intStartWord = intStartWord + 1
cmd.CommandText = strSql
cmd.CommandType = CommandType.Text
strStuff = cmd.ExecuteScalar
If strStuff Is Nothing Then
Return False
Else
Return True
End If
Catch ex As SqlCeException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Else
Return True
End If
End Function
I know it's an involving question, but if anyone has any tips to share,
I would be all ears. Tag: print from a pocket pc Tag: 9483
Starting only one instance of an application
Dear All,
Are there any method to make sure my application should only be started
once?
As .NET CF application take a considerable time to load, sometimes users
is confused and press more than once of the application icon for invoking.
It will eventually further slower the startup time and multiple instances
are grabbing resources for instantiation
Regards,
Alex Tag: print from a pocket pc Tag: 9482
OpenSource owner drawn datagrid control, the web site
for our upcoming .NET database application on PPC we are
currently writing at 5D we wrote a fully owner drawn DataGrid control
which you could download here:
http://www.ihook.cc, clic on OpenSource .... Tag: print from a pocket pc Tag: 9481
Where is the CAB's .inf file?
I have a CF visual studio project and I want to generate a setup CAB file
for it.
When I use the Debug -> Build CAB File I do get the CAB file but I can't
seem to find the .inf file anywhere. As it is noted at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_evtuv/ht
ml/etoriinffilesfordevices.asp, this IDE menu command should produce a .inf
file which I would be able to customize and feed it to CabWiz.exe.
Any suggestions?
Thanks in advance. Tag: print from a pocket pc Tag: 9480
debugging on Pocket PC 2003
I have installed VS.net 2003 and try to debug a simple C#
application. But every time I reach a breakpoint in the
code, the application on the PDA (an HP 5550 with Windows
Mobile 2003 and integrated .NET CF) crashes.
Visual Studio only shows a message, that the remote
connection to the PDA was interrupted.
Has anyone encountered this problem and knows how to solve
it? Tag: print from a pocket pc Tag: 9474
Dynamically instantiated custom control events...
I have a custom control with it's own click event that does a few things
internally. In Form1, I loop thru a database query result set, and build x
number of these controls using:
CustControl ctl =
(CustControl)Activator.CreateInstance(typeof(CustControl));
// set properties...
ctl.Property = value;
I stuff each ctl into an ArrayList. A bit later, I loop thru that ArrayList
and place these controls on Form1.
I would like to be able to have the custom control's click event communicate
to Form1 using delegates/events so that a method on Form1 can receive some
data from that control and process it.
I've done something like this before using a custom control, but it was not
dynamically created. In this case I built a custom EventArgs class, declared
a delegate with it, and on Form1, simply handled the event like any other
designer control like:
this.customControl.BtnPrevClick += new
CustomControl.ButtonEventHandler(customControl_BtnPrevClick);
Since I can't do this with a dynamically created control, I'm posting for
help here.
Any help will be greatly appreciated,
Tim Tag: print from a pocket pc Tag: 9468
ANN: OpenNETCF.IO.Serial v1.0 Released (with sample and article)
OpenNetCF.org has released v1.0 of the OpenNETCF.IO.Serial Library
TheIO.Library Library contains classes used for serial communication in
Windows CE.
Get the source and binaries here:
http://www.opennetcf.org/serial.asp
A sample is available here:
http://www.opennetcf.org/samples.asp#serial
A full article on the library is available here:
http://www.opennetcf.org/articles/serial.asp
All OpenNETCF.org libraries are covered by the OpenNETCF Shared Source
License. For more
information visit:
http://www.opennetcf.org/License.asp
--
Chris Tacke, eMVP
Co-Founder
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net Tag: print from a pocket pc Tag: 9467
Controlbox property and Form event Activated and Deactivate
I found that to set the form property "ControlBox" to false will
trigger "Form.Activated" event and "Form.Deactivate" event to fire.
Is it a bug in VB.NET or designed this way?
Thanks,
Ryan Tag: print from a pocket pc Tag: 9466
Why doesn't my control show up in "Customize Toolbox" list?
I've got everything else working, for PocketTerra, but my controls do
not show up in the Customize Toolbox list. The assemblies are strong
named and in the GAC, as well as in the "Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer directory. I can add them using the Browse button, but
that isn't what I want!
Any ideas?
Thanks!
Roger Tag: print from a pocket pc Tag: 9465
Different PocketPC platforms
Hi,
I am using Visual Studio 2003 .NET and I am trying to
install some native code on different PPC platforms, like
2002 and 2003. I heard there was a "platform" switch along
with the "cpu" switch for cabwiz.exe that is supposed to
help with this. However, my cabwiz.exe doesn't mention
this switch in its help, just the cpu one.
Does anyone have any clue if there is a service pack
that would install a new cabwiz.exe? Or does anyone know
how to create an .INF file to deal with both platforms?
Thanks!
-- Frank Tag: print from a pocket pc Tag: 9464
any way to extend all controls?
i feel like there should be a way to do this and i'm just blind for not
seeing it
i want to add a 'userdata' property to all controls, it would act just like
the text property but it would hold an object instead of being limited to
text
i could write a wrapper for each control individually but that seems like a
waste (not to mention probably not being automatically supported by the form
designer). It would be better to somehow extend/modify the control class
which all controls inherit from Tag: print from a pocket pc Tag: 9463
printing problem
Hi all,
My PPC application is wireless conneted with a network server, and stores
the information on a SQLServer database. After the data has been recordered
how can I launch a CrystalReport report from my PPC to a network printer?
Thanks in advance,
Alessandro Tag: print from a pocket pc Tag: 9455
ANN: Compact Framework chat with the MVPs on Thursday
Just a note that there will be an online chat occurring on Thursday, October
9th hosted by some of your favorite online characters, the MVPs!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: .NET Compact Framework and Smart Device Programming
Date: October 9th
10:00-11:00am (Pacific)
1:00-2:00PM (Eastern)
Description: You know them from the newsgroups! You love them for their
immense knowledge! Please join these amazing Microsoft MVPs in this live
chat regarding the .NET Compact Framework and the Smart Device Programming
features of VS.NET. The .NET Compact Framework is a subset of the .NET
Framework designed to allow .NET developer to target smart devices. The
Smart Device Programming features of VS.NET allow embedded developers to
target devices running the .NETCF
To join this chat go to http://msdn.microsoft.com/chats
--
Thanks!
Michael Fosmire
Community PM/MVP Lead, Windows Embedded
This posting is provided AS IS with no warranties, and confers no rights. Tag: print from a pocket pc Tag: 9454