transparent Form
Hi,
My problem is:
I have two Forms and one is transparent in my application
I would like to see, through that which is transparent, the second (not
transparent).
I have overload Onpaint() and OnpaintBackground() to have tranparence .
But I see the desktop, not my second Form.
I work with CF 1.0 on PPC 2003 with VS2003.
Does anybody have a idea?
Thank you in advance,
Jean Paul, Tag: AppDomians and memory management. Tag: 66849
BluetoothFindFirstDevice help ! 911
Hi guys,
I'm stucked with a bluetooth application.
Shortly , my visual c++ 2003 bluetooth code is intended to query for devices
nearby (example : my cellphone with bluetooh)
I'm using the below code; (my code compiles fine, but when I hit the line,
BtHandle = BluetoothFindFirstDevice(&search_param, &btDevInfo);
I debug and assume that it will wait for querying devices nearby but it
immediately switches to dissambler code;
I then toogle another breakpoint to another line below this line and resume
from debug , it comes to this line and
i see that "BtHandle" returns "unknown value" , as if it doesnot query any
devices, something wrong occurs here as much as i understand here.
Where am i doing wrong here ?
Someone please shed a light upon me due i'm stucked at this point.
I'm using built-in Widcomm stack in my Win2003 server. Does it matter for
this code to work on different stacks? (Microsoft,Widcomm,Toshiba,etc..)
Actually, the application i'm working on is intended to work on any machine
with bluetooth whatever bluetooth stack it has ?
Where do i have to start from ?
This is an urgent call, please some experienced guy, direct me in the right
order.
Thanks much and Regards
Tiger Developer
HBLUETOOTH_DEVICE_FIND BtHandle;
BLUETOOTH_DEVICE_INFO btDevInfo;
BLUETOOTH_DEVICE_SEARCH_PARAMS search_param;
memset(&search_param, 0, sizeof(search_param));
search_param.dwSize = sizeof(search_param);
search_param.fReturnAuthenticated = FALSE;
search_param.fReturnRemembered = FALSE;
search_param.fReturnUnknown = TRUE;
search_param.fReturnConnected = FALSE;
search_param.fIssueInquiry = TRUE;
search_param.cTimeoutMultiplier = 20;
search_param.hRadio = NULL;
memset(&btDevInfo, 0, sizeof(btDevInfo));
btDevInfo.dwSize = sizeof(btDevInfo);
device_count = 0;
BtHandle = BluetoothFindFirstDevice(&search_param, &btDevInfo);
if (BtHandle == 0)
{
last_error = GetLastError();
printf("\nNo devices found: %d", last_error);
BluetoothFindDeviceClose(BtHandle);
exit (0);
}
else
{
szAccept = 'y';
bContinue = TRUE;
while (bContinue)
{
device_count++;
wcstombs(szDeviceName, btDevInfo.szName, sizeof(szDeviceName));
printf("\nFound Device %d : %s", device_count, szDeviceName);
printf("\nDevice address %x", btDevInfo.Address.ullLong);
if (btDevInfo.fConnected)
printf("\n It is connected");
else
printf("\n Device is not connected");
if (btDevInfo.fRemembered)
printf("\n It is remembered");
else
printf("\n Device is not remembered");
printf("\nPress 'y' to accept or 'n' to not accept this device ");
szAccept = _getch();
if (szAccept == 'n')
{
memset(&btDevInfo, 0, sizeof(btDevInfo));
btDevInfo.dwSize = sizeof(btDevInfo);
bResult = BluetoothFindNextDevice(BtHandle, &btDevInfo);
if (bResult == FALSE)
{
last_error = GetLastError();
printf("\nBluetoothFindNextDevice returned error: %d", last_error);
BluetoothFindDeviceClose(BtHandle);
exit (0);
}
}
else
bContinue = FALSE;
}
} Tag: AppDomians and memory management. Tag: 66847
Answer to phone call
There is a managed API that let me hang-up my pocket pc phone when i
receive a phone call ?
thanks Tag: AppDomians and memory management. Tag: 66841
Adding project reference of CF class library to web service
I am using VS.NET 2005, C#
I want to expose some of the functionality from my CF class library via
web services. I created the web service project and added a reference
to my businessServices class library. In this library I include some
connection functionality from the SqlServerCE namespace. What ends up
happening is that it copies over the SqlServerCe assembly to the Bin
directory of the web service under Inetpub and when i try to build the
solution it gives the error of:
Error 1 Could not load file or assembly 'System.Data.SqlServerCe,
Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference. (Exception from HRESULT:
0x80131040)
What is wrong with this and why is it doing this? It seems like it is
having rouble loading the assembly because of signed information? Is
this an ok process of exposing a device class library via web services?
Thanks in advance,
Jonathan Tag: AppDomians and memory management. Tag: 66837
Deployment of .net application for pocket pc
Hi
I have developed one application(vb.net) for pockt pc using vs.net2003.
I dont know how to package & deploy the application. so can anybody
help me.
Thanks a lot. Tag: AppDomians and memory management. Tag: 66835
Detect OS of Device
Hey.
Using C# on either a Pocket PC or CE app.
I need to be able to detect which one the app is running in order to
organise its layout.
I'm kind of new to this sort of programming so sorry if the answer is
obvious.
I did google around to try and find it before posting.
Cheers,
Steve Tag: AppDomians and memory management. Tag: 66832
PPC Service for Windows Mobile 5.0
Could anyone please share a Windows Service template that works on Windows
Mobile 5.0?
I tried to port the service template by Victor Sharov and Vassili Philippov
available at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_services.asp
which works just fine when deployed from eVC++ to the standard emulator, but
I just cannot make to work on WM 5.0 emulator.
Using the depency tool (Depends.exe) I found out mfc80u.dll and msvcr80.dll
are needed so I included those two in my cab file along with the registry
settings. Registry is setup just fine and the 3 dlls (2 above plus
MyService.dll) are copied to the Windows folder. Device is soft-reseted but
service doesn't start at all.
Any help is appreciated. Tag: AppDomians and memory management. Tag: 66823
Font Metrics
I would like to be able to get Font Metrics (Ascent, Descent, Baseline,
character widths, etc.) in the .NET CF. How can I do this?
It seems pretty nasty to have to use PInvoke on "Coredll.lib" which I assume
is a statically linked library (meaning I need to create a DLL that I then
PInvoke on).
It also requires a device context with a currently set font that it will
make measurements on. How do I set the font on a graphics object so that I
can make measurements with it? Is there special clean-up involved with this?
Thank you,
Richard Arthur Tag: AppDomians and memory management. Tag: 66820
Workaround for Delegate.CreateDelegate method?
I was wondering if anyone had a work around for Delegate.CreateDelegate?
That method isn't in CF2.0. I'm just porting some .net code over CF2.0
sample code i'm working on
MyDelegate instanceOfMyDelegate = (MyDelegate )
Delegate.CreateDelegate(typeof(MyDelegate ), this._parent, meth.Name); Tag: AppDomians and memory management. Tag: 66819
Using Comma Separated Values to de-serialize a DataSet
Subject: Using Comma Separated Values to de-serialize a DataSet
The DataSet.ReadXml() speed under Netcf1.0 is slow. It results in our App
taking over 60 seconds to start. I have talked to many newsgroups, researched
articles, etc to find a way to improve this time. The best answer to date is
to upgrade to Netcf2.0. I am in the process of doing this but there may be
problems with updating the physical device.
One other possibility was mentioned on a newsgroup. That is to use Comma
Separated Values rather then Xml to load the DataSet. Does anyone know how
that would be done and if any code snippets or examples exist.
Thanks.
--
John Olbert Tag: AppDomians and memory management. Tag: 66816
Code Signing
Someone save me from the brink of insanity. I have tried every
freaking code sample or thread I have found regarding code signing. I
used the very famous code project link, which doesn't seem to work.
Here's what I've done. Am I missing something?
Code Project Link:
http://www.codeproject.com/useritems/signcode.asp
1) I created a cert with makecert
2) I created my pfx file from the cert I made
3) I grabbed the sha1 and base 64 number from the cert and setup the
provisioning doc.
4) I created a cab to run the XML and ran the cab on my PDA, it worked
just fine. I'm assuming it provisioned correctly. I used the example
from code project.
5) I signed another cab file I have with signtool. That worked fine as
well.
6) I installed the cab file on the PDA and was promped because it was
from an unknown publisher.
WTF! Do I need a mobile to market cert? I thought I read that I
wouldn't get this prompt if I signed the cab file and its assemblies.
I don't get this prompt after the first install, but I don't want to
see that prompt at all. Someone please help.
Thanks in advance! Tag: AppDomians and memory management. Tag: 66814
Simple question
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C63D3B.F40AEF80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I want to show a message box and when the user clicks ok exit the =
application:
If Not g_blnLocalDBExists Then 'Go ahead and shut the app down after the =
user closes out the message box
Dim result As New MsgBoxResult
result =3D MsgBox("No local database. Place PPC back in the cradle.", =
MsgBoxStyle.OKCancel + MsgBoxStyle.Critical, "No Data")
Select Case result
Case MsgBoxResult.OK
Application.Exit()
Case MsgBoxResult.Cancel
Application.Exit()
End Select
This particular snippet actually just hangs the app completely - =
clicking OK on the messagebox takes but nothing else can be clicked =
again....
What am i missing. =20
TIA
Harry
------=_NextPart_000_0006_01C63D3B.F40AEF80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I want to show a message box and when =
the user=20
clicks ok exit the application:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<P><FONT face=3DArial size=3D2>If Not g_blnLocalDBExists Then 'Go ahead =
and shut the=20
app down after the user closes out the message box</FONT></P>
<P><FONT face=3DArial size=3D2>Dim result As New MsgBoxResult</FONT></P>
<P><FONT face=3DArial size=3D2>result =3D MsgBox("No local database. =
Place PPC back in=20
the cradle.", MsgBoxStyle.OKCancel + MsgBoxStyle.Critical, "No =
Data")</FONT></P>
<P><FONT face=3DArial size=3D2>Select Case result</FONT></P>
<P><FONT face=3DArial size=3D2> Case =
MsgBoxResult.OK</FONT></P>
<P><FONT face=3DArial=20
size=3D2> &nbs=
p;=20
</FONT><FONT face=3DArial size=3D2>Application.Exit()</FONT></P>
<P><FONT face=3DArial size=3D2> Case=20
MsgBoxResult.Cancel</FONT></P>
<P><FONT face=3DArial size=3D2> </FONT><FONT =
face=3DArial=20
size=3D2> &nbs=
p;=20
Application.Exit()</FONT></P>
<P><FONT face=3DArial size=3D2>End Select</FONT></P>
<P><FONT face=3DArial size=3D2>This particular snippet actually just =
hangs the app=20
completely - clicking OK on the messagebox takes but nothing else can be =
clicked=20
again....</FONT></P>
<P><FONT face=3DArial size=3D2>What am i missing. </FONT></P>
<P><FONT face=3DArial size=3D2>TIA</FONT></P>
<P><FONT face=3DArial size=3D2>Harry</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_0006_01C63D3B.F40AEF80-- Tag: AppDomians and memory management. Tag: 66811
Any interesting registry locations or list of CPU codes etc.
Hello,
I'm writing a little support tool which would gather information about a
connected PDA via active sync from PC. I can read out the resgistry of
the PDA and can get the CPU type, but:
- I don't know the meaning of the CPU type codes
- I'd like to get as much detail as possible about the communication
ports of the PDA. What to look for under Drivers\Active? And are there
any other usefull locations there?
Greetings
Markus Tag: AppDomians and memory management. Tag: 66808
Making an application full screen for Windows CE 4.2 using C# .net
This took me a while to figure out because everyone says something
different, and none of them worked for me. So when i got it, I decided
to post the solution to prevent it from happening to others. Here we
go.
You have to do two things. First, find the taskbar, then move it.
Then move you're main window. , assuming a screen size of 240x320.
Also, you have to make a bunch of Win32 API calls to do it.
[Flags()]
public enum FullScreenFlags : int
{
SwHide = 0,
ShowTaskbar = 0x1,
HideTaskbar = 0x2,
ShowSipButton = 0x4,
HideSipButton = 0x8,
SwRestore = 9,
ShowStartIcon = 0x10,
HideStartIcon = 0x20
}
// Win32 API Calls
[DllImport("coredll.dll")]
private static extern IntPtr GetCapture();
[DllImport("coredll.dll")]
private static extern IntPtr SetCapture(IntPtr hWnd);
[DllImport("aygshell.dll", SetLastError=true)]
private static extern bool SHFullScreen(IntPtr hwnd, int state);
[DllImport("coredll.dll", SetLastError=true)]
private static extern IntPtr FindWindowW(string lpClass, string
lpWindow);
[DllImport("coredll.dll", SetLastError=true)]
private static extern IntPtr MoveWindow(IntPtr hwnd, int x, int y, int
w, int l, int repaint);
public static IntPtr GetHWnd(Control c)
{
IntPtr hOldWnd = GetCapture();
c.Capture = true;
IntPtr hWnd = GetCapture();
c.Capture = false;
SetCapture(hOldWnd);
return hWnd;
}
public static void SetFullScreen(Control c)
{
IntPtr iptr = SystemHooks.GetHWnd(c);
SHFullScreen(iptr, (int)FullScreenFlags.HideStartIcon);
// move the viewing window north 24 pixels to get rid of the command
bar
MoveWindow(iptr, 0, -24, 240, 344, 1);
// move the task bar south 24 pixels so that its not visible anylonger
IntPtr iptrTB = FindWindowW("HHTaskBar", null);
MoveWindow(iptrTB, 0, 320, 240, 24, 1);
}
public static void UnsetFullScreen(Control c)
{
IntPtr iptr = SystemHooks.GetHWnd(c);
SHFullScreen(iptr, (int)FullScreenFlags.ShowStartIcon);
MoveWindow(iptr, 0, 0, 240, 296, 1);
IntPtr iptrTB = FindWindowW("HHTaskBar", null);
MoveWindow(iptrTB, 0, 296, 240, 24, 1);
}
'Control c' is the main control you're passing in, which should be your
main view. From your window class, call SetFullScreen(this). Have fun. Tag: AppDomians and memory management. Tag: 66799
How to debug applications that requires GPRS connection
Hi,
I'm building an application that need a GPRS connection. The application is
build with VS 2005 and CF 2.0
When the GPRS connection is connecting, the active sync link breaks (either
with the cradle or a bluetooth link).
Since the debugger use active sync, the debugger stops too and I loose debug
facilities.
How can I debug the app while connecting a GPRS network ?
The app works fine on the LAN, but not with the remote networks, and I need
to step into the code to check what is wrong...
Thanks,
Steve Tag: AppDomians and memory management. Tag: 66798
How to delete Read only file?
Hi,
I would like to programatically delete a file that has been downloaded as
read only. Obviously when you try and delete it 'normally' with
File.Delete(filename) it throws an exception (as you would expect). My
immediate thought is that I should change the attributes associated with the
file to RW before attempting the delete BUT I cannot find how to do this in
code with win CE. Any/all clues/solutions greatfully recieved.
Platform is IPAQ pocketPC. application mainly in VB.Net.
thanks for your time
regards
Bill
p.s. this was originally incorrectly posted in embedded VB forum and has
been moved here. Tag: AppDomians and memory management. Tag: 66797
Texas holdem tournaments
Hi. You have very nice website! Beautiful design.
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com Tag: AppDomians and memory management. Tag: 66794
Non-Standard baudrates opening COM ports
Hello all NG,
I'm triyng to open CE com port using OpenNETCF Port library with
non-standard baudrates (ex.: 200bps, 360bps, 10400bps). Anyone know if
it can be done?
If it insn't possible in managed code (C#) is possible in eVC++ 4,0?
Anyone has a piece of code, please?
Thanks,
Massimo Tag: AppDomians and memory management. Tag: 66786
Error message cannot be displayed
I keep getting this error message when my dotnet V2 CF app throws an
exception, obviously it is not much use.
I saw a thread about copying (somename)_wm.cab onto my PPC and installing
it. I found this file, but when I copy it over and try to install it the
PPC says it is not a valid CAB file.
How can I get the real exception text to appear on my PPC?
Thanks
Pete Tag: AppDomians and memory management. Tag: 66785
Can a Sql CE 2.0 application be a subscriber of a Sql Server 2005 publication ?
We actuallly have en error when we try to synchronize a ppc 2003 device
running an application built with CF 1.0 and Sql Ce 2.0 and a Sql 2005
server.
The errror is this one :
28035
SSCE_M_FAILUREQUERYINGHEADER
Internal error: HTTP header information is either corrupted or missing in
the transport message. It could be a network transmission error or an IIS
problem.
The queried dll is the sqlcesa30.dll which works correctly with Sql Mobile
applications on same hardware...
We also check in the publication properties that the minimum client version
is Sql 2000 and not sql 2005.
Thanks,
Steve Tag: AppDomians and memory management. Tag: 66781
ActiveSync Plugin in C# ?
Hi,
I have read that you can extend ActiveSync with your own plugins. But I
haven't found a tutorial or some text about how to do it.
Does anybody know where I can find a description about this? Is it
possible to write this plugins in C#?
I want to write a plugin that converts between different fileformats on
PC and PPC (like the integrated conversion between Access and Word
Documents).
thx
Martin Tag: AppDomians and memory management. Tag: 66773
Out of sync or garbled input from intermec Mondeo CK30
Warehousing system under Peoplesoft receives messages from Intermec Technologies Model Mondeo CK30 handheld devices as to goods movements in warehouse - from manufacturing into finished goods, physical movements in finished goods warehouse from one location to another, onto assembly of shipping list items, confirmation of loading onto delivery trucks, etc.
From time to time CK30 messages are transposed in Peoplesoft whereby specific individual pallet load attributes appear to be transposed from CK30 message into Peoplesoft data files - ie pallet progress status is changed and/or unique pallet identifier number appears to be changed.
It is as though messages from CK30 lack "header" and "end" of message attributes, and that messages of of sync get garbled upon receipt into Peoplesoft.
Has anyone advice to offer on this subject?
From http://www.developmentnow.com/g/18_2005_7_0_0_0/dotnet-framework-compactframework.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com Tag: AppDomians and memory management. Tag: 66771
Compact Framework 2.0 team needs to finish the .NET CF 2.0 release
In my latest blog
[http://realworldsa.dotnetdevelopersjournal.com/compact_framework_20_team_needs_to_finish_the_net_cf_20_rele.htm]
I list several links to CF 2.0 shortcomings.
It is evident that the CF 2.0 team needs to be pulled out of whatever they
are working on in WCF and come back to finish the .NET CF 2.0 release.
I keep hearing "We are listening", but I think we've said enough that it is
now time to start producing. The Compact Framework 2.0 team needs to finish
the .NET CF 2.0 release. Tag: AppDomians and memory management. Tag: 66764
About Delete SMS
How can I delete the specified sms message in Mobile 5.0 C# app via CEMAPI?
Or there is any third-party library? Tag: AppDomians and memory management. Tag: 66763
SSL / MSSQL CE Merge service
Hi,
I am new to SQLCE merge service with SSL. Where can I find samples or
information about SSL / SQLCE merge service? Do I need to use web service to
retrieve the certificate before connect to the server?
Thanks,
Luke Tag: AppDomians and memory management. Tag: 66762
Imagelist size restriction
VB 2005 / Pocket PC. Why are the image sizes limited to 256x256 in an
imagelist? I need to stored several full screen images (240 x 320) and
pull them into a picturebox as needed.
--
Kent Briggs, kbriggs@spamcop.net
Briggs Softworks, http://www.briggsoft.com Tag: AppDomians and memory management. Tag: 66758
Switching to Netcf2.0 requires WinCe OS upgrade
Switching to Netcf2.0 requires WinCe OS upgrade
Thanks to help on this forum I was able to get the new Vs2005 to deploy to
my WinCe device (sh4 microprocessor). Unfortunately I then received the two
following errors.
"The program is not compatible with the current operating system and,
therefore, may not run on this device. Do you want to continue installation."
"Unable to start program 'IcTb4.exe'. The specified program requires a newer
version of Windows"
Another group designed the OS that is running on the WinCe device. I was not
involved in that development. What do I need to tell them needs to be done to
make the WinCe OS (sh4 uP) compatible with Netcf2.0?
Thanks.
--
John Olbert Tag: AppDomians and memory management. Tag: 66754
Screen Mode Change
Hi,
I am writing an application for a K-JAM i-mate. When the screen mode
changes, it sometimes executes the Resize event more then once. I have code
in the Resize event to make sure everything re-positions itself nicely, but
if it calls the resize event twice for a single screen mode change,
everything screws up.
I am using VB.NET 2003, and any help would be much appreciated! Tag: AppDomians and memory management. Tag: 66752
Prevent ContextMenu Close
I have a context menu on my listview displaying multiple options that
the user can check/uncheck. Each time they check or uncheck one the
context menu disappears and the user is forced to tap-and-hold again to
do another option.
Is there a way to prevent the context menu from closing when the user
clicks one of the menu items? I would like it to only close when the
user clicks outside of the context menu. Tag: AppDomians and memory management. Tag: 66751
native Grid control input capable?
is the native grid control input capable in .NetCF? i did not think that it
was. but the documentation has me a bit perplexed. specifically, the
documentation on DataGridColumnStyle's 'BeginUpdate', 'EndUpdate' events and
how they can be used while data is being channged. and also, how there are
'several methods which allow monitoring of the column as it is being edited
by the user, including the 'Edit' and the 'Commit' events'. Tag: AppDomians and memory management. Tag: 66745
Pinning Array
When invoking the WaitForMultipleObjects function, should the second
parameter, which is een array, be pinned? I believe this should be the
case, since the CLR could move the array on the managed heap. However,
I have never experienced problems when not doing it.
Any ideas?
DWORD WaitForMultipleObjects(
DWORD nCount,
CONST HANDLE* lpHandles,
BOOL fWaitAll,
DWORD dwMilliseconds
);
In .NET I would use an array of integers or IntPtr. Tag: AppDomians and memory management. Tag: 66743
feeding TomTom 3
Hi,
Who knows how one can feed coordinates from a PDA program into TomTom 3 with
VB.NET2005?
rg,
Eric Tag: AppDomians and memory management. Tag: 66741
Hood Canal Mobility?
Does anyone know if this company exists anymore?
I had purchased their Signature Capture Control 3.0 a while ago. I would
like to purchase this one:
Capture Control version 3.1 Professional for the .NET Compact Framework.
But I cannot seem to find their product on Handango and their website seems
to be gone now...
www.hoodcanalmobility.com , well, the site exists but the software isn't
there. Anyone know where I could purchase this?
Thanks
James Tag: AppDomians and memory management. Tag: 66734
Regional User Override Settings
I am formatting a DateTime value via the ShortDatePattern using the default
culture setting. I have verified that this works as expected for various
region settings. If the user modifies the defaults from the Regional
Settings dialog from the Time and Date tabs, the culture does not seem to
reflect the user settings. I know the custom user settings are stored in the
registry at HKLM\nls\overrides. What is the correct way to handle this? Do I
need to read the registry settings and handle this myself or does the
CultureInfo class support this? I am using VS2003 and NETCF v1.
Rich M Tag: AppDomians and memory management. Tag: 66733
StatusBar with multiple panels
I am trying to create a status bar with multiple panels, one of which
contains an icon. I see the CF does not support this directly so I have
tried Win32. I created a standard .NET StatusBar and then call SendMessage
with message SB_SETPARTS using statusBar1.Handle; this does create the
multiple panels. However, when I call SendMessage with message SB_SETICON
the call is rejected. Is there a way to make this work? I am using VS 2005,
CF 2.0 and CE 5.0.
Thanks in advance. Tag: AppDomians and memory management. Tag: 66731
Use reflection for User Interface testing
I'm having difficulties getting a test application to work. The application
being tested runs on Pocket PC 2003 and uses the dotNet Compact Framework 2.0.
To be able to test our application we wrote a test application based on
information in an MSDN Magazine article that used reflection for User
Interface testing. See
http://msdn.microsoft.com/msdnmag/issues/05/01/TestRun/. In our case the
application being tested is somewhat more complex. To successfully run the
application the Main method must be executed.
When using the suggested Assembly.CreateInstance the application will raise
an exception. This because the CreateInstance method will run the
constructor. However, to run the application, the main method must be
executed.
While looking for other solutions I came across a method that I was looking
for. I am able to run the application in a separate thread and run the Main
method. This makes use of the AppDomain.ExecuteAssembly method. The problem
is that I need an object handle for the application.
I also tried to invoke the Main method after creating an instance of the
application. This causes an exception as well because the constructor will be
executed twice.
I think the best solution would be to use the ExecuteAssembly method and get
an object handle. But I cannot find a way to do that.
Solutions or alternatives are muchly appreciatedâ?¦ Tag: AppDomians and memory management. Tag: 66730
auto install application after cold reboot
Hi Forum,
Application auto reload after on cold boot: Is there any possibility
of autoreloading pocketpc application on cold reboot. The conditions,
and configuration could be stored in some boot file that could be run
automatically after the device cold boots. SSE technolgies, who we
purchased the Symbol PDAs from , have created such applications.
I have studied the previous links and we do have SD Cards as well. But
autorun.exe somehow doues not work. Please tell me in detail.
Please help me.
SB
*** Sent via Developersdex http://www.developersdex.com *** Tag: AppDomians and memory management. Tag: 66723
.cab shortcut to start menu
Hello,
I post it in a different post but I also having a problem with .cab
with VS2005 using smart device cab project
I put manually a shortcut for my app in Start menu but each time I
reinstall my app without uninstalling it before it adds me a new
shortcut in start menu like Myapp(2) then MyApp(3),....;
Now if I uninstall my app, it simply doesn't unsintall/remove the
shorctcut in start menu and the story described before repeats on next
reinstallation.
Thanx in advance. It is really annoying.... Tag: AppDomians and memory management. Tag: 66722
Resources.dll not updated in .cab
Hello,
I'm using VS2005 and the new smart device project cab.
My app supports localizations (fr, en and de) but when I generate the
.cab it apparently doesn't update the resources.dll. I however put the
assemblies at output project....and when I look at \obj\debug\ for th
folders de ,en fr and copy them into my pda and replace those installed
by the cab all is fine!
Why when I generate the .cab it doesn't update the resources!
Please help me! I'm desesperated! Tag: AppDomians and memory management. Tag: 66718
installation packet
I create my applicatin cab
i have sql cab
i have sqlclient cab
and cf cab.
can i have an auto installing cab with all of this?
microsoft developer env 2003 Tag: AppDomians and memory management. Tag: 66711
Interprocess .netcf & com
I guys, tiziano fabbri wrote.
I have a demand on my new project: send event from com dll to a .netcf
application, may be in the future from .netcf to com dll also.
I don't want use ATL. Only Win32 dlls.
I found a good document named "Inter process com in NETCF", it is regarding
the inter process comm inside world NETCF, but I tryed to use this experience
to adapt code and have same effect between NETCF and COM.
Obviously does't run !!
First, my com event is declared in a remote class of the complexive Com DLL,
that could be a reason of no event intercepting using a double declaration,
one in COM and the same in NETCF by the name because there is a decoration of
the event's name ?? .
COM declaration:
mCpCoreREvent = CreateEvent(NULL, true, false, LPTSTR ("CpCoreREvent"));
(when i need I set the event by SetEvent(mCpCoreREvent))
NETCF declaration/catching method in a thread (I wrapped coredll.dll)
private void listenCpCoreDataCommunication()
{
IntPtr hWndR = Core.CreateEvent(true, false, "CpCoreREvent");
// Loop until stopped
while (listenerCpCoreDataActive)
{
// Catch the event
if (Core.Wait.Object == Core.WaitForSingleObject(hWndR, 1000))
{
Core.ResetEvent(hWndR);
if (!listenerCpCoreDataActive)
break;
//Visualizzo i dati
this.Invoke(new EventHandler(showDebugCpCoreSJA1000));
}
}
Core.SetEvent(hWndR);
Thread.Sleep(100);
Core.CloseHandle(hWndR);
}
I tryed to move the declaration of the com event in the main body of dll,
just to try, but I haven't effect in NETCF program.
Please, some one have a tip for me ??
thank you, fabbrit Tag: AppDomians and memory management. Tag: 66708
a question about X509CertificateCollection
I am a colleage student . I download the
InTheHand.Security.Cryptography.X509Certificates.dll and import it in
my project.But there is a problem when I use the function
X509CertificateCollection.Add(X509Certificate) . It Will throw a native
Exception :
ExceptionCode:0xc0000005
ExceptionAddress:0x2cf7310
write 0x00000000
there si my code:
InTheHand.Security.Cryptography.X509Certificates.X509Store store=new
X509Store(StoreName.My);
store.Open(OpenFlags.MaxAllowed);
X509CertificateCollection collection = store.Certificates;
//read the certificate from windows ce,it works perfectly;
foreach (X509Certificate cert in collection)
{
this.textBox1.Text+=" subject Name:"+ cert.GetName();
} //it is OK;
//but if you want to adding a certificate,the program crashs.
//newCert is a common X509Certificate;
store.Certificates.Add(newCert); //System crash and throw the Native
Exception
store.Close();
I don't know why, can some body help me? thank you very much! Tag: AppDomians and memory management. Tag: 66707
Key event logger
Hi,
For a usability study I would like to create some software that runs as
a service in the background and logs all key events for all programs.
In the end you would get a list of all key strokes and some context
information e.g. which program was active or the name of the form.
Would that be possible to make for Windows Mobile 5?
Arnoud Tag: AppDomians and memory management. Tag: 66706
C# newbie question
I am creating a database app in MSVS 2005. I have created the mobile database
and it seems to work with the program. I have inserted a few records for
testing in VS 2005. Those records show up iwhen the program runs in the
emulator.
I created a datagrid form by dragging the grid from the datasources page in
my app. after doing so I noticed a right pointing arrow at the top of the
grid allowing me to let MSVS build my summary and Edit forms. So I did.
However when I add a new horse or horses they seem to be saved to the table
and displayed in the datagrid, but only until I close the datagrid form(not
the application) then when I re open it the records I created while my app
was running in the emulator are no longer there. So I adde this code to the
close of the edit form, but still no luck in saving the records. Can anyone
tell me what Iam doing wrong.
this.horseBindingSource.EndEdit(); this was added by MSVS
I added this below:no errors but data not saved
FB7MobileDBDataSet fb7mobiledataset = new FB7MobileDBDataSet();
FB7MobileDBDataSet.HorseDataTable newhorse =
(FB7MobileDBDataSet.HorseDataTable)
fb7mobiledataset.Horse.GetChanges(DataRowState.Added);
try
{
if (newhorse !=null)
{
horseTableAdapter1.Update(newhorse);
}
fb7mobiledataset.AcceptChanges();
}
catch (System.Exception ex)
{
MessageBox.Show("UpdateFailed");
}
finally
{
if (newhorse != null)
{
newhorse.Dispose();
}
} Tag: AppDomians and memory management. Tag: 66704
Hiding Windows Start Button
VB 2005 / Pocket PC. Is it possible to hide the Windows Start Button and
keep it hidden even after my program exits? I know how to hide it
temporarily using this:
Dim hwnd As IntPtr = GetForegroundWindow()
SHFullScreen(hwnd, SHFS_HIDETASKBAR)
But I don't know what handle to use to make it permanent (or at least
until a reset is performed). Note that I don't want to disable the whole
taskbar. I need other programs to keep their "Ok" button in the upper
right so they can close.
I've search through a zillion older messages here and didn't see a solution.
--
Kent Briggs, kbriggs@spamcop.net
Briggs Softworks, http://www.briggsoft.com Tag: AppDomians and memory management. Tag: 66701
Predefined Constants in VB.Net
Is there a pre-defined VB.Net constant that determines whether you are
targetibg Windows Mobile 5.0? Tag: AppDomians and memory management. Tag: 66693
best practice for deregistering events -= ?
Hi,
I'm working with someone else's code and have an issue with the
application design for registering and de-registering events.
In the existing code...
Events are registered as shown below. If the routine that owns this
code is executed unexpectedly more than once. Then there can be more
than one registration for the event.
blah.blahChanged += new EventHandler(this.blahButton_BlahChanged);
Also, the existing code uses the dispose event to deregister the events
as shown below.
public virtual void Dispose()
{
blah.blah-= new KeyEventHandler(blah);
blah.blah-= new KeyEventHandler(blah);
blah.blah-= new KeyEventHandler(blah);
}
Then the existing code forces a garbage collection using GC.Collect;
Is this a bad thing??? Is it ok to use the dispose method to deregister
events by forcing a garbage collection?
I prefer to use this method...
blah.blahChanged -= new EventHandler(this.blahButton_BlahChanged);
blah.blahChanged += new EventHandler(this.blahButton_BlahChanged);
it ensures that only one registration exists.
I deregister events in other locations. not in the dispose routines?
Comments? Tag: AppDomians and memory management. Tag: 66691
wce300 VS wce400, ARM VS ARMV4?
What is the difference between wce300 and wce400 cab files when deploying to
a mobile device? For instance I have a PDA with Windows 2002 with a PXA225
processor and a PDA with Windows 2003 SE and a Samsung S3C2440 processor.
Guess I'm not really sure if are platform dependant (Windows CE vs Pocket
PC), OS dependant (Win. 2002 vs Win. 2003) or processor dependant.
Also are there any hard rules on when to use ARM and ARMV4 cabs?
Thank for any response,
Dave M. Tag: AppDomians and memory management. Tag: 66688
"Dariusz" <dskwarek@gmail.com> wrote in message
news:Ol8oMsePGHA.456@TK2MSFTNGP15.phx.gbl...
> Do appdomains in one process share JIT-code?
>
>
> Best Regards
> Darek