Newbie Guide to C++ - Windows Mobile Development and Hacking General

I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?

ronschaefer said:
I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?
Click to expand...
Click to collapse
WHAT kind of applications you are trying to write?
Do you need to write a device driver for your PDA?

ronschaefer said:
I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?
Click to expand...
Click to collapse
You should be able to do it with visual studio and the emulator, im not 100% sure though, I only know a limited amount of Java.
Most phones support .net/C#/Java, so pick a language

What I want to write
Just some fun stuff =
One idea I had is a generic sound simulator, tie buttons to different sound - .wav files; animal sounds, machine sounds, phasor blasts, drum kit, theme music like - http://www.thinkgeek.com/tshirts/illuminated/a5bf/
I want to have it look nice too with decent graphics.

i suggest to use Visual Studio 2005 or 2008.
It's simplest way to start (and continue) to write programs.
Both native and NET technologies are supported. C++ and C# available.
Both VS versions are coming with integrated Device Emulator with WM5(VS2005) and WM6(VS2008) images for PDA/PDAPhone/SP and remote debugger for real PDA/PDAPhone/SP devices.

If you are using VS2005/2008. Download the latest Windows Mobile 6 SDK (Standard and Pro) for the best Emulation.
Ta
Dave

but c# only works with .net
where c++ works with win32(native) microMFC(Native) and .net
more info can be found
http://forum.xda-developers.com/showthread.php?t=380069&highlight=programming
http://forum.xda-developers.com/showthread.php?t=382995&highlight=programming
http://forum.xda-developers.com/showthread.php?t=226412&highlight=programming
http://forum.xda-developers.com/showthread.php?t=336251&highlight=programming
http://forum.xda-developers.com/showthread.php?t=305926&highlight=programming
http://forum.xda-developers.com/showthread.php?t=302548&highlight=programming
http://forum.xda-developers.com/showthread.php?t=228043&highlight=programming
http://forum.xda-developers.com/showthread.php?t=317913&highlight=programming
http://forum.xda-developers.com/showthread.php?t=237932&highlight=programming

yes, С# is for NET only. This language appeared together with NET technology as alternative to Java after breakup with SUN
C# is closer to BASIC than C++. I, personally, don't recommend C#. Ths "strange" language is for lazy people. Almost nothing left of C++ and its ideology.

Visual Studio 2008 Pro trial version
Thanks for you advice - i deleted all that embedded C++ stuff - was way too confusing, must have had like 8 programs installed and still was not working - I like the idea of just 3 things the visual studio and the 2 WM6 SDKs
Im going to try the visual studio 2008 - there is a trial version of it for 90 days
http://msdn.microsoft.com/en-us/vstudio/products/aa700831.aspx
Would i be better off with the 2005 version as Im using Xp not Vista on my main computer. Should I get the Try Visual Studio "Team System" 2008 - Trial Software or just stick with the regular one i downloaded?
I also downloaded the standard and professional WM6 SDKs
http://www.microsoft.com/downloads/...745-88EF-3D48091A390B&displaylang=en#filelist

I used embedded visual tools in the past (3 and 4). Be aware that you cannot use the WM5 SDK with eVC, you must use Visual Studio for that. The latest thing usable with eVC is the WM2003 SDK, as far as I know. Also, the emulator handling in eVC was quite sluggish and buggy. When I switched to VS2005, it was like a deliverance to me. Also, the help system in VS is a blessing. *g*
Though I used Delphi's VCL in the past, I would never freely touch such a thing on restricted hardware such as in PDAs. Hence, .NET, MFC and of course *cough* Java *cough* are out of the question. I'm a pure C++ writer. The progs are nicely small and fast. And there are always alternatives to the things I can't use because of that: for instance instead of MFC CStrings I got acquainted with STL library's strings. There's also ATL which supposedly can be used instead of MFC for GUI programming, but when I looked for it some years back I found only very little information about that.
Happy coding.

Is it true that you can only develop WinMo C++ in VS Pro?
I read on the Microsoft marketplace that the standard edition dosnt support mobiles..
are there any alternatives (C++ only please..)

yes they only support through pro... but you can get it for free through dreamspark if you are a student

joel2009 said:
yes they only support through pro... but you can get it for free through dreamspark if you are a student
Click to expand...
Click to collapse
damn, I am a student but my uni isnt listed
I asked one of the admins and they are looking into getting on the list
But it might be too late coz its my last year..

