Help required for Symbol 9090-S Bar Code Reader
I've developed an application for Symbol Bar code reader that runs Windows CE, whole the application is fine but i'm unable to use its Scanning feature.
via vb code i'm enabling true its barcode property like
Barcode1.EnableScanner = True
and i'm not getting any error also, but it does not activate its scanner.
I've checked a sample application that s shipped with this device and installed over it, scanning is working fine by it.
NEED URGENT HELP DEARS....
thank
From http://www.developmentnow.com/g/18_2006_11_8_0_0/dotnet-framework-compactframework.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com Tag: How to reset handheld programmatically? Tag: 88204
GET IMEI from device
Hi,
How i get IMEI from a device running on windows mobile 5.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: How to reset handheld programmatically? Tag: 88202
Crash in Remote Performance Monitor when trying to use GC Heap function (.NET CF 3.5)
I have a generic WinCE 5.0 system (desktop, shell, etc). When I try to use
the Remote Performance Monitor tool that comes with the
NETCFv35PowerToys.msi, it crashes when I hit the 'GC Heap' button.
To reproduce, I can generate an "out of the box" wizard generated C# app
targeting .NET CF 3.5 using VS2008. I change the generated Program.cs file
to be:
using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO.Ports;
using System.Threading;
namespace TestRPMTools // your namespace here...
{
class Program
{
static SerialPort m_SerialPort;
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
m_SerialPort = new System.IO.Ports.SerialPort("COM4", 115200,
Parity.None, 8, StopBits.One);
m_SerialPort.Open();
Application.Run(new Form1());
m_SerialPort.Close();
}
}
}
Now, just run this program on the target (using the RPM tool), and start
hitting the GC Heap button. Sometimes it works a few times (close GC Heap
window without saving if this works), but after a few times it fails,
throwing up a message box with this text:
exception code: 0xC0000005
exception address: 0x01d3a39c
Reading: 0x00000300
Faulting Module: mscoree3_5.dll
Offset: 0x0008a39c
Does anyone have a suggestions at all as to how to attack this issue? Is
this likely to be a bug in mscoree3_5.dll? Is there something that I need
to be sure is in my WinCE nk.bin image? (Right now, .NET CF 3.5 is deployed
by VS2008 - it is not built into the nk.bin image. I have pretty up-to-date
QFEs in the nk.bin.)
Full Disclosure: Also, the above code with the serial port is something that
I reduced my program to in order to report this issue. But removing the
same code from my larger program where the issue was first discovered
doesn't fix the issue, so the above code may be a red herring. The crash
may be caused by some unrelated issue.
(https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331277)
Thanks for any suggestions anyone might have!
- Wil Tag: How to reset handheld programmatically? Tag: 88198
How can I see files from project using Emulator?
In project I added folder â??Dataâ?? with â??Config.datâ?? file. I changed property
of Config.dat file to Content and property of â??Copy to Outputâ?? to â??Copy
alwaysâ??.
Now from the code I try to access that file:
If File.Exists("C:\Project\Data\Config.dat") = True Then
MessageBox.Show("File Found")
Else
MessageBox.Show("File Not Found")
End If
I got "File Not Found". Tag: How to reset handheld programmatically? Tag: 88192
MainMenu Control
Hi, anybody knows if is possible detect when a mainmenu control pop down ?
I can manage popup event from VS, but i need to detect when it close.
Thanks in advance! Tag: How to reset handheld programmatically? Tag: 88190
How can I see data files from a project when use Emulator?
Right now I don't have actual Mobile device and I try to run my project from
Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
cannot see files on my local PC. Do I have to create a Storage Card? I added
files to my project. How can I access them? Thanks a lot. Tag: How to reset handheld programmatically? Tag: 88183
Remove Sip Button
Hi, i was looking into the web, but i could not find any real solution...
I´m developping an mobile app in C#, CF 2.0 and WM 5, and i´d like to remove
from the bar the Sip icon...
Anybody know how to do this ?
Thanks in advance.... Tag: How to reset handheld programmatically? Tag: 88180
Fatal Aplication Error on Convert.ToSingle() ?
Hi
cant explain it but this code on my CE5 device does not work :
strange : when running on the wm5 ppc emulator then the fatal error does not
occur, it seems to be fatal on my CE5 device only.
NumberFormatInfo provider = new NumberFormatInfo();
provider.NumberDecimalSeparator = ".";
float temp=0.0f;
temp = (float)Convert.ToDouble("21.0", provider); //works
temp = Convert.ToSingle("21.0", provider); // yields a Fatal
Application Error
Any hints ?
Could there be an error in the OS image ? Tag: How to reset handheld programmatically? Tag: 88176
Smooth animation of an image in .net cf ?
Hello,
I want to animate an image. There is a sample for WM5 and WM6 which let my
image be drawn with alpha info - how can I extend this feature with an
animation?
The image should make a slide like in WM 6.1 phone (slide panel)
Thanks for any help.
juvi Tag: How to reset handheld programmatically? Tag: 88170
Packaging _setup.xml (for SSL Cert) into WinCE 5.0 CAB using CabWiz?
I am attempting to install a SSL Certificate on a WinCE 5.0 mobile device. I
have already created the appropriate "_setup.xml" file that contains the SSL
Certificate installation information (as shown in several
posts/blogs/WinCE32 SDK). Now I am attempting to package _setup.xml (or just
it's contents) into a valid WinCE 5.0 CAB file. Using the makecab utility
provided in the WinCE32 SDK, as in: "makecab _setup.xml rootcert.cab" does
not create a "Valid Windows CE Setup File", as reported by the WinCE device
when I attempt to manually install the CAB. Therefore it seems like I must
somehow utilize the "cabwiz.exe" program, that also comes with the SDK, to
try and package my _setup.xml, but how? I have no "Application" to install
so what would I specify in the ".inf" file???
Questions:
1) When running cabwiz.exe (WinCE 5.0 SDK), how do I package my "_setup.xml"
using a ".inf" file when there is no application to install?
And/Or...
2) How do I determine if "_setup.xml" must be considered as extra
information for "_setup.xml", which apparently the file that cabwiz.exe
itself creates inside of the new cab file!??
The command-line for cabwiz.exe offers the /prexml or /postxml options when
creating a cab file - do I need to use them or do I somehow indicate, within
the ".inf" file, that my "_setup.xml" file is input for the cab build? I
guess I'm just not sure on how to create the ".inf" file for cabwiz without
really having an application to install and then go about the task of
indicating to the cab setup, "Oh, by the way, would you mind running this
snippet of xml contained in my '_setup.xml' file so the appropriate SSL Cert
Info is imported/registered properly?"
I really hope I'm not confusing everyone but I could certainly use some
clarification on how I can package the SSL Certificate '_setup.xml'
(mentioned in several blogs/posts that I've seen for PocketPC and Windows
Mobile 5/6) into a valid WinCE 5.0 Cab file that I require for my
Symbol/Motorola MC3000 Series WinCE 5.0 mobile device...
Thank you for your time,
Greg Hellem Tag: How to reset handheld programmatically? Tag: 88162
Checking for Installed Application.
Hi All,
I need to check and see if an application is installed, namely TomTom.
Is the best way to just look for the EXE file?
Or is there a more correct way?
Thanks,
ink Tag: How to reset handheld programmatically? Tag: 88159
waveOutSetVolume clicking sound
Hi there,
I have a problem when setting the sound volume on a moto Q.
I have a sound (440 hz) looping all the time.
I need to change the volume very often to give audio feedback.
I am using playSound and waveOutSetVolume via PInvoke calls from coredll.dll
The problem is, if I change the volume for lets say 10% every change
produces an annoying clicking sound.
Does anybody know how to avoid these clicks?
Thanks
Flo Tag: How to reset handheld programmatically? Tag: 88154
SQL Server CE Assembly question.
Hi, i´m making a mobile app with VS 2005, CF 2.0. and SQL CE 3.0 ( Sql
server 2005 Mobile edition )
When i add a reference to my project to System.Data.Sqlserce i notice that
the version is 3.0.3600.0
But when i browse with the File explorar to C:\Archivos de
programa\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0
i see that the version is 3.0.5206.0 ( right
click ---properties ---version )
Which is the correct version ??
Thanks a lot.! Tag: How to reset handheld programmatically? Tag: 88153
Sending commands to serial port connected device
Hello,
When I create a connection to an external device (barcode scanner) via
serial port, using the Terminal Services Client on the mobile device, I can
send commands to control to the external device and receive information
about it, such as the firmware version.
I have a vb.net application that sucessfully recieves data (via serial port)
from the barcode scanner, but with the serial port open, if I send the same
commands that I used using the Terminal Services Client, I get no
acknowledgment from the scanner. I'm guessing I'm missing something.
Is there a way to send the commands I use in the TSC and recieve data in my
app?
Thanks in advance for any replies.
Dave M Tag: How to reset handheld programmatically? Tag: 88152
Hiding messageboxes
Hi,
Is there a way to display a form/panel/image ontop of other popup messages
even though if they
were displayed after my object?
I need to detect a click on the screen in order to move out of standby mode.
All works fine except when I have messagebox displayed on screen.
My app dpesn't get a notification about clicks on it, so I find myself with
a dark screen,
and the user trying to feel his way around shouting "lights please" ;-)
Thanks,
Empi Tag: How to reset handheld programmatically? Tag: 88149
How to get rid of popup warning for new EXE?
Hi All
I am developing on an HC700 Motorola HHT. The OS has been upgraded from
PC2003 to WM5. And I am using C# with CF2.
Every time the debugger starts up the EXE on the device a warning pops up
asking am I sure I want to do this. This seems to happen for all ne
assemblies as well and any applications that are shelled from with in my
application that I have added to the device.
In short any new application that is run on the device for the first time
gets this popup.
How can I stop this? At least for development.
Thanks.
ink Tag: How to reset handheld programmatically? Tag: 88148
Make a trial license
Hi,
Im working with an app mobile, and i want make i trial license (15 days) for
my application.
which is the best way to do that? any sugestion?
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: How to reset handheld programmatically? Tag: 88147
Minimum font size for webbrowser control
I have a program, running under .net compact framework v2, on Windows
Mobile 5. The main window uses a WebBrowser control to display
everything.
I would some of the text to have a very small font size. I've put in
the appropriate CSS directives, e.g. font-size: 6pt. But there seems
to be some minimum font size in the WebBrowser control -- when I
specify a large font-size then the text shows large, but when I
specify a very small font-size then the text won't go as small as I
want it.
Is there some property of the WebBrowser control which will let it
display text smaller? Or is it an issue of font availability?
Damon. Tag: How to reset handheld programmatically? Tag: 88144
Setup program
Hi,
For some reason, my PDA setup software is installing a "pc version" as well
as installing the PDA correctly.
Is there a way to prevent it from doing that?
This way I must uninstall it each time I re test the application.
Thanks,
Empi Tag: How to reset handheld programmatically? Tag: 88140
Problem with random access files (bug?)
There seems to be a problem in the .Net CF 2.0 (and 1.0) regarding
random access files.
After several usages of FileStream.Seek and FileStream.Read, wrong
values are returned.
The code from this post demonstrates this problem:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/cf5970f09c81d50d/727be7bd89798b3b?lnk=gst&q=filestream+bug#727be7bd89798b3b
//create the test file
using (FileStream stream = new FileStream(@"test.dat",
FileMode.Create))
{
for (int i = 0; i < 1000; ++i)
{
stream.WriteByte((byte)(i % 256));
}
}
// demonstrate issue
using
(
FileStream stream = new FileStream(
@"test.dat", FileMode.Open,
FileAccess.Read, FileShare.Read, 128
)
)
{
byte[] buffer = new byte[500];
stream.Read(buffer, 0, 252);
stream.Read(buffer, 0, 102);
stream.Read(buffer, 0, 5);
stream.Read(buffer, 0, 63);
stream.Read(buffer, 0, 39);
stream.Read(buffer, 0, 34);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
long pos = stream.Position;
stream.Read(buffer, 0, 73);
MessageBox.Show("Position: " + pos.ToString() + ",
value: " + buffer[0].ToString()
,"Should show 19");
stream.Seek(pos, SeekOrigin.Begin);
stream.Read(buffer, 0, 73);
MessageBox.Show("Position: " + pos.ToString() + ",
value: " + buffer[0].ToString()
,"Should show 19, shows 1 instead");
}
Same code works fine on the desktop.
Is this a known bug or limitation? Tag: How to reset handheld programmatically? Tag: 88138
Broadcom bluetooth manager and virtual serial port
Hi
I am kinda new to compact framework programming (I am experienced
asp.net developer), so please forgive me if my questions are trivial.
I've an application that connects to bluetooth device using virtual
com ports - before I connect this app to bt device I need to discover
the device and assign virtual com port, then configure the application
to use that port. Application utilizes standard cf2
System.IO.SerialPort class.
Everything worked well on my WM 5.0 device. Now I need to run this
application on WM 6 device with Broadcom bluetooth manager (IPAQ). My
WM 5.0 device didn't have any 3rd party bluetooth manager, just
standard Windows and I wonder if there will be any problem with
running this application because of the Broadcom bluetooth manager.
Will I be still able to discover the bt device and assign it a virtual
com port and then use it in my application?
I am not sure why HP decided to use 3rd party bluetooth software. Is
it only because they wanted to make easier using bt cell phones as
modems? What's the point in using such software?
Thanks for help in advance.
Regards,
Mike Tag: How to reset handheld programmatically? Tag: 88136
Symbol device
Hi, i´m developping an app with Symbol MC70 device ( WM5 and CF 2.0 ). This
device has an yellow key ( barcode trigger ), and i´d like to capture the
keypress event on it...but it can´t see to be a normal button, because i
couldn´t to trap the event... I was reading the SMDK .net documentation, but
i couldn´t find any info.....Anybody can help me ?
Thanks a lot.!! Tag: How to reset handheld programmatically? Tag: 88134
OS Version
Hello,
How can i determine the OS/Platform version with .NETCF?
I need to know if my app runs on Windows CE or on Windows Mobile and the
version number...
Thanks in advance,
Malik Tag: How to reset handheld programmatically? Tag: 88120
System.Diagnostics.Process TermWaiter.WaitForTerm();
We are using .Net CF 2.0.
We want to start the device clock application using Process.Start and when
the clock is closed/exitted, we want to carry out some operations. We have
used the following code for the same:
private void btnAdjustSystemTime_Click(object sender, EventArgs e)
{
System.Diagnostics.Process proc = new
System.Diagnostics.Process();
proc.StartInfo.FileName = "Clock.exe";
proc.EnableRaisingEvents = true;
proc.Exited += new EventHandler(clockProc_Exited);
proc.Start();
}
void clockProc_Exited(object sender, EventArgs e)
{
//do something here
}
Once, while executing the above code got a NullReferenceException with only
one line in the StackTrace:
TermWaiter.WaitForTerm();
After the exception, the application just shut down.
Could not recreate this exception.
Can anyone help me to find out the cause for the exception and its solution? Tag: How to reset handheld programmatically? Tag: 88115
Great Indian Developer Awards 2008
Vote for your favorite trailblazing individuals & products in the IT
Developer ecosystem and win exciting prizes!
Prizes include: Apple Mac Air Book, 26" PLASMA TV, NOKIA95 8 GB, APPLE
iPOD 80Gb, ZEST HOLIDAYS, GIDS GOODIES.
The Great Indian Developer Awards is a first-of-its-kind initiative
that honors individual & organisational excellence in the IT Developer
ecosystem. Just click and cast your vote. With over 15 categories & a
distinguished independent jury, who knows... it could be your
colleague, company or product that will emerge triumphant. And you get
to go home with cool goodies as well! Hurry!
Click here to vote for the Great Indian Developer Awards:
http://www.developersummit.com/awards.html#vote Tag: How to reset handheld programmatically? Tag: 88114
How to prevent WM Device Center to pop up each time I connect my device?
Env.: WM6, Vista, Windows Mobile Device Center
Hi All,
Sorry for the slightly OT question.
I currently plug my device in and out its dock station all the time to test
the connectivity of my app.
Each time I plug it in, WMDC pops up. It's getting somewhat irritating. Can
I prevent it from opening?
TIA,
Serge. Tag: How to reset handheld programmatically? Tag: 88111
Manage in unmanaged easier or unmanaged in managed
I need to use managed and unmanaged code.
I have two option, using managed class from native C++ code or using native
C++ from managed code. Which is easier? I came across ManWrap tools that is
better than /clr switch
Have few question, please help
1. Is ManWrap (RegExWrap.dll) tools used only to wrap managed class in
native C++ classes instead of wrapping native code for managed class usage.
Or both.
2. When i install catwork, what is the difference between ManWrap-vs2005-cli
and ManWrap-vs2005?
which folder should i install? Tag: How to reset handheld programmatically? Tag: 88110
VS.NET 2008 bug? How to restore Smart Device project templates?
This happened before, I tried everything to solve it, but failed. I
reinstalled Windows to solve it.
Steps
0) OS : Vista x64
1) Install VS.NET 2008 (with Smart Device Development support)
2) Install Windows Mobile 5.0 SDK (if it is not installed, Korean
image for WM 5.0 won't install)
3) Uninstall Windows Mobile 5.0 SDK
4) Now, all the smart device project templates are gone. There's no
item in the "Target platform" list.
Unsuccessful solutions (I mean, none of these worked)
1) Repair VS.NET 2008
2) Go to Add/Remove features of VS.NET 2008, remove Smart Device
support, reboot (still all the compact framework packages are shown in
the Control Panel > Add or Remove applications) , go to Add/Remove
again, add Smart Device support
3) Manually delete all the comact framework related packages, then
reinstall them by add Smart Device support at the Add/Remmove of
VS.NET 2008
4)Uninstall VS.NET 2008 then reinstall VS.NET 2008
Is there anyway to restore the Smart Device project templates? Tag: How to reset handheld programmatically? Tag: 88107
drawing directly onto picturebox
Hi
Im making a signature capture and have been looking at examples, got
it working ok but i have a problem
im captureing all the points so i can redraw the image at will which i
have code for in the paint event of a picture box
if i try to redraw the image every time there is a new point in the
image then it works but starts to slow down the point taking and the
image drawing starts to flicker after the first few points.
if i dont refresh the image untill the mouse up event it works
flawlessly but it is not very good usability for soneone trying to
sign the screen as they have to lift the pen to see there progress
i have made an application in a normal win32 app and this code solves
my problem
Dim oldX As Integer
Dim oldY As Integer
Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e
As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
oldX = e.X
oldY = e.Y
End Sub
Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e
As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If Not e.Button = Windows.Forms.MouseButtons.Left Then Exit
Sub
Dim g As Graphics = PictureBox1.CreateGraphics
g.DrawLine(Pens.Black, oldX, oldY, e.X, e.Y)
oldX = e.X
oldY = e.Y
End Sub
but when i try the same in a compact framework app i get a not
supported exception.
Anyone got any ideas??
Pete Tag: How to reset handheld programmatically? Tag: 88105
Why doesn't it throw an exception to connect to an unexisting IP?
This has been really troubling me, at least for few days. I tried to
solve it myself but I finally gave up and am asking for some advice.
What I'm trying to do is rather simple. To communicate between PDA and
PC via good old TCP socket. Since I dont' have a PocketPC, I used the
emulator that came with VS.NET
First, I tried like
Dim client As TcpClient = Nothing
Try
client = New TcpClient()
client.Connect("my ip address", 7778)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
MessageBox.Show(client.Client.Connected)
The problem was, even though I'd typed a wrong ip, the message box
always showed "True". The connection error only occurred when the
internet connection itself was unavailable.
Second,
Dim mySoc As New Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp)
mySoc.BeginConnect(New IPEndPoint(IPAddress.Parse("my ip
address"), 7778),
AddressOf OnConnect, mySoc)
End Sub
Sub OnConnect(ByVal result As IAsyncResult)
Dim mySoc As Socket = CType(result.AsyncState, Socket)
mySoc.EndConnect(result)
System.Diagnostics.Debug.WriteLine(mySoc.Connected)
System.Diagnostics.Debug.WriteLine(mySoc.RemoteEndPoint.ToString())
End Sub
This was the same, it always printed "True" even thouth the IP address
was wrong. I've tested this on VS.NET 2008 (WM 5.0 Emulator + Mobile
Device Center) and VS.NET 2005 (PPC 2003 emulator + ActiveSync), but
the results were the same.
All I want is simple text-based message exchanging. But I'm stuck at
the very basic stage like checking if the message was sent and
received. Is there any sample code that I can refer to? Please give me
some advice. Thank you a lot.
PS ------- The server side code was like
Dim myIP As IPAddress = Nothing
For Each i As IPAddress In
Dns.GetHostAddresses(Dns.GetHostName())
If i.AddressFamily = AddressFamily.InterNetwork Then
myIP = i
Exit For
End If
Next
If myIP Is Nothing Then
MessageBox.Show("Can't get the IP4 address of this
computer.")
End If
MyListener = New TcpListener(myIP, 7778)
MyListener.Start()
MyListener.BeginAcceptTcpClient(AddressOf OnClient, MyListener) Tag: How to reset handheld programmatically? Tag: 88093
Registry Keys
Hi,
I m working on app mobile, and i need write key + values on registry. How i
do that?
Framework version: CF 3.5
Plataform: Windows Mobile 6 Professional SDK
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: How to reset handheld programmatically? Tag: 88090
Possible to change color of Windows Mobile Theme?
Hello,
Is it possible to change the color of the current windows mobile theme used?
I would like to do this with .net cf but not sure if this is possible.
Saw already applications in .net cf that can change the color for example of
a WM6 device to red, green, blue or what color you want, but I do not know
how to do this.
thank you for any help.
juvi Tag: How to reset handheld programmatically? Tag: 88088
How to rotate a graphic/image in .net cf?
Hello,
Is it possible to rotate a graphic/image in .net cf?
I want to rotate an image around a center point like a pointer of a clock.
Have no ideas where to start and if its possible or not!?
thanks for any help.
juvi Tag: How to reset handheld programmatically? Tag: 88086
WebService access issue on GPRS/3G
Hi everyone,
I'm trying to build an application that retrieves data from a web
service using its data connection (GPRS/3G). I'm testing this
application on an HTC P3650 running windows mobile 6, with .NET CF
SP2.
As long as the device is connected through activesync, or with a WiFi
connection, it works fine. However, when the device is connecting
through its data connection, it throws a WebException.
On the other hand, I can access the webservice through GPRS without a
problem using IE.
I know the operator restricts data access to avoid traffic other than
http. The APN and proxy settings (which are used for this connection
but not through wifi) are configured correctly, but I don't know if I
should do anything else.
Any idea would help,
Thanks Tag: How to reset handheld programmatically? Tag: 88074
Dotfuscator disassociates derived class when base class is linked
Hi all,
I know this is a fairly old post, but I just came across it and wanted
to clarify things a bit. The "renamed referenced metadata defined
only in input map file" is used by our Incremental Obfuscation
feature. This allows you to obfuscate a class using a library that
was previously obfuscated but which you no longer have access to
reobfuscate (say when working on an update to a deployed application).
This setting tells Dotfuscator to apply the renames from the map file
to references found in the input assembly, without needing the
original assembly in which the type is defined. Tag: How to reset handheld programmatically? Tag: 88073
Pull/Import files from PC Host to the Device
Is there a way using the Compact Framework to implement a "pull" or import
of files from a Host PC's hard drive while cradled? We would like to avoid
having to release a PC application used to "push" the files from the PC to
the mobile device which we know can be done.
Thanks in advance.
-Eric Tag: How to reset handheld programmatically? Tag: 88070
using EVDO to connect to a webservice
Hi all,
I have a Symbol MC70 with WiFi, and a data access plan through the
cell phone. If I am in IE, call up web page and a WiFi connection is
not available, *somehow* the phone uses an EVDO connection to connect
to the internet.
I would like to do the same type of thing through code, using C# and
VS 2005. If you have a suggestion of where to look to get started
with this, I would appreciate it. Tag: How to reset handheld programmatically? Tag: 88068
Deploy .Net CF as Visual Studio does
Hello.
Every time a debug is performed into a PPC using Visual Studio 2005,
the IDE deploys the .Net CF into de device. Is there any way to write
a desktop application that does the same thing?
What I've been doing is developing a desktop application that uses
RAPI.dll in order to copy the .Net CF CAB and then I run the process
"\windows\wceload.exe" to install the cab.
But I would like to find some code that does this operation in a
transparent way for the user... I think that the best approach is the
one implemented by Visual Studio.
Thanks. Tag: How to reset handheld programmatically? Tag: 88062
problem starting the exe without debugger
SGksDQppIHVzZSBDIyB3aXRoIE5FVDEuMSB0byBjcmVhdGUgcHJvZ3JhbSBmb3IgQ0U0LjEgcHJv
Y2VzIGNvbnRyb2wgZGV2aWNlLiBJdCB3b3JrcyBmaW5lIGlmIGkgZGVidWcgaXQgb3IganVzdCBz
dGFydCB0aGUgYXBwIGZyb20gdGhlIFZTMjAwMy4NCkJ1dCBpZiBpIGZyZXNoIHJlYm9vdCwgbm90
IGFueSBvZiBteSBORVQgYXBwbGljYXRpb25zIHdpbGwgc3RhcnQgKHdpdGhvdXQgZXJyb3IgbWVz
c2FnZSkuDQpJdCB3b3JrcyBhZ2FpbiBhZnRlciBpIHVzZSB0aGUgZGVidWdnZXIgdG8gc3RhcnQg
YW55IE5FVCBhcHAuIFRpbGwgdGhlIG5leHQgcmVib290LiANCkkgbmV2ZXIgaGFkIHNvbWV0aGlu
ZyBsaWtlIHRoaXMuIEkgY2FuJ3QgdXNlIHRoZSBkZXZpY2UgdW5kZXIgdGhpcyBjaXJjdW1zdGFu
Y2VzLg0KUGxlYXNlIGhlbHAsDQoNCktydW5vDQoNCg== Tag: How to reset handheld programmatically? Tag: 88061
UserControl - size problem in designer
Hi,
I have problem with using my user controls in designer - desingner ignores
my default size of my control and allways creates new controls with size 200
x 200 points. Since desinger does not show content of usercontrols in CF,
this makes UserControls quite unusable for me...
1) I create new UserControl class called MyUserControl and sets it's size
property e.g. 100 x 50 points.
(I checked generated method InitializeCompoment and it seems fine, size is
set to 100 x 50)
2) I use this control in new Form. When i drag this MyUserControl on the
form, this control is created on this form, but it's size is 200 x 200
instead of 100 x 50.
When i do the same in full Framework, it works fine...
Is there any workabout how to make this work?
Thank for any ideas Tag: How to reset handheld programmatically? Tag: 88060
WM Print Engine with PDF support
Hi,
Cannot find PDA Print Engine(.Net SDK required) with PDF support.
I need to print pdf file from WM5/6.
FieldSoftware does not support...
Thanks. Tag: How to reset handheld programmatically? Tag: 88059
How to scroll large drawings/large docs?
Hi,
I have a "document". My doc can be divided to thousends of lines. Every line
can be displayed as a drawing, every line has an OnPaint method. How can be
displayed this document??? The height of every line is 75.
If each line is reperesented by separate controls the program will be very
slow, because thousands of controls must be checked every time wether they
are on the screen or not (?).
If the whole document is reperesented by one control size limitation seems
to be exceeded: the height of my "one and only" control should be more than
75000. System.Windows.Forms can not be resized (or not always can be resized)
to this height. The limit is 32767. ( My very large control is on a Panel in
this case.
I don't know the general way to handle large docs. Please help!!!
Frankie Tag: How to reset handheld programmatically? Tag: 88056
Connection Manager API
Hi,
I've seen some comment at various places on some sort of managed wrapper for
the connection manager API that's now available in .NetCF 3.5. Can anyone
shed a little more light on this like a) yeah it's in there and b) you need
to look in the XXX.xxx.xxx namespace.
Help appreciated.
J Tag: How to reset handheld programmatically? Tag: 88052
System.Drawing.Graphics.DrawImage seems to be not exact...
Hey everybody,
I've a little nice problem here. I want to scale a bitmap, everything
seems to be OK, but...
I sliced that Bitmap in nine (9) parts
- 4 corners (unscaled)
- top and bottom middlepart (only horizontal scaled)
- left and right middlepart (only vertical scaled)
- middlepart (horizontal and vertical scaled)
The 4 corners has a width and height of 5 px, top and bottom
middlepart has a width of scaled bitmap - 10px and a height of 5px,
left and right middlepart has a width of 5px and a height of the
scaled bitmap - 10px. The middlepart has a width and a height of the
scaled bitmap - 10px.
So, if I want to scale the new bitmap I think smaller than the
original on, everythink seems to be OK, but when want to scale it
larger, I got some problems with the top, bottom, left and right
middlepart. It looks like that the starting postions of the bitmap
parts had relocated by its own or evrythink else.
Does anybody of your had the some problems or the is problem between
my ears?
Thanks a lot...
Carsten Tag: How to reset handheld programmatically? Tag: 88050
Uninstalling Program Using DeviceProcessConfigXml
Hi All,
I have developed a kind of device loader, which starts automatically
when the device cradled. Using the software i want to uninstall a
certain software. When i call
m_rapi.DeviceProcessConfigXml(provisionFile, out output);
with the following xml, it doesn't uninstall. However for some
programs (i.e. compact framework or compact sql) it works pretty
fine.
<wap-provisioningdoc>
<characteristic type="UnInstall">"
<characteristic type="Program Name">
<parm name="uninstall" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Is it that the problem is with the way of preparing the cab file? Is
there anything that i should be doing with the setting of cab project?
And one more question, how do i simulate exactly the remove facility
of remove programs in control panel?
Thanks, Tag: How to reset handheld programmatically? Tag: 88048
GetAttachmentTable and DLLIMPORT
Hi
i wonder if someone can help me. Im trying to use the GetAttachmentTable
routine in MAPI.
[DllImport("MAPIlib.dll", EntryPoint = "IMessageGetAttachmentTable")]
private static extern HRESULT pIMessageGetAttachmentTable(IntPtr
msg, ref IntPtr AttachTable);
public IMAPITable GetAttachmentTable()
{
// Call the dll function
IntPtr tablePtr = IntPtr.Zero;
HRESULT hr = pIMessageGetAttachmentTable(this.ptr, ref
tablePtr);
if (hr != HRESULT.S_OK)
throw new Exception("GetAttachmentTable failed: " +
hr.ToString());
return new MAPITable(tablePtr);
}
When i try to run this i get
Can't find an Entry Point 'IMessageGetAttachmentTable' in a PInvoke DLL
'MAPIlib.dll'.
Can anyone help?
Thanks
Neil Tag: How to reset handheld programmatically? Tag: 88045
An existing connection was forcibly closed by the remote host...
Hi
My CF application have to be connected to a TCP server on a PC.
Here is the way I do on client :
[code]
private void Connect(string ip, int portNumber)
clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
clientSocket.Connect(new IPEndPoint(ip, portNumber));
receivedThread = new Thread(new ThreadStart(ReceiveThread));
private void ReceiveThread()
{
byte[] buffer = new byte[512];
int iBytesCount = 0;
while (!stopThread)
{
try
{
iBytesCount = this.clientSocket.Receive(buffer, 0,
this.receiveBufferSize, SocketFlags.None); ;
if (iBytesCount == 0)
break;
}
catch (Exception ex)
{
if (!stopThread)
{
throw new CommunicationException("An exception occured
in received thread.", ex);
}
break;
}
...
}
[/code]
The first time the PPC connect to the server all is well working :)
But If I shut down the Pocket PC using the power button on the device, and
exception occured in the ReceivedThread method. The exception is "A blocking
operation was interrupted by a call to WSACancelBlockingCall".
In this case, a Dispose the Socket and try to reconnect using the Connect
method. The Socket.Connect succed but each time this line is executed :
[code]
iBytesCount = this.clientSocket.Receive(buffer, 0, this.receiveBufferSize,
SocketFlags.None); ;
[/code]
I got the following exception "An existing connection was forcibly closed by
the remote host". Why ??? I'm unable to reconnect the Pocket PC to the server
!
Two days trying to figuring the problem but I now I don't know what to do :(
Please help me. Tag: How to reset handheld programmatically? Tag: 88035
CeSetUserNotificationEx question
I think I have pinvoke of CeSetUserNotificationEx working.
I'm not understanding how to intercept this though once its setup.
I'm trying to setup the notification to happen 3 minutes after Now and
I believe I'm creating the event correctly.
What I'm not understanding is how can I get my application to
intercept this notification then do some actions when it happens. The
problem I'm trying to get around is doing some periodic operation when
the device is in suspend mode. I just need to wake up for a second
check the current power state, do some operations then return the
power state. If call the below function 3 minutes into the future,
how can i intercept what is created?
Thanks for any help this type of thing is a little out of my area of
normal programming so I'm struggling a little bit.
private unsafe IntPtr AddJob( SystemTime st, string AppName,
string Args)
{
CE_NOTIFICATION_TRIGGER nt = new
CE_NOTIFICATION_TRIGGER();
CE_USER_NOTIFICATION un = new CE_USER_NOTIFICATION();
IntPtr h;
string dialogTextTest = "This is a test";
char* dialogText = dialogTextTest.ToCharArray();
fixed (char* pAppName = AppName.ToCharArray())
{
fixed (char* pArgs = Args.ToCharArray())
{
nt.Size = (UInt32)Marshal.SizeOf(nt);
nt.Type = 2;
nt.pAppName = pAppName;
nt.pArgs = pArgs;
nt.StartTime = st;
un.DialogText = dialogText;
h = CeSetUserNotificationEx(IntPtr.Zero, nt, un);
}
}
return h;
} Tag: How to reset handheld programmatically? Tag: 88026
unable to install windows mobile SDK
I'm trying to install windows mobile SDK 6.0 professional to target NET CF
3.5 application to windows mobile 6. However, launching the MSI I've this
error:
"the system administrator has set policies to prevent this installation"
I'M the administrator, and I'm didn't set any policy.
My pc runs win 2003 std.
any idea?
Win mobile 6 sdk standard has been installed without any problem
thanks Tag: How to reset handheld programmatically? Tag: 88020
Hi, All
I am using CF 2.0 and Texlogix Psion OS Mobile 6.0
I need to perform reset on the handheld.
Any references to how to accomplish this task.
Thank you,
RE: How to reset handheld programmatically? by srhartone
srhartone
Wed Apr 30 16:04:01 CDT 2008
The PowerManagement.SoftReset() should do the trick - implemented by the
OpenNETCF SDF library.
--
Simon Hart
Visual Developer - Device Application Development MVP http://simonrhart.blogspot.com
"elena" wrote:
> Hi, All
> I am using CF 2.0 and Texlogix Psion OS Mobile 6.0
> I need to perform reset on the handheld.
> Any references to how to accomplish this task.
> Thank you,