|
Hi there. Is there any chance of making a CListCtrl or CListBox with a transparent background?
Regards,
FG.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
You can handle the WM_CTLCOLORLISTBOX message for the CListBox. Use GetStockObject to get a NULL_BRUSH and return that. Note that MFC, for legacy reasons, uses OnCtlColor instead - Windows 3.x used WM_CTLCOLOR but this was replaced by the new messages in 32-bit Windows because there was no longer room for all the parameters. Call your base class's implementation to get it to set up the other colours appropriately.
For a CListCtrl, you should be able to use SetBkColor(CLR_NONE). If that doesn't work you should handle the NM_CUSTOMDRAW notification.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I want to start a connection to the Internet from within my application. How do I do this?
|
|
|
|
|
Well, you can do one of the following:
a) Just make a HTTP-Webrequest, the default internet connection will be made when starting the request.
b) Use the connectionmanager: get OpenNETCF[^]. Add a Reference to the OpenNETCF.Net library.
the code for the connectionmanager is something like this:
<br />
cmManager = new ConnectionManager();<br />
cmManager.Timeout = 120000;<br />
<br />
try<br />
{<br />
<br />
cmManager.Connect(<br />
new System.Guid("436ef144-b4fb-4863-a041-8f905a62c572")
, false, ConnectionMode.Synchronous);<br />
log.Info("CONNECTION MADE IN " + i + " ATTEMPTS");<br />
break;<br />
}<br />
catch (InvalidOperationException e)<br />
{<br />
log.Debug("oeps, unable to make connection");<br />
log.Error(e.Message);<br />
log.Error(cmManager.Status.ToString());<br />
}<br />
}<br />
As you see, the connectionmanager is called with a 'guid'. This points to a certain connection in the system. The one I use above is for 'The Internet' connection, found on every ppc/wm5-device. For a list of possible guid's use the following code:
<br />
string dests = "";<br />
DestinationInfoCollection dInfoCol = cmManager.EnumDestinations();<br />
foreach (DestinationInfo dInfo in dInfoCol)<br />
{<br />
dests += " \n" + dInfo.guid + " :: " + dInfo.description; ;<br />
}<br />
MessageBox.show(dests);<br />
|
|
|
|
|
Hi,
Can any one explain me the difference between the ASP.NET Web Mobile Application and the Smart Device Application, and it's purpose with an basic example or tutorial, plz
Thank You
-- modified at 5:57 Wednesday 28th June, 2006
|
|
|
|
|
I was working on an app with couple thread running. After deploying my app to the pocket pc and I run the app. but somehow after this action i was not able to delete or over the app. Every times the pocket pc say that my .exe is being used by another program. but i close all the running program in memory. take off the battery, turn off the device. you name it. It should shut down all the resource even some hidden threads. but apparently not.
Anybody have an idea about this?
Donkaiser
|
|
|
|
|
Might be deadlock.
or Your program doesn't exit.
If show the snap of your code for the abouve cases.
I might can help u
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
|
|
|
|
|
Hi all,
I have a general question:
I would like to use the multipart/mixed MIME type in my xhtml web application for xhtml mobile browsers (as a substitution for WML cards) and I was wondering if anybody could tell me what kind of browser support is there for multipart messages in mobile browsers?
I have been searching the web for a while already and I have had a look in the WURFL xml file but I couldnt get a representative result, so I was wondering if anybody here could help me and answer my question?
Thanks a lot!
-Sommarafton-
|
|
|
|
|
how do i can read user data files(for example and etc.) in a mobile with j2me programming platform(.jar executable files) pleas send me the code.thank you.
|
|
|
|
|
You open a file as you'd normally do in j2me...
Plus, I guess you're a little bit on the wrong forum.
http://www.code.ae - where technology meets insanity
|
|
|
|
|
Hi,
I am new to mobile tech. I am trying to install MMIT for VS2005 in XP platform, while installing i am getting an error "Setup cannot be run because of incompatable Framework version.........". I am in an confusion ,how to overcome this problem.?
Plz guide me how to install the MMIT and overcome this problem
Regards
Sarathy
|
|
|
|
|
Microsoft Mobile Internet Toolkit was renamed to ASP.NET Mobile Controls in later versions. It's compatible with .NET 1.x only.
ASP.NET 2.0, part of .NET 2.0 which accompanies VS2005, includes changes to the base controls to control rendering on downlevel and mobile browsers.
See Microsoft's mobile roadmap[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thkz very much Mr.Mike Dimmick, now i can able to open the windows smart device application in VS2003, but still i am having an problem. While running the system i am getting an error that:
"One or More files from the Emulator for Windows CE installtion is missing. Please reinstall Emulator for windows CE and try again."
Where shall i found an the exe to download, and how to install it? Is there an procedure to install it???
Plz give me an idea to overcome this problem
Regards.
Parthasarathy.S
|
|
|
|
|
www.packetforum.org is a place for eternal "networkers".
It also contains many categories dedicated to network and security programming.
Have fun
-- modified at 5:52 Sunday 25th June, 2006
|
|
|
|
|
hi!!
I am trying to build an application using .net and C# which will allow me to push objects from my desktop to all nearby devices. Its like a program to alert all nearby devices.
I have been trying to find ways to access the bluetooth stack on my desktop using .net but havent been able to do so.
Can any one tell me how can i achieve this?
thanks
p.s :I am eagerly waiting a reply ..its kinda urgent!!
|
|
|
|
|
if your still looking for a solution, you can use Peter Foot's library.
www.32feet.net
Although you are limited to using only he Microsoft Bluetooth stack.
|
|
|
|
|
Does anyone know how to read an email message from the inbox of an account with VB.net and WM 5.0?
I have been able to iterate through the various email accounts, but can't figure out how to select the inbox and iterate throught the email messages.
Any help would be greatly appreciated.
-Duffy-
|
|
|
|
|
How to install the .NET CF in a Pocket PC 2003 device prior to deployment of the application.? The installation can be done through Visual Studio IDE but I need to do it independently of the IDE. The users who will be using the application need to have .NET CF on their device. I cant find any solution.
Please help....
Thank You
|
|
|
|
|
You have to build an installer project that bundles the dependent cabs with your project's cabs. There's an article on MSDN as well as a couple here that can get you started.
This statement is false.
|
|
|
|
|
Hi All,
We currently have a client-server application written in Win32 and we're in the process of trying to create a slimmed down version of the client software for the Pocket PC. Our application is a fair size, and uses a few in-house developed DLLs for drawing areas etc. We want to be able to use code contained in these .DLLs on our Pocket PC app to avoid multiple copies of the same code in two projects. We're using VS2003.NET for the Win32 development, and eVC 4.0 for the PPC stuff.
Has anyone been in these shoes before? How have they solved the problem?
I thought of creating a similar .DLL in my PPC application, and actually link in the sources files from the original.DLL while adding #ifdefs to the .DLL to include functions that I require, then compile them using the evC compiler, realizing that not all the calls we make the .DLLs will be available in the PPC environment. This could be quite messy, but would eliminate the maintenence issue.
I realize that some of the calls that the Windows .DLL will make, will not be available in the PPC Edition. We will need to address these individually I think.
Any suggestions? Thank you very much.
Mike
|
|
|
|
|
That's generally the right approach. I've never really done much desktop drawing code, although there have been a couple of occasions when I've prototyped something on the desktop since desktop development is typically more rapid.
I don't know if you're using MFC or not. MFC for Windows CE as supplied with the Pocket PC 2003 SDK is basically a cut-down version of MFC 6.0. You should also be aware that the compilers in eVC 4.0 are based on the Visual C++ 6.0 front-end, and their standards compliance is therefore similar to VC 6.0.
If you are using MFC, you'll find most APIs are present. If not, there are a significant number of drawing APIs which aren't available on Windows CE, because they were redundant (for example, MoveToEx , LineToEx are not present because Polyline can do single and multiple line segments) and were therefore removed to make space. MFC simply wraps up these APIs.
Windows CE does not support mapping modes. All drawing is done in pixel units, equivalent to the desktop's MM_TEXT mapping mode. You can only create very simple pens (one-pixel-wide dashed pens, any width solid pens, null pens). The path APIs are not available.
I had thought that there was a difference between how Windows CE did FillRect and how the desktop does, with regard to filling the right-hand and bottom edges, but it appears that if it was ever a problem it was fixed before Pocket PC 2003 - I can't reproduce it. Perhaps I'd become confused between this and BitBlt .
If what you're doing isn't device specific (for example making use of barcode scanner hardware or other OEM APIs), I've found that making use of the emulator does speed up development a little (not relying on a physical connection). If you're going to use an emulator, use the one from VS2005 because it's ARM-based, like the devices, rather than being x86-based like the ones supplied with the Pocket PC 2003 SDK. If you don't have VS2005, download the Microsoft Device Emulator 1.0 package[^] and the appropriate emulator images. To use this with eVC 4.0, run the Device Emulator Manager from VS2005 or from the Device Emulator install directory (DvcEmuManager.exe). Right-click the image you want to use and choose Connect - the emulator starts up. In ActiveSync, ensure you have 'DMA' selected under 'Allow connections to one of the following' in Connection Settings. Make sure nothing's currently connected to ActiveSync. Then right-click the image in Device Emulator Manager and select Cradle. The emulator should now connect to ActiveSync. Now you can use the emulator as if it were a device.
If you're feeling brave you can try the Device Emulator 2.0 CTP, which is supposed to have performance improvements. You must use the 'Register' feature for any of the new components to be used and to get the performance improvement - the installer just copies the new files.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Alls,
I look for a framework like MFC for my Smart Device .NET project.
I just looked CAB but if I understand well it is just for PC applications.
Any idea ?
|
|
|
|
|
Hi,
I'm trying to make an alarm function in my own program, but whole program goes asleep
when pocketpc sleeps.
Think I've seen related article with alarm function, but couldn't find it after numerous
searches(it suggested some kinda separating sub-module, and waking the sub-module up)
how could I wake up from sleep mode?
(would be better by C#)
|
|
|
|
|
To cause the device to wake up, you need to get the operating system to tell the hardware to wake up at a certain time. The very old way to do this was the CeRunAppAtTime API. The slightly newer way is CeSetUserNotificationEx .
I don't think .NET exposes this function directly. I think there's a wrapper for it in the OpenNETCF[^] libraries.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Can anyone point to a easy tutorial on writing Windows Mobile apps? I basically want to just write a few easy apps that do simple registry edits to improve performance and such. Any help would be greatly appreciated.
Thx,
Mike
|
|
|
|