Mic159 said:
damn, I am a student but my uni isnt listed
I asked one of the admins and they are looking into getting on the list
But it might be too late coz its my last year..
Click to expand...
Click to collapse
Good news. My uni isn't listed either. It is a simple matter of verifying your student status on journey ed. I'm glad I could help with this because it turns out that I could get all the dreamspark software through my school's MSDNAA program anyways.

Related

PocketPC 2003 Programming...

What is the very basic programming in making applications to wm2003? like visualbasic 6.0 in the PC in there visual basic for pocket pc? Thanks Where can i get it?
there is visual studio 2003 .net
Hi,
I have started to code quite a bit for Windows Mobile 2003 and have not looked back )
You can try several different routes, the easiest and least expensive is to download the Micrsoft WM2003 SDK from their site (easier to do a google search for Windows Mobile 2003 SDK). You will need to download the SDK(s) as well as either eVB or eVC (eVB is your best option as its very similar to Visual Basic), however these tools are still quite 'hardcore' and require a fair amount of investment from you.
In addition to eVB you can try AppForge for Visual Basic 6.0 which plug's into VB6 and allows you create feature rich WM2003 applications, AppForge also installs a Booster tool on your Pocket PC device which greatly enhances he speed of the the VB apps.
The best route in my opinion is to download the Visual Studio 2005 Express Beta tools. Microsoft took Visual Studio.NET 2003 and updated allot of the tool sets, added more Mobile Device support and split up the different modules (so you will have to download what you need, i.e VB.NET Express). If you have the money you can fork out for the professional version of Visual Studio.NET 2003 which includes fulll support of Pocket PC/Windows Mobile 2003 & Smartphone devices (some through the download of the correct SDK, VS.NET can use emulators to run apps through the IDE without the need for a physical device docked with the main host).
Finally, to imporve your VB.NET coding experience and make the job of developing Pocket PC/Windows Mible 2003 apps, you can purchase (download available) a copy of AppForge CrossFire for .NET which allows you to use the Visual Studio.NET Visual Basic or C# languages.
Personally, I code nearly all of my Pocket PC apps in Visual Studio.NET 2003 using the C# lnaguage (I an one of the rare people who love C proramming)..
Cheers,
Taz
Wow.. I started this thread since sept 23 and got a new reply now.. this is a dead thread but you revived it.. thanx for your help now im currently donwloading the SDK... Thanx

development environment?

hi
i was wondering if anyone could point me in the direction of some decent but free development tools for wm5
thanks
embedded visual c++
you can also get free compilers like gcc and a .net compiler which run on the pocketpc itself
but it's hardly en ide
Depends on what language you want to code. For instance I couldn't find a decent assembly IDE yet (free or not). For C++/C# (managed and unmanaged) VS2005 is probably still the best. And the epxress versions can be obtained for free. Integration of embedded stuff would have to be done manually, I guess.
well i prefer programming in c/c++ so are there any free tools/IDEs for it?
don't i have to pay for embedded vc++ or is there a free version that lets me program for wm5?
oh and i downloaded the express c++ but when i want to instal the wm5 sdk it tells me it needs visual studio 2005
PSPad is awsome, and free.
Regards,
Jason
hey thanks for the reply but that's not for windows mobile 5 development
i really need something free for windows mobile 5 development
if anyone could help i would appreciate it
thanks
Ok little clarification:
a) You don't need WM5 SDK to develop apps that will run on WM5 and use its special features. You will just have to work a little harder and use LoadLibrary and GetProcAdress for functions not supported in WM2003. Also you can manually unpack the SDK installation and use the binaries and header files (this is VJ's advice I have yet to test it).
b) There is no version of eVC for WM5 because MS switched to Visual Studio. The express version does not support mobile development in any way. I always use eVC 4 this not only works fine for WM5 apps but also insures backward compatibility and saves me keeping two separate projects for one app.
I agree with levenum, as ever.
You don't NEED VS2005 if you're only developing in C++ (which you should be). I don't think VS2005 offers enough over EVC for me to spend a gazillion $$ on it as a hobby programmer. However, you can get VS2005 on trial for free from MS if you feel the need to try it out.
Also - EVC only requires a small number of mbs of space (great to stick on a USB). VS2005 is > 1gb from memory
V
thank you for your replies
i will do as you suggested
thanks
one last question:
does anyone know if there is an SDL sdk for wm5?
if not then any links to wm5 programming tutorials?
wajih.boukaram said:
one last question:
does anyone know if there is an SDL sdk for wm5?
if not then any links to wm5 programming tutorials?
Click to expand...
Click to collapse
here
Regards,
Jason
Hi,
There is an open source IDE for .net that supports (v2.2.1 only) the compact framework 2.0 : http://www.icsharpcode.net/OpenSource/SD/.
I'm using it for windows coding and it's a very good soft.
Regards,
Imer

Developing WM6 without CompactFramework??

Hi @ll codejunkies
i want to start developing/programming without the .NET CompactFramework for our WM5/WM6 Devices..
Till now, i used Visual Studio 2005, but i think with .NET the program is only "interpreted". Now i want to compile a program that don´t need the Framework for .NET.
So my question: Which Programming Languages are available to develop this "real" exe-Programs?? and what GUIs and Compilers i can use for it?
thanxx 2 @ll
The only real option without using runtime libraries such as the .NET framework is C++.
Is therefor a SDK?
You use the same SDK you were using all along. Infact, you can even use the same Visual Studio you were using all along. Just select Visual C++ on project type, and select smart device solution, and you're ready to go! . You'll have to have extensive use of the win32 api to get started though. The basics are EXACTLY the same as the desktop version.
on the microsoft Homepage i found out, that the SKD for WM6 only support .NET???
how can i then develop and compile then to native code, without use .NET Framework????
nEuDy said:
on the microsoft Homepage i found out, that the SKD for WM6 only support .NET???
how can i then develop and compile then to native code, without use .NET Framework????
Click to expand...
Click to collapse
The SDK supports C++ as well. Visit the MSDN site for technical documentation.
nuEdy: It`s not true, SDK has tools and documetation for managed and of course native development.
As mentioned above. Embedded C++ version 4.0. Free download from the Microsoft website. Compiles for the WM 2003 SE platform SDK included in this download. Without .NET you will have to use the standard WIN32 application model, responding to WM_XXXXXX messages via WIN32 API calls. If you haven't done this before, you will have a long hard slog to master it, but the results are worth it. Start by looking at the code created by the hello world app until you understand what the hell is going on. Release .EXEs can be run directly under the WM6 SDK as this is a true ARM emulator, not the half way x86 code used by the 2003 SE SDK.
Stick to two menubar items and WM6 will display them either side of the keyboard icon as per WM6 Apps. More than two and the menubar appears in WM2002/3 mode.

How to create apps for Windows Mobile device...

So I'm interested in trying to create an application for my Windows Mobile device, a tilt. It doens't have to be anything grand, for that matter a simple calculator will sufice..
Is there a noob guide for dummies that would kind of spell out the process of building the app then deploying the app to my phone?
Anyone have some source code they would be willing to share?
I'm familiar with VB but not vb.net, I have vb.net 2002 available but worry it's too outdated???
I'm hoping you guy's can shed some light on some start to finish guidelines.
Thanks.
TW,
I'm quite interested in this question too
I'm using Visual Studio 2008 + C#, works great.
I do not like VB (anymore), but I think it's worth upgrading, 2002 -> 2008, there've been new .NET versions and so on ... I'd use a newer version.
Visual Studio 2005 + VB.NET over here. Works great. Though I'd like to upgrade to .NETCF 3.5 asap.
Please use the search, this question has been asked several (or a lot of) times before.
Hey I program with VB.Net over Visual Studio 2005
You will need an additional SDK for your phone too:
for wm6 you find it here: http://www.microsoft.com/downloads/...3a-a651-4745-88ef-3d48091a390b&displaylang=en
then you can select it when you create a new project, see here
http://www.danielmoth.com/Blog/2007/02/windows-mobile-6-sdks.html
Rhapsody, any links that you could provide? are you referring to creating/compiling an app for WM6 or the golf application?
Anyone have some basic source they might like to provide? something with GPS using the "GPS Intermediate Driver" would be excellent... it sure would help to get the ball rolling.
TW,
tiger.woods said:
Rhapsody, any links that you could provide? are you referring to creating/compiling an app for WM6 or the golf application?
Anyone have some basic source they might like to provide? something with GPS using the "GPS Intermediate Driver" would be excellent... it sure would help to get the ball rolling.
TW,
Click to expand...
Click to collapse
The MSDN is what you need.
http://www.msdn.com (http://msdn2.microsoft.com/nl-nl/library/bb847935(en-us).aspx)
http://msdn2.microsoft.com/nl-nl/windowsmobile/default(en-us).aspx - Windows Mobile
http://forums.microsoft.com/msdn - MSDN Forums (has also a subforum for Mobile Devices)
The MSDN contains tons of information and a lot of quick start samples as well.
Thanks for the replies guys.
I'm a little confused on the different software packages that Micrsoft has available, .NET and Visual Studio, Professional, Team, etc...
Does Visual Studio 2005 include all that is needed? What's the difference between VS 2005 and VS 2008?
Thanks,
[EDIT]
I wanted to post back with a link I found for anyone else interested - hxxp://www.devx.com/wireless/Article/31198 it's a good article on creating setup files for your mobile device. If I can find something in VB with regard to GPS positioning and VS 2005 I think I've got a start...
tiger.woods said:
Thanks for the replies guys.
I'm a little confused on the different software packages that Micrsoft has available, .NET and Visual Studio, Professional, Team, etc...
Click to expand...
Click to collapse
Yup i had the same issue, I couln't find a place where it was clearly mentioned what was needed and how to start.
Then I came across this program : basic4ppc
It's easy and not too expensive, they have a trial version available
the only drawback to the trial vesion you can only simulate the program, exporting to exe file doesn't work, you'll have to buy the program.
I liked it so much I bought it
cool, giving it a go now
tiger.woods said:
Thanks for the replies guys.
I'm a little confused on the different software packages that Micrsoft has available, .NET and Visual Studio, Professional, Team, etc...
Does Visual Studio 2005 include all that is needed? What's the difference between VS 2005 and VS 2008?
Thanks,
[EDIT]
I wanted to post back with a link I found for anyone else interested - hxxp://www.devx.com/wireless/Article/31198 it's a good article on creating setup files for your mobile device. If I can find something in VB with regard to GPS positioning and VS 2005 I think I've got a start...
Click to expand...
Click to collapse
Get Visual studio 2008, you can actually get visual studio 2008 professional for free if you are a student, mainly in the US, but also abroad... check the microsoft vs 2008 website, cant remember the link
The other free version, visual studio 2008 express is useless to you since it will not do pocketpc/smartphone development
Or you can get a trial copy of VS 2008
Once you have it., you can create a new project, and you can select the pocketpc/smartphone type and you will be off to development land....

visual c/c++ on windows mobile?

Is there a program similar to visual c/c++ ,but for windows mobile?I want to make programs on my windows mobile htc?
I use the Visual Studio 2008.
Install the Windows Mobile SDK 6 plus the Emultors for Windows Mobile 6 and you will have a complete Development Environment.
The SDK Refresh Edition can be found here: http://www.microsoft.com/downloads/...3a-a651-4745-88ef-3d48091a390b&displaylang=en
Also the Visual Studio Express 2008 (works with it) is free. Just Google it, you can find it @ MS
While creating new projects you can then choose between several languages and tools also including visual c++, c# and visual basic.
Remember that c# and vb need the .net 3.5 framework and c++ does not!
Greetz!
brandi said:
I use the Visual Studio 2008.
Install the Windows Mobile SDK 6 plus the Emultors for Windows Mobile 6 and you will have a complete Development Environment.
The SDK Refresh Edition can be found here: http://www.microsoft.com/downloads/...3a-a651-4745-88ef-3d48091a390b&displaylang=en
Also the Visual Studio Express 2008 (works with it) is free. Just Google it, you can find it @ MS
While creating new projects you can then choose between several languages and tools also including visual c++, c# and visual basic.
Remember that c# and vb need the .net 3.5 framework and c++ does not!
Greetz!
Click to expand...
Click to collapse
I'm asking for visual ON the windows mobile.I want to develope progrs ON my Htc
I THINK I saw one a while back ... in a very old thread. But I know it was costy, and the developer stopped development on it.
I would keep attacking google with any search terms you can think of. You will probably be able to find it.
Sorry I can't be any more help If I remember, I will post back
Cyclonezephyrxz7 said:
I THINK I saw one a while back ... in a very old thread. But I know it was costy, and the developer stopped development on it.
I would keep attacking google with any search terms you can think of. You will probably be able to find it.
Sorry I can't be any more help If I remember, I will post back
Click to expand...
Click to collapse
thank's.I'm searching in google from past 5 days and nothing,but maybe this can't exist because wm doesn't have cmd,win32 and so on,so ..... i'll keep searching.
What do you mean by "On my Phone"?
You can just connect your phone via active sync, set the connection to Windows CE and just start the debugger, and you can debug on your phone!
Real dev. on a phone doesnt make any sense...
There was visual basic for PPC but that is really old and outdated....and you could only do about 1/10th of what you could do with VS2003/2005/2008 has to offer.
6700Freak said:
There was visual basic for PPC but that is really old and outdated....and you could only do about 1/10th of what you could do with VS2003/2005/2008 has to offer.
Click to expand...
Click to collapse
Link or the full name of the program ?

Categories

Resources