vs2005 and xda mini (wizard) development IDE query - Windows Mobile Development and Hacking General

Hi
Keen to get into this, I've installed VS2005, followed by the .net compact framework (version 2) and sdk and also Windows Mobile 5.0 Smartphone SDK.
I can run forms in the emulator that I've designed, but for some reason, there appear to be lots of controls missing in the IDE.
The controls I have in the toolbox are:
Pointer
BindingSource
Checkbox
Combobox
DataGrid
DateTimePicker
HScrollBar
ImageList
Label
LinkLabel
ListView
MainMenu
MessageQueue
Panel
PictureBox
ProgressBar
SerialPort
TextBox
Timer
TreeView
VScrollBar
WebBrowser.
And that's it. Could someone in perhaps a similar situation please verify that I have all the controls I should? Shouldn't there be stuff like a simple form button, and how come I don't get all the other stuff like FileOpen dialog's?
Remember, this is while developing for Mobile v5 Smartphone - when I picked a Windows CE project, up come a load more controls including those listed above.
They just not available for Smartphone v5 perhaps? Something else I'm missing?
Thanks
edit: update. the controls are there if I create a project for Windows CE 5.0 instead, there's heaps more controls instead of what I mentioned above. And the app runs on my phone, but not in the emulator. When I switch back to the emulator, naturally it barfs on:
Me.Button1 = New System.Windows.Forms.Button
where it's "not supported". Damn.
Should I actually be developing for Windows CE 5.0 instead perhaps for the HTC Wizard ?

DOH!
Well, I'll post my clot-headed mistake here for the benefits of others.
My post above reveals I had installed the SDK for Smartphone - and the HTC Wizard (o2 xda mini) is running Windows Mobile v5 for PocketPC (not Smartphone).
Once I'd retrieved the proper SDK, here all went well, and I now have the proper complement of controls.
/me slaps head.
Off to a great start then..

Related

Beginner's pointers?

Hi chaps,
I've just got myself an O2 XDA Orbit - great device, and now I'm looking for developing for it - just simple things at first, like a Blackjack game, or a simple Today feature with the sun and moon times on it; this sort of thing.
I've got Visual Studio .NET 2003, but I see that in order to program the latest devices, you need VS 2005 (?). So, I've downloaded Embedded Visual Studio C++ v4 with all the SDK's and I'm hoping to develop for an earlier version of Windows Mobile, and hope that it works.
So while I've got all that, I'm now stuck as to where to start! Can anyone point me to a good book, or something online which will help me through a simple CE application? How you do get the Today screen working, for example? I realise that this might be asking a lot, but a couple of pointers would be great - if you could!
Many thanks,
MrP.
I'm just starting out myself with windows mobile programming. You can find a lot of info from msdn. Here is an example Hello app.
http://msdn2.microsoft.com/en-us/library/ms912017.aspx
You can find a lot of good stuff at the code project site also.
http://www.codeproject.com/ce/
eVC has wizards that will get you going. One thing I found out about using eVC is that you won't be able to debug your programs on a WM5/6 device since the SDK's are not compatible with them. It can be a bit of a challenge to fix bugs without a debugger. I can't get the debugger to work with the emulator either for some reason.
A question for other eVC developers out there. Is it possible to use the emulator to debug programs or do you all have an old PPC2003 device that you use to do your debugging? Or have you all moved on to VS2005?
I've bought visual studio 2005 standard and it is great - it fully supports WM5/6 (with sdk) and runtime debugging - for .exe it works well but I have problems with .dll - I can't debug dll files - does anyone know how to make it?
Pleas look up threads started by vijay555.
He wrote a comprehensive article on the tools and possibilities to begin developing for these devices.
Just as a quick side note:
There is no need what so ever to pay M$ money for VS 2005 if you want to develop in C / C++.
Apps written in eVC++ 4 will work perfectly with WM 5 and 6 and if you need any missing API (not many of those) you have 2 choices:
1) Manually unpack the SDK and link to it.
2) Use implicit linking (that LoadLibrary and GetProcAdress).
levenum said:
Pleas look up threads started by vijay555.
He wrote a comprehensive article on the tools and possibilities to begin developing for these devices.
Just as a quick side note:
There is no need what so ever to pay M$ money for VS 2005 if you want to develop in C / C++.
Apps written in eVC++ 4 will work perfectly with WM 5 and 6 and if you need any missing API (not many of those) you have 2 choices:
1) Manually unpack the SDK and link to it.
2) Use implicit linking (that LoadLibrary and GetProcAdress).
Click to expand...
Click to collapse
Sorry about the delay in replying...
Many thanks for the pointers.. Just a matter of starting now!

