|
I'm just starting WM development and I'm trying to use VS 2008 Pro 90 day trial, since it is closest to the C I've programed embedded applications (for specialized devices like digital satellite receivers, flight data recorders, transmission controllers, and a few other things).
I'm looking for some samples or documentation on getting started.
I've looked at the samples with the WM5 SDK,
PocketPC->CPP->ATL
PocketPC->CPP->Mfc
PocketPC->CPP->Win32
I'm confused what the difference is in these example categories (I built and ran these, or the ones that would build).
I also tried to find samples here, and was looking in the Mobile Development (http://www.codeproject.com/KB/mobile/[^]) but I'm not sure which would be for C++ development for a WM5 or WM6.x device.
Can anyone point me in the right direction, or is there an article I've missed that explains these differences?
|
|
|
|
|
Development Technologies
Win32
The Win32 code examples are based off of the Windows API and nothing more. Projects of this type of the potential to be the smallest of the different project types with the lowest level access at a cost; you'll have to make more function calls to perform certain tasks (such as creating a window) than you would in the other project types.
MFC
MFC is a step up from Win32. You still have access to all of the low level Win32 APIs but you don't have to make the low level calls for some rather routine tasks such as creating a window or a button. Instead the MFC framework offers a set of classes that encapsulates this functionality. You mentioned having a C background. MFC is based off of C++ and is object oriented. If you have not worked with Object Oriented Programming before then your 90 days may be better spent in targeting Win32 projects.
ATL
Like MFC, ATL is a framework library that abstracts away several low level tasks. I've never used it myself so I can't speak on it beyond that.
.Net and C#
If you have familiarity with object oriented concepts then your 90 days will be better spent targeting .Net as your project type. Like MFC the .Net framework abstracts away a lot of routine task. It adds a layer of separation between you and the lower level APIs but you'll find that it meets most of your needs. You didn't ask about this technology but I am encouraging you to look into it. Microsoft is releasing a series of webcast called "24 hours of Windows Mobile" that covers different aspects of mobile development using .Net. I've indexed some of the web cast that they have done in this series at th following URL. At the very least look at the introduction webcast.
Compatibility
For the most part anything you see that targets Windows Mobile 5 will work on Windows Mobile 6. In many (but not all) cases code that is said to target Windows Mobile 6 will work on Windows Mobile 5. The main factor that bifurcates the platform is whether a device is running Windows Mobile Standard or Windows Mobile Professional. A phone running Windows Mobile standard does not have a touch screen. A phone running Windows Mobile Professional has a touch screen (there are other differences but those are the primary differences).
Some one had once asked about Windows Mobile development in the MSDN forums. I saved the response that I gave the person thinking that others may find it helpful. You can read it here.
|
|
|
|
|
Hello
I am developing a application for window mobile 5.0. and i want to print some reports from window mobile to my network printer. how i print the document using window mobile. please suggest.
Thanx
Khatri Mitesh
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Windows Mobile doesn't have printer support. You'll either need to create your own abstraction layer to talk to your printer or purchase a third party product.
PrintBoy Wireless is the only such product of which I know. You'll want to do research to see if there are others.
|
|
|
|
|
Hi,
Why CPU allocates allocate the memory region, rounded to a 64 KB boundary?
Regards,
Chandan
|
|
|
|
|
It's not the CPU allocating memory. It's the operating system and the run time. You've not made mention of what mobile technology you are using (Symbian, Windows Mobile, ...?) so I can't give you the specifics. But memory is always allocated from the OS in blocks. The size of those blocks will vary with the OS and it sounds like the OS that you are using allocates memory in 64kb blocks. If you allocate memory on a desktop it will also be allocated in blocks of a certain size.
The size of the block may also vary depending on the runtime you are using. For example, code written against one runtime may cause that run time to acquire a block of memory from the OS and then divide that block into smaller blocks to give to your program as needed.
You'll want to do some reading on memory allocation algorithms to get a complete description of what is occurring.
|
|
|
|
|
|
Hi,
I am writing an application on windows mobile 6. I would like to capture still images using the mobile phone's built in camera and use these images in my application. The capturing process need to be done in the background while the other phone applications are running normally. Does anyone have an idea how this could be done?
Cell phone brand: I-mate ultimate 9502
Thanks,
Regards,
Sherin
|
|
|
|
|
You need to use DirectShow. This blog entry[^] is a good starting point.
|
|
|
|
|
Hi,
I have created a J2ME application, when I try to install it on my Nokia N73, Nokia 6233, it gives an error saying that "this application is not compatible with this phone", but the same application is working fine in the simulator.
can anyone let me know how can we solve this problem.
Thanks in advance
Regards
Parasmani
|
|
|
|
|
I see many J2ME related questions lately, but I think that this isn't the most appropriate forum to ask this kind of questions. All major phone manufacturers have j2me related forums with the ones from Nokia and Sony Ericsson being more popular. Another forum frequently visited by experts is j2meforums[^].
To answer your question, you've probably built your application for a MIDP or CDLC version not supported by the phone. Or, less likely, you've used an API not available in the device.
|
|
|
|
|
I'm trying to catch the mouse down and up event and add them to a button control.
I'm planing to use IMessageFilter to add the missing events.
Now to my problem, It seems like application.addfilter don't exist's in cf...
Do anyone have a clue on how to catch mouse events in cf??
Or perhaps i'm looking in the wrong direction? Is there a better way to do this??
Thanks
Ola
modified on Tuesday, December 9, 2008 12:39 AM
|
|
|
|
|
The Mouse Down and Up events are already available for the button control. Why don't you extend it to add the desired functionality?
If you are actually trying to create a global mouse event hook, this is not possible in Windows Mobile.
|
|
|
|
|
According to a lot of places mouse down and other event's are not supported ny .net compact framework.
I have looked for the mouse down event in my visual studio 2008, and it's simple not there.
I have found several links to msdn forums stating that this is one of the things not implemented in the comapct framework.
|
|
|
|
|
You are right - the mouse down and up events aren't available for buttons. I remember seeing them in CF applications and I erroneously assumed they were available.
I've checked and they are available for Panel control. Perhaps you could override this to have button functionality. Or may be there is a simple control that supports these events and can serve as basis.
|
|
|
|
|
How to intercept outgoing SMS message in VC++?
|
|
|
|
|
Use the CEMAPI notifications to monitor when an item appears in outbox folder.
|
|
|
|
|
Thanks Joel,
but
i have some problem in system notification.
Plz help me
thx
|
|
|
|
|
We are trying to send SMS messages from PC using Sony Ericcson K580i mobile through Hyperterminal. But, I am unable to send the message as it gives COM+ Error. Here are the details which we followed:
1) Connected to PC using USB Port
2) Configured Hyperterminal and able to communicate with the mobile and able to give a call.
3) using Hyperterminal enter the below commands
at
OK
at+cmgf=0
+CMGF: 0
Note: Here SMS sending in PDU Format
4)Next tried to send message: Here my Service Provider is Airtel and there SMSC number is: +919845087001 and recpient number is: 919845467289
and trying to send message "hellohello". So I did tried to send the message in the following PDU format:
at+cmgs=20
0011000C911989546427980000AA0AE8329BFD4697
and got error message: +CMS ERROR: 304.
So, please anyone guide me and let me know what mistake i'm doing. Yours help is really appreacited.
|
|
|
|
|
Can we use the Component developed in C#2.0 (using VS2005) in mobile application to access the business logic.
(Mobile application - Windows Mobile 5.0 and .net FW2.0)
ch sriniw8z
|
|
|
|
|
Yes you can
Dushan Perera
|
|
|
|
|
Your question is a little vague in that you don't give any information on the component you wish to reuse. A possible interpretation of your question is that you have developed a portion of business logic designed to run on a desktop or server and you want to copy that DLL to a mobile device. If that is what you are planning to do then it won't work (it is possible to develop a component targetting the Compact Framework and run it on a desktop without recompilation, but that's not practical). If this doesn't answer your question please give more information on this component and how you need to use it.
|
|
|
|
|
Hi,
I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf or any other methods of Marshal class, it gives me NotSupportedException exception.
Please tell me how can i solve this problem.
Thank you.
DMASTER
|
|
|
|
|
can you make a simple console mode program that recreates the error? NotSupportedException is thrown for a wide range of problem sources and a code example would help diagnose your problem.
|
|
|
|
|
I use Mywork network settings to connect local network and use MyIsp connect using GPRS so i use several gprs and local network connection. I need to change the connection according to MY program. I am using C# Please help me.
Dushan Perera
|
|
|
|