|
|
"Interesting" approach by Intermec...
Thanks for the info, I will save this incase I ever have to work with such a device.
Jonas
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Hi !
I have a problem to certify my Pocket PC App made with .NET Compact
Framework against the "Designed for Windows Mobile Logo". It requires
to delete all created registry keys after uninstall, which I can't
achieve. I found some informations about a Setup.dll at this address :
http://www.pocketpcdn.com/articles/setupdll.html. It seems to be what I
want but I don't know anything about C++
Furthermore, I noticed that even the .NET Compact Framework doesn't
delete its registry keys after uninstall (keys in
"\HKLM\SOFTWARE\Apps\Microsoft .NET Compact Framework" always stay
after uninstall). It seems that Microsoft wants us to do what they say
but not what they do (and it's the same for SQLCe 2.0 and every other
program I've tested) :p
Here is a list of the keys created during install :
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\CabFile
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\CmdFile
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\InstallDir
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\Instl
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\InstlDir
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\InstlDirCnt
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\IsvFile
And here is what remains on my Pocket PC after I uninstall my program
with Active Sync or the "Add/Remove program" :
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\CabFile
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\CmdFile
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\InstallDir
- \HKLM\SOFTWARE\Apps\<mycompany> <appname>\IsvFile
So my question is : is it really necessary to delete these keys to get
the Windows Mobile Logo ?
Thanks in advance.
Laurent
|
|
|
|
|
I have a RAS Client running on Windows CE device. When the RAS Client
authentication failes on the remote server the modem connection is still up
and I need to re-authenticate the Client to establish the communication with
Server.
The way I do that right now is that, I drop the modem connection and redial with
the new Client credentials which will re-authenticate the client and possible will establish connection.
I would like to know if I can re-authenticate the client without droping the
modem and redialing.
What are the mechanisms to do that?
|
|
|
|
|
Anyone know how to do a screen shot on a DELL AXIM x51 running Windows CE.Net? I need to write some documentation on a program i wrote, and a couple of screen shots of the app will help alot. Thanks for any help.
Pablo
|
|
|
|
|
There should be one in your IDE if you're using evc4 (and maybe somewhere on your filesystem if you're using vs200x) called CEZoomIn.
Otherwise there's lots of free ones out there, I use GetPDAScreen[^] (shameless plug) that I wrote when CEZoomIn stopped working for me. I haven't updated it for landscape mode or the new fancy high-res the kids run on their pda's today but maybe it will suffice...
HTH
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
You can also try the remote display control for Pocket PC. I've been able to run it on 2003SE and WM5 handhelds without too much problem. The image is sort of grainy, but turning on Cleartype helped.
|
|
|
|
|
How i can get position of mouse when hold tap and the contextmenu show? Thanks
Nothing
|
|
|
|
|
please anyone tell me where can I find (perferably COM based) handwriting recognition API for CE applications.
thanks in advance
|
|
|
|
|
|
Here is my problem this script will not log me in all the time. Sometimes when the btnEnter is clicked it returns with no value. in this case redirect to login page. (I changed the redirect to something else internal but it doesnt redirect it just empties the field like a post back).
When i try the same exact script from a XP machine it will work. Anyone have any ideas??
This makes no sense to me I left from work thinking this was a bad script, because it didnt work on all envirements. then I VPN in and test from home on a XP os and it worked. I am not sure how to approach this issue.
private void btnEnter_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
try
{
string scm = "sp_Access_SEL @Login='" + this.txtLogin.Text + "', @Password='" + this.txtPassword.Text + "'";
InsertIdtoDB(scm);
}
catch(Exception ex)
{
this.lblAccess.Text = ex.Message;
}
if(this.lblPass.Text == "0")
{
StringBuilder url = new StringBuilder();
url.Append("Login.aspx");
Response.Redirect(url.ToString());
this.lblPass.Visible = true;
}
else
{
StringBuilder url = new StringBuilder();
url.Append("DataModification.aspx");
Session["name"]= this.txtLogin.Text;
Response.Redirect(url.ToString());
}
}
private void InsertIdtoDB(string scm)
{
try
{
string myConnectionString = (string)ConfigurationSettings.AppSettings["Connection_String"];
SqlConnection cn = new SqlConnection(myConnectionString);
SqlCommand cmd = new SqlCommand(scm);
cmd.Connection = cn;
cn.Open();
rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
rdr.Read();
this.lblPass.Text = rdr["Access"].ToString();
rdr.Close();
cn.Close();
}
catch(Exception ex)
{
this.lblError.Text= ex.Message;
}
}
|
|
|
|
|
Hi,
I am using .NET Compact Framework 2.0, in this I need a control which will bind Text, Value && also multiple selection(like ASP.NET ListBox Control).
I searched all the controls But I didn't get.
any body plz tell me which control will have multiple and binds Text,Value(like dropdownlist).
it is urgent.
regards
GV Ramana
|
|
|
|
|
I've heard that accessing the COM ports on the pocket PC (Compact Framework) is "just like" on a desktop using the regular framework.
I'm missing some piece of the puzzle since most examples are in C++ and only show a small portion of the code assuming you've already linked to the right DLL's etc. but apparently I'm not.
On my desktop, I do this to open a COM port:
using System.Runtime.InteropServices; // needed for DllImport
-later on...
[DllImport("kernel32.dll")]
private static extern int CreateFile(...)
[DllImport("kernel32.dll")]
private static extern bool WriteFile(...)
-later on...
hFile = (IntPtr)CreateFile(fname, GENERIC_READ, 0, 0, OPEN_EXISTING, 0, 0);
and so on. I can open a COM port if fname is COM1 etc. So why isn't this working on the Pocket PC? I suspect it's just finding out what dll to import.
Thanks in advance to any Saint who can simplify this for me.
Tom@tweez.com
|
|
|
|
|
Has anyone noticed that up and down buttons in PPC'02 and '03 would scroll the drop-down list of a ComboBox, but in WinMobile5, those events change the focus to the next control?
I liked the old way because it meant you could respond to those events by loading whatever the value was in the next slot of the drop-down list and update the screen, enabling the user to 'shop' for the right value.
With the new modality, you have to tap to get the list and tap to make a selection - a much less effective means of 'shopping' for the right value. So, I want to over-ride that focus change behavior in WM5.
I tried capturing WM_KEYDOWN and WM_CHAR in the CComboBox and in the CDialog, but those events don't arrive in either place. Does anybody know where those 'physical' button events go?
Here's what I'd hoped I could accomplish:
void CMyNillaDialog::OnChar( UINT nChar, UINT nRepCnt, UINT nFlags )
{ // WM5 up arrow down arrow
if ( theApp.m_osVer == 5 && (nChar == 38 || nChar == 40) )
{ // we're running WM5 and the event is an Up or Down button
CWnd* ctl = GetFocus();
if ( ctl->IsKindOf( RUNTIME_CLASS( CSeekComboBox ) ) )
{ // a ComboBox has the focus...
// redirect this event to the CComboBox (prevent the focus change)
ctl->OnChar( UINT nChar, UINT nRepCnt, UINT nFlags );
return; // leave the focus on the CComboBox
}
}
// if it's not a CComboBox, let WM5 change the focus
// if it's not WM5, just handle it normally
CNillaDialog::OnChar( nChar, nRepCnt, nFlags );
}
-- modified at 14:17 Thursday 23rd February, 2006
|
|
|
|
|
please help me, how can i connect database SQL server in my Pocket PC, when i run it in Visual studio 2003 this run correct but when i run in Pocket PC, it can't connect to my PC
kevil
|
|
|
|
|
Hello,
I'm looking for a little more help with another bit of code, and thought a seperate thread for this one was better!
I would like to run a program after a (user setable) "period of device inactivity"!
I'm also looking to do this with evc++ code. Can anyone help with this please?
Thank You...
ZapMe1
|
|
|
|
|
Look into
CeSetUserNotification(Ex) or the older CeRunAppAtEvent/Time
and
GetIdleTime
Im not sure you can get notifications tied to idle time, but you could write a gui-less application that gets started by the times events to check if the device has been idle for long enough, and then starts the program that should run.
If your app is always running (or if you implement a service), you should get by with just GetIdleTime.
HTH
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Again, thank you for the reply, Jonas. I will run a few tests with this and see what I can come up with!
ZapMe1
|
|
|
|
|
Hello,
I'm looking for evc++ code that will "Disable ActiveSync" when the program is run, and restore connection (or at least the ability to connect), when the program is shutdown!
Can anyone help me with this?
Much Appreciated.
ZapMe1
|
|
|
|
|
Hi,
I've used this registry key in the past, dont know if it's still valid:
[HKEY_CURRENT_USER\ControlPanel\Comm]
"AutoCnct"=dword:00000000
This will stop the decive from trying to start an activesync session when a cable is plugged into the rs232/usb hybrid, but I guess it wont terminate an active connection. Unsure if that is what you are after.
HTH
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Thank you, Jonas. I'll give it a try, and post results back here! I appreciate the reply.
BTW: I'm not concerned with stopping the connection if already started, but would like to stop from connecting to ActiveSync if my program is already running!
ZapMe1
-- modified at 18:44 Thursday 23rd February, 2006
|
|
|
|
|
Hi Jonas,
Just wanted to say thank you! The registry change for "AutoCnct" worked like a charm!
When the value is set to it's default "1", then AS works & connects as usual! When this value is set to "0", then AS is ignored, and no connection is made!
I am a happy boy!
Thank You Again....
ZapMe1
|
|
|
|
|
Hello. Is there any way of modifying the look and feel of the application without having to repaint the controls (i.e. without inheriting from CDialog and catching the WM_PAINT message)?
Thanks a lot,
Ah Z.T.X.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
Greetings:
I've been struggling with writting a communications IO thread for a Windows Mobile .NET 2003. I have boiled my concerns down to a couple of basic questions:
Is it possible to have one thread send an asynchronous message to another thread. In other words, I'm looking for something equivalent to the "PostMessage" API procedure which places a message into a message queue of a window or command target but does not wait for for the message handler to finish (the way "SendMessage" would). Does this facility exist in Windows Mobile? Can it be implemented in Windows Mobile .NET or must I import things from the CoreLib.DLL?
I have also noticed that Windows Mobile .NET does not seem to support waiting on an AutoResetEvent or ManualResetEvent with a timeout. The overrides for "WaitOne" that allow you to provide a timeout parameter don't seem to be there for Windows CE.NET. Ditto on the static function "WaitAll".
With these elements removed, I don't know how one goes about writing efficient threads that can sleep when they are not needed and send messages to each othere without having to be "joined at the hip".
Have I misunderstood something? I hope I have. If anyone has some insight, I'd appreciate hearing from you.
Cheers,
Mark
|
|
|
|
|
I recently ran thru the same problem you are describing. After researching other discussions, my solution was to implement a "native" event class using the underlying windows CE API. Next, create a thread-safe message queue (using generics in my solution) that signalled an embedded native event when events were added and reset the event when the queue emptied.
I used these pieces to implements a WaitForAny on an array of the native handles. Final result was the desired WaitForAny that you are describing.
|
|
|
|