Need a c/c++ compiler !

hello guys,
i have been trying to figure out a way to do some c or c+ programming on the go, i have a desktop replacement laptop and i dont wanna have to carry it with me with all of my other books to school everyday. i am tryin to find a c++ compiler (hopefully gui)
i have tried
pocket gcc (installed but doesnt work)
pocketc (needs a translator to work)
evc++ (apparantly either i downloaded the desktop version or this is not what i was looking for)
i am just looking to do some c or c++ coding without a laptop at school.
thanks in advance.
joe
gcc works maybe you just set it up wrong
if you can do with c# then there is a c# compiler that runs on pocketpc
it dont have a gui though but any notepad'ish program can edit those files
otherwise there is this
http://www.pocketgear.com/software_detail.asp?id=5723
but it's not a fullblown compiler imho
never seen other real compilers or development envioments for pocketpc's
think the demand is TINY!
Yeah, Pocket GCC has worked successfully for me in the past.
However, I used Mamaich's version, and this was on a WM2003 device. You need to find a compatible Console output first for WM5 (you're using the Hermes right?). I can't remember if we found a good one for >= WM5.
There's various Basic type programming languages as well for native device development, and PocketC, but that's very very old.
V
How about C#....
Hi,
Ig you can bare using C# instead, I've just posted above about a free tool I created called "C# IDE Mobile" which allows writing/executing C# compact framework applications directly on the PPC.... But if you need C, then this won't help.
Harvey
Actually i have updated to wm6 and i am not sure if that is the reason cmd program from gcc wont work in it. I cant even find any sort of manual for it either.
and yes i do need a c compiler because from next semester i am startin to take unix courses and its mostly c programming. and if i get an idea in the middle of history class i might want to try it out on the phone instead of lappy.
so does anyone else have any ideas about a non translating program for c or c++
i was wondering if evc++ was only for PC and not PPC's cause i couldnt find a non xp version.
so i guess no compiler's huh?
evc++ is a IDE for windows which enable people to make pocketpc applications
not to run on the ppc
for the most parts the syntax of c# even java too is the same as
with c
so if all you need to do is make different algoritmes then you can use those
or the vi editor i linked too
if wm6 have the same issue with cmd as wm5 then this thread may help
http://forum.xda-developers.com/showthread.php?t=255114
does someone have a success with Tiny C compiler for ARM (tcc-arm) ?
IMHO, it would be quite handy for on-pocket development
I'm not sure if you can develop PocketPC-Applications with this, but I think its possible.
Try Visual Studio Express (C++-Edition) combined with the Windows Mobile SDK and the Windows Mobile Emulator Images.
All free, all available @ Microsoft Download Center. It's not tiny, but it's GUI and you can extend the pure C++-Development Environment with the ability to develop mobile applications and even to test them on Emulator.
Personally I'm developin mobile .NET Applications with Visual Studio Professional + Windows Mobile SDK and Windows Mobile Emulator. Works fine.
DennisMoore,
TCC is great due to its small size. And the reason why I'm interested in TCC is ability to cross-compile it to make it usable not only for ppc development, but for development on ppc. GCC is too huge application
try searching Bloodshed Dev-C++
I tried PocketDOS and TurboC++
Some time ago I was looking for this same thing and as I was just trying to do small DOS application (educational) then my best option was TurboC++ running in Pocket DOS. It can be changed to other pocket pc DOS emulator (there is a freeware one)/DOS C compiler.
pgcc should work
vijay555 said:
Yeah, Pocket GCC has worked successfully for me in the past.
However, I used Mamaich's version, and this was on a WM2003 device. You need to find a compatible Console output first for WM5 (you're using the Hermes right?). I can't remember if we found a good one for >= WM5.
There's various Basic type programming languages as well for native device development, and PocketC, but that's very very old.
V
Click to expand...
Click to collapse
I have this installed on my WM6 device and it works fine. In order to make the console work, you have to make a change in the registry.
see
http://forum.xda-developers.com/showthread.php?t=275019&highlight=console
Is this thread still active?
I use PGCC on my T-mobile Dash. I basically have to use batch files named without the following keys: W, E, R, S, D, F, X, C, V, which correspond to 1-9 on the dial pad. For example a file named run.bat would show up as 3un.bat so I would have to name it as such. I was attempting at one time to remap the keyboard to the HTC Excalibur like PocketDOS but, it was out of my experience level. I created a console pack from several different files that I modified. I had to jump through some hoops to discover this but, it's half the fun.
vijay555 said:
Yeah, Pocket GCC has worked successfully for me in the past.
However, I used Mamaich's version, and this was on a WM2003 device. You need to find a compatible Console output first for WM5 (you're using the Hermes right?). I can't remember if we found a good one for >= WM5.
There's various Basic type programming languages as well for native device development, and PocketC, but that's very very old.
V
Click to expand...
Click to collapse
Here's another console, tried it on WM6.1 and works like a charm.
http://forum.xda-developers.com/showpost.php?p=1854003&postcount=28
As for pocket GCC, i remember that it had some problems if file paths passed to it contained any spaces, so "/storage card" was a bit of a problem, and obviously, putting it in device's memory isn't even possible on many current pda's. The solution i came up with was renaming "/Storage card" to something wothout spaces (like "/SD").
You can do it by a simple registry edit the key:
Code:
HKLM/System/Storage Manager/Profiles/SDMemory/Folder
or
HKLM/System/Storage Manager/Profiles/SDMMC/Folder
(i don't remember which one it was, so you'll have to do some experimenting)
to anything you would like. After a soft reset you'll see the storage card mounted to a different folder.

Application programming for HTP P3300 (ARTEMIS) and a few questions

As I'm new in this forum: Hi everybody!
I have been programming Windows CE-based devices for many years, but no experience yet with the HTC ARTEMIS (P3300). Therefore, I've a few questions and hope to get answers from this forum:
- I assume, it is possible to program visual-C++ based applications for the programme. SDK for Windows Mobile should be available at Microsoft. Is that correct?
All further questions are based on the assumption that visual-C++ (or embedded VC) is used for application development.
1. Is it possible to direclty receive incoming Short Messages (SMS) via the application? (Any keyword on how this works would also be welcome)
2. Is it possible to query the battery status from the device?
3. Can the GSM module easily be accessed and can Cell-IDs or carrier IDs be read from the device? (In particular, I want to identify the home country of the current mobile carrier) - If yes, how does it work?
4. Is it possible to restrict the appearance of the ARTEMIS. I.e., the user should only be able to access "my" application and mobile phone (voice) features. All other applications and system functions shall be hidden to the user.
Thanks in advance and kind regards,
ma_gu
yeah the stk can be downloaded and accessed from visual studio
1. i would asume so even if it had to be don with a dll hook
2. yeah many 3th party applications can display it asume there is an api call to get it
3. yeah there is an api forget the name searching in this forum should give some hits
4. yeah but if they hardreset or reflash the device it would be more troublesome
Hi Rudegar,
thanks for your fast reply. That sounds good and I think, I'll be able to find the regarding API calls (anyway, if somebody could provide some keywords, it would be very welcome).
But I have never restricted the appearance of any Windows-CE based device (question #4). How can this be done? At the beginning, I assumed that this needs rebuilding of the operating system via a system builder, but that's obviously not the case. Can you give me some hints on how to do this?
Kind regards,
ma_gu
http://forum.xda-developers.com/showthread.php?t=256646&highlight=programming
the api is called ril
depend on who you wanna develop really
1 option is making pure arm code (kinda skipping the ce) using gcc compiler for arm
2 option is the high lvl c# .net or c++ .net path but it's not that fast and dont have as much os access as pure win32 stk and even microMFC
3 option microMFC old ms class lib for c++ oop the granddad of .net you might say
4 pure win32 stk you handle the msg loop and everything more work but more power where many developrs who do today items and programs end up
if you can live with .net it's the easy path
if you want more then starting with microMFC and moving on to pure win32stk is prob the thing
java is not that well supported by wm imho
oooh yeah and you dont use platform builders and stuff like that
unless you are building roms from scratch and got access to all drivers for spc devices
you start a new project in embedded visual stuio or visual stuio 200X
and pick your path as in .net or the likes
and then you can debug using a simulator or directly on the device
it use activesync to get the exe there
otherwise you can normaly activesync the exe file to your device and run it directly
or copy it to a sd card and run it from there

New version V11 of C# IDE Mobile (MAJOR IMPROVEMENTS)

New version V11 of C# IDE Mobile (MAJOR IMPROVEMENTS)
C# IDE Mobile is an application (totally free) that I've developed to be able to develop with C#/.NET2CF directly on the Pocket PC-Windows Mobile 5/6 (it doesn't require the .NET SDK, you don't need a desktop computer).
You can download the new version at:
http://www.geocities.com/hrowson/wm5_software/index.htm
or from my personal page:
http://www.geocities.com/hrowson/index.htm
MAJOR IMPROVEMENTS: This version includes a Windows Form Designer which greatly helps in creating your application's user interfaces. This designer is available in C# IDE Mobile via the menu "Tools/UserPlugin/ControlEditor" (and therefore works directly on the PPC). This greatly reduces the amount of written code for the application and allows getting a GUI very quickly (a few clicks)
This designer (free, like C# IDE Mobile) is developed by Jean and an introduction/presentation (although in French, but has some pictures to illustrate) is available here:
http://pagesperso-orange.fr/asnora/Control Editor/Control Editor.htm
This new version mainly adds the following improvements:
- Included new Windows Forms Designer (yes, you can a Windows Form designer usable directly on the PPC) developed by Jean (http://pagesperso-orange.fr/asnora/Control Editor/Control Editor.htm)
- Added support for compiled User Plugins (DLL instead of css)
- Added replacement File Dialog for smartphones on which the default .NET2CF FileDialog DLL is missing (this seems to be the case sometimes)
- Corrected issue with "Format document"
- Added support for user DLLs: You can now place your own CF DLLs (generated with Visual Studio for example) in the "UserDLLs" folder and call your functions within them (you can create your API for example in a native CF DLL and call these functions from your C# IDE Mobile code)
Harvey
Just some infos....
Hi,
In fact there's a translation on Jean's Web Site for the Form Designer and also I corrected a minor issue with the autatic code formatting (there was an ASSERT in there, but you just needed to say "ignore" to the debug dialog, so it doesn't really matter, the version is now V11b).
Harvey
Great tool! Thanks.
Microsoft assemblies
This is certainly a very interesting tool and probably will keep me happily busy!! But I seem to have a problem that I cannot find relative info: I'm trying to access the camera through the Microsoft.WindowsMobile.Forms.CameraCaptureDialog class, but the type cannon be resolved. I have verified that the appropriate GAC dll exists in the Windows directory. I cannot find the class/assembly in the MS.NETCF index either.
Any hints?
Thank you!
ps. I'm on a kaiser with CF 3.5 and Schap's WM6.1 Beta Rom.
nicely done sir
Hi,
Sorry, I've only just seen the post about Microsoft.WindowsMobile.Forms.CameraCaptureDialog. As I post on a few forums I don't always see answers that come a long time after the posts, that's why I leave my email easily accessible on the web site... don't worry about emailing me, I'm not planning on building a "spam" database...
I'll look quickly, there's also a similar problem with DataGrid it seems. I think these are both the same problem and should be sorted out quite easily.
Harvey

Windows Phone SDK 8.0 Download

The Windows Phone Software Development Kit (SDK) 8.0 provides you with the tools that you need to develop apps and games for Windows Phone 8 and Windows Phone 7.5.
Overview
The Windows Phone SDK 8.0 is a full-featured development environment to use for building apps and games for Windows Phone 8.0 and Windows Phone 7.5. The Windows Phone SDK provides a stand-alone Visual Studio Express 2012 edition for Windows Phone or works as an add-in to Visual Studio 2012 Professional, Premium or Ultimate editions. With the SDK, you can use your existing programming skills and code to build managed or native code apps. In addition, the SDK includes multiple emulators and additional tools for profiling and testing your Windows Phone app under real-world conditions.
System requirements
Supported operating systems: Windows 8, Windows 8 Pro
Windows 8 64-bit (x64) client versions
Hardware:
4 GB of free hard disk space
4 GB RAM
64-bit (x64) CPU
Windows Phone 8 Emulator:
Windows 8 Pro edition or greater
Requires a processor that supports Second Level Address Translation (SLAT)
If your computer meets the hardware and operating system requirements, but does meet the requirements for the Windows Phone 8 Emulator, the Windows Phone SDK 8.0 will install and run. However, the Windows Phone 8 Emulator will not function and you will not be able to deploy or test apps on the Windows Phone 8 Emulator.
Instructions
Choose the language version you want to install and click the Download button for the WPexpress_full.exe file. Follow the instructions to install the SDK. Note that each localized version of Windows Phone SDK 8.0 is designed to function with the corresponding localized operating system and localized version of Visual Studio 2012.
Note - Windows Phone SDK 8.0 installs side-by-side with previous versions of the Windows Phone SDK. You don't need to uninstall previous versions before beginning this installation.
Download the release notes which are in a separate file. For Windows Phone SDK 8.0 documentation and samples, see the Windows Phone Dev Center.
To start VS Express for Windows Phone, click the application in the Apps list. If you have Visual Studio Professional, Premium or Ultimate installed on the computer, the VS Express for Windows Phone shortcut won't appear. Instead, start your Visual Studio instance as usual and then create Windows Phone SDK 8.0 projects using the installed Windows Phone templates.
If you try to run a project in Windows Phone Emulator and Hyper-V is not enabled, you will be prompted to turn on Hyper-V. Turning on Hyper-V requires you to restart your computer.
Note: this release is also available in .iso format. Choose one of the following options for handling downloaded ISO images:
(Recommended) Write the image file to a blank DVD.
(Alternative) Mount the image file virtually as DVD devices.
Download WebSite: http://www.microsoft.com/en-us/download/details.aspx?id=35471
So how do you learn how to use an SDK? I've always had an interest but there is never any obvious guide of how to program. I picked up UE3 SDK quickly but that is because there was like 30GB of tutorials on it, where can I do the same for this SDK?
Thanx.
You learn visual C#/B/C++. You do not directly use the SDK, you use the development tools in it
Venekor said:
So how do you learn how to use an SDK? I've always had an interest but there is never any obvious guide of how to program. I picked up UE3 SDK quickly but that is because there was like 30GB of tutorials on it, where can I do the same for this SDK?
Thanx.
Click to expand...
Click to collapse
First learn Silverlight/C# and then read the SDK documentation,
To put it in simple words SDK just gives all the functions that u can use on Windows Phone.
Typically, if you learn any C# API (other than windows forms) you will learn all the others. They are very similar to each other, only some few twinks here and there due to platform differences.
---------- Post added at 11:46 PM ---------- Previous post was at 11:28 PM ----------
The SDk is bugged, emulator does not work. Says it wants virtualization and my PC doesn't have it, when it clearly does. Both Android and Windows Phone 7.5 emulators work fine.
Kinda failish...from Microsoft.
oh well...the SDK system requirements are pretty damned huge. My CPU does not support SLAT apparently...
So I can just go to the Visual Studio website and follow the tutorials there? I have bad eye sight so I learn better from videos and listening instead of reading lots of text which takes me far longer to do. Luckily typing is easier as you know what you're typing on the keyboard so you don't have to pay as much attention on reading the text on screen.
Your processor needs SLAT support (extended Virtualization) also called VT-x by Intel. It is available from the Core i3/i5/i7 processors or newer AMD processors. This is due to the fact that the WP8 Emulator relies on Hyper-V instead of VirtualPC which was used for WP7. So if you have a Core 2 processor your hardware does lack required features. This is not a bug in the SDK.
On learning development of WP Apps there are series that take you around the SDK like this one: http://www.jeffblankenburg.com/2010/09/30/31-days-of-windows-phone-7/ It's still for WP7 but almost everything said there still applies for WP8, although in WP8 it was much extended. There are also Development Webcasts and Hands-On Labs you can try out. You can Google for those - there is lots of content on the topic.
But as was said before - it would be beneficial to know some C# beforehand.
I keep installing the SDK but visual studio express 2012 for windows phone doesnt appear in my start menu, says everything is installed fine, Any ideas?
Edit:btw using windows 8 x64 Evaluation Version
Do you have a regular version of Visual Studio 2012 installed? In that case the SDK integrates itself with the regular version and just adds the project type there.
StevieBallz said:
Do you have a regular version of Visual Studio 2012 installed? In that case the SDK integrates itself with the regular version and just adds the project type there.
Click to expand...
Click to collapse
That will be the one,, Cheers for reply.
Since no college near me teaches any programming and I have to work, I better start teaching myself.
Can any one tell me where to start?
Thanx.
Venekor said:
Since no college near me teaches any programming and I have to work, I better start teaching myself.
Can any one tell me where to start?
Thanx.
Click to expand...
Click to collapse
https://dev.windowsphone.com/en-us
http://www.windowsphonegeek.com/Resources
http://www.freebookspot.es/Comments.aspx?Element_ID=259285 (book)
Does WP8 have any new ringtones/notifications or wallpapers?
I dunno if that stuff would be in the SDK, but it'd be cool to have a dump of those files.
Weird Visual Studio basically does everything for you, I was expecting you'd have to make everything from scratch. Not what I wish'd for really as I did want that experience, those guides don't teach you how to understand the language, just how to create something quickly. Kinda like when you were at school reading from a text book and they never taught you the foundations of how to create your own sentences, always taught pre existing ones.
You can look for manuals for Visual C# around the web, there are a couple of free ones created by Microsoft, but you won't find any videos.
Once you understand the basics, it will be pretty easy to get started on creating complex apps. This is the beauty of C#
can anyone give me MD5 or SHA-1 hash of the iso? thx.
If you want to learn programming from the ground up I guess it would be best to start with a regular book on programming with Visual C# 2010 or something along those lines (2012 books are still rare I guess).
The problem with starting out on Smartphone platforms is simply that there is nothing like Console programs that allow you to easily experiment with language features without having to care a lot about more complex concepts like asynchronicity, Event-models, data-binding, etc.
While I can do a simple:
public static void main(String[] args) {
Console.WriteLine("Hello World!");
}
on the Desktop to arrive at a program that outputs those famous words to the screen on the phone it is more like with a PCs GUI programming.
There you have to instantiate a Window (or Page on the Phone), place a Label control (both of which are classes) and assign a property of the label to the text. Algorithmically a lot of information is hidden in those classes. This is mainly due to the fact that during actual development people don't want to and don't need to care about the details behind those things but for learning how to do things the effect is pretty devastating.
So my suggestion would be: Take a book on C# development and work through the basic concepts of Methods, Classes, Properties, EventHandlers and then before diving into the details of WinForms development switch over to the Phone SDK and acquaint yourself with the workings of the according UI Toolkit.
how can i tell if my computer has a processor that supports Second Level Address Translation (SLAT)
my laptp is intell pentum and my desktop is amd phantom x4?
Your laptop won;t support it.
I am not entirely sure about the AMD though.
There is a tool for that in the SDK download page.

Categories

Resources