Visual Basic for Windows Mobile ? - General Topics

is it possible to use VB.NET to make simple applications for windows mobile (5/6 ?) devices ?
I'm pretty good with VB and I recently got into VB.NET and I'd love to make simple applications for my XDA Flame !
if it's possible, are there tutorials explaining the basic/ difference from making a desktop application ?
thanks !

shodanx said:
is it possible to use VB.NET to make simple applications for windows mobile (5/6 ?) devices ?
I'm pretty good with VB and I recently got into VB.NET and I'd love to make simple applications for my XDA Flame !
if it's possible, are there tutorials explaining the basic/ difference from making a desktop application ?
thanks !
Click to expand...
Click to collapse
i never tried .NET 03, but i have 2005 installed and use it regularly. Just create a new project and under Smart Device choose your OS. If you're already familiar with VB6 and VB2005 then it should be a cinch. You can find some guides here http://msdn2.microsoft.com/en-us/windowsmobile/default.aspx.

Hi,
thanks for the quick answer
I have visual basic 2008 express edition
can this version make WM5 apps ? or do I need the full version ? (I have the full 2005 but I prefer this version because it's "lighter")

shodanx said:
Hi,
thanks for the quick answer
I have visual basic 2008 express edition
can this version make WM5 apps ? or do I need the full version ? (I have the full 2005 but I prefer this version because it's "lighter")
Click to expand...
Click to collapse
Wow i guess I'm behind, i thought 2008 was still in beta. I'm downloading it now and I'll know for sure in about 20 mins. I'm not sure exactly what they cut out in the express editions.

imo u cannot with the express edition, u require pro edition.

shaileshashar said:
imo u cannot with the express edition, u require pro edition.
Click to expand...
Click to collapse
Seems like you're right...

shodanx said:
Hi,
thanks for the quick answer
I have visual basic 2008 express edition
can this version make WM5 apps ? or do I need the full version ? (I have the full 2005 but I prefer this version because it's "lighter")
Click to expand...
Click to collapse
Well, yes and no.
It doesn't allow you to make WM apps, however the compiler CAN produce WM apps.
This mean that you can use your "express" environment to produce a standard application, taking care that the form has the correct size for your PDA, and then you can try compiling it specifing the .NET libraries on your device instead the regular ones.
If the code you produced doesn't use any feature strictly related to the regular .NET Framework version, it will compile.
Take a look here:
http://www.jargoncode.it/tips/netcfcompile-eng.htm
Still, remember that this will make programming more difficult and that you cannot benefit of debugging features and so on. If your needings are simple, this solution may be good. If your needings are complex, then I suggest using "non express" versions of Visual Studio.

Related

difference between smartphone and PPC software tat i don understand..

Can a PPC software use in a Window mobile based smartphones?
are they functioning like in the PPC?
Can the *.cab file used for PPC use in smartphones?
I was just about to answer you, but then I go to the last line of your message.
We do not deal with WAREZ and craks here.
and
sthg about software tat i don understand..
Click to expand...
Click to collapse
is something that I don't understand
ok, prehaps i shouldn't ask it tat way... actually the main thg is i just wanna know if there is any possiblity tat we can use PPC softwares on Window mobile based smartphone?
That would depend on the software and the device.
Some will run, some you won't be able to use without touch screen and some will need extra components.
you can try...it's all winCE...
I know some of my old smartphone software works o.k. on my PPC, but PPC is like smartphone's bigger brother: with extras (touchscreen, others, etc.)
The screen is broke on my smartphone now but I seem to remember installing some stuff meant for PPC on there back in the day with varying results. I think some did work, but not a lot worked nicely.
AFAIK you need to port, change a few things (like have no touchscreen input) for a reliable result.
it being winCE is not always enough
binary files are spc for the cpu they were compiled for
but if they have the same cpu and the same libs
it would work
another matter is .net and java they are not written for a spc cpu but for the framework
http://mobile-enthusiast.blogspot.com/2007/01/how-to-run-pocket-pc-applications-on.html
Rudegar said:
http://mobile-enthusiast.blogspot.com/2007/01/how-to-run-pocket-pc-applications-on.html
Click to expand...
Click to collapse
Excellent article. Note that, however, it states all PPC apps run on a Smartphone w/ SPHelper ("Does this mean that they will run the same software? / Yes and no. All Windows Mobile devices (Smartphone, PPC, PPC phone edition, etc) can run the same actual executable code (.exe files) as long as it has been written for a Windows Mobile device. However if you actually try to install PPC software on a Smartphone (or vice versa) using Activesync, you might get an error message stating the device is incorrect and it will refuse to do anything."). This is, however, not really the case. See my related articles and hacking reports - in the articles I've posted in the last 2 weeks, I've posted a LOT of info on interoperability issues.
As a rule of thumb, about 10% of native (NON-Compact Framework-based) PPC programs can be hacked to work on a QVGA Smartphone. On a 176*220 one, even fewer.
bjy8138 said:
Can a PPC software use in a Window mobile based smartphones?
are they functioning like in the PPC?
Can the *.cab file used for PPC use in smartphones?
Click to expand...
Click to collapse
Make sure you don't miss ANY of my articles. They are ALL in this very "General" forum.
I've published a LOT of information on these subjects, listing all the compatible software and how they can be hacked.
there should be a special forum for them since there are soo many they cant be sticky
some might get pushed far back
Rudegar said:
there should be a special forum for them since there are soo many they cant be sticky
some might get pushed far back
Click to expand...
Click to collapse
Yup, that's a problem.
I'll some time collect the links and put them all in the Wiki so that they are easy to find.
off topic
I'll some time collect the links and put them all in the Wiki so that they are easy to find.
Click to expand...
Click to collapse
something like that'd be good, I think we all appreciate informative articles and in-depth tests ...thanks!

Smart Device Programing

Hi,
I am new to windows mobile, i m using HTC s710, and i would like to develop some applications for my mobile. basically i am a developer, i just want to know which one is the best book, or where can i find the smart device programing books...so please let me know, if any one knows...
Thanks in advance...
kgeswar44 said:
Hi,
I am new to windows mobile, i m using HTC s710, and i would like to develop some applications for my mobile. basically i am a developer, i just want to know which one is the best book, or where can i find the smart device programing books...so please let me know, if any one knows...
Thanks in advance...
Click to expand...
Click to collapse
Most apps can be developed using Mircosoft Visual Studio. You can download free versions here (http://www.microsoft.com/express/). Although they might not support mobile development I can't remember it's been so long since.
As for books, I am prety much self taugh other than the odd C# book to get me going.
Dave
DaveShaw said:
Most apps can be developed using Mircosoft Visual Studio. You can download free versions here (http://www.microsoft.com/express/). Although they might not support mobile development I can't remember it's been so long since.
Click to expand...
Click to collapse
Having just checked out how to start WM6 programming yesterday, the requirement is Visual Studio 2005 or later (professional for touch devices I think). Express wont work.

getting started in programing for WM6. pls advise

hi folks,
i love my phone and will like to contribute...
i studied years ago turbo pascal but i figured that programing languages basically have similar flows?
i will like to seek advise from pros on how do i get started?
can i
1) know what programing language or tools do i need?
2) know what are the usual errors or problems so that my climb will be easier?
i am really sincere and i hope the pros can take some time to advise me...
yours
leo
I would say, the easiest way to do some application pgrogramming, is to use the Visual Studio 2008(Tool) and C#(language). The platform is .Net framework 3.5.
You can download the latest Windows Mobile emulators, and use it along with Visual studio to test and debug your programs. Once you are satisfied with the program, you can build the cab using Visual Studio(which you can install on the real windows mobile device).
Please post specifics if you need more info. I am sure most of the poeple here are willing to help!
Please try the search function before posting even though this is the Q&A section
This question was just asked: http://forum.xda-developers.com/showthread.php?t=452400
sorry bro . . .
its fine, just figured you might find a little information quicker there
ok specific Q can i rely solely on "WYSIWYG" interface? rather than hardcode like C etc?
Nope. Solely WYSIWYG won't get you anywhere.
But you can use it. For example the CompactFramework.Net (CF.Net) has a WYSIWYG interface, but the underlying functionality you'll have to write yourself.
If that is what you meant...

Visual Studio requirement question

I'm a little bit confused and I hope that someone can answer my (I assume)
easy question:
Which edition of Visual Studio is needed for Windows Mobile 6 SDK
development? I'm already considering to update to VS 2008 but I'm not
sure if the Standard Edition is sufficient or if I need the Professional Edition
(which is considerably more expensive).
My confusion arises from the fact that on the download page
for the WM 6 Pro SDK it's stated that VS 2005 Standard and newer are
working. However, on the product comparison page (comparison of
editions), at
http://msdn.microsoft.com/en-us/vstudio/cc149003.aspx
under "Smart Device Development" it is stated that the emulator and the
project templates are not part of the Standard edition.
Well, now I'm really confused. I hope someone can shed some light on this.
Sorry, if this question has already been answered somewhere on the forums -
I didn't find any accurate answer (the sticky thread "Development Resources for Windows Mobile" only tells me that there is a trial edition available for download - but that doesn't answer my question). And all other questions
similar to mine seem to have been answered with something like "... get VS 2008 ... " - but without mentioning any specific edition.
Michael
i'd prefer Visual Studio 2008 Professional, works with EVERY Device
*edit* : oh and with Standard Edition, yuou cant work for SmartPhone
if you haven't installed the wm sdk
smart device is .net apps
.net apps using the compact framework
dont require the wm sdk at all
you only need the sdk if you write pure c++ win32 or old microMfc using c++
Thanks for the quick reply. Unfortunately the limitations suck.
Since I'm also planning to code plain Win32 it seems I'd need the
Pro version if I'm planning to upgrade to VS 2008.
I just visited the WM SDK download page again and just recognized that
they didn't write VS 2008 Std. but VS 2005 Std.
So, my new question: can someone tell me whether VS 2005 Standard
is sufficient?
Michael
worked just fine for me with 2005 and sdk wm6 std and wm6 pro
Thanks again for the quick and accurate help. Seems like now comes the
tricky part - finding someone still selling VS 2005.
Michael
^ You could take a look at using SharpDevelop..
http://www.codeproject.com/KB/mobile/WiMoSansVS.aspx
[deXter] said:
^ You could take a look at using SharpDevelop..
http://www.codeproject.com/KB/mobile/WiMoSansVS.aspx
Click to expand...
Click to collapse
I already looked into that, but there are two problems: first, I'd like to program
in C++ and second, as far as I know when using SharpDevelop I've no debugger
at hand.
Thanks for that hint anyways.
Michael
Embedded C++ 4.0 will still work with WM5/WM6. And can be downloaded free. If you stick to good old Win32, no ATL or MFC, it will create one single executable, with no extra runtime baggage. All the DLLs it needs are already on your device. It may complain that the generated executable will not run on your target device, but it will, it's lying. Target for ARMv4 and there is a good chance it will work. The emulators in the WM5 and WM6 SDK's now actually run the ARM executables direct, so you can test your app to a release level without having to load it on the device.
If you keep main menu options down to one or two, it will appear like all other WM6 apps with the menu options connected to the left and right menu buttons. More than two and the menu appears as the older WM2003 control bar.
Thanks again people for all the help and suggestions. Fortunately (after
many hours of searching) I finally found someone selling VS 2005 Std.
Michael
As mentioned above, the Standard versions of VS2005 and VS2008 cannot target mobile/smart devices.
You will need the Professional Version.
You get what you pay for.

[QUESTION] What is the diference between .NET 3.5 & .NET 3.7?

Hello All!
On my travels yesterday I happened to come across a cab for .NET 3.7...
Haven't installed it as never heard of 3.7 being out..
Is it real? Are there any added benefits?
Thanks in advance!
can u post the link or a cab. ?
As requested..
Here you go,
Any Ideas? Thought maybe it might be for cooking rom's but not sure...
.NET Compact Framework 3.7 leaked to public?
Are you sure you've got an authentic .Net Compact Framework version? The next version of the desktop framework is 4.0 and the compact framework usually follows the desktop version. I'd be a bit suspecious about what ever it is that you have that is labeled as version 3.7.
Zauroman said:
Are you sure you've got an authentic .Net Compact Framework version? The next version of the desktop framework is 4.0 and the compact framework usually follows the desktop version. I'd be a bit suspecious about what ever it is that you have that is labeled as version 3.7.
Click to expand...
Click to collapse
I think we all know i've not found it off MS website. Just happened to be in a list of cab's i was looking through. I didnt think it was a tru MS certified. I have since tho googled it some more and got lead to a thread on xda for rom cookers.. must have some truth behind it?
Just hought it was all a bit strange..
CF 3.7 beta is available for some time now on forums though not publicly aknowledged
Patchank said:
CF 3.7 beta is available for some time now on forums though not publicly aknowledged
Click to expand...
Click to collapse
Awsome, some one who seems to know about it!
Any added benefit? whats the diffrence?
snowblind2142 said:
Awsome, some one who seems to know about it!
Any added benefit? whats the diffrence?
Click to expand...
Click to collapse
I have been using this for a long time now. I had it on my Diamond2 and currently have it o my HD2. Didnt realise much difference to 3.5.....so your not missing much!
rumz82 said:
I have been using this for a long time now. I had it on my Diamond2 and currently have it o my HD2. Didnt realise much difference to 3.5.....so your not missing much!
Click to expand...
Click to collapse
Thank you! All I wanted to know!
3.7 is 0.2 more
reubenbubu said:
3.7 is 0.2 more
Click to expand...
Click to collapse
lol This is true..
I wont lie, part of me is still curious whats in the extra 0.2...
snowblind2142 said:
Awsome, some one who seems to know about it!
Any added benefit? whats the diffrence?
Click to expand...
Click to collapse
slightly better performance though some appps are buggy with it while running fine with CF3.5 ...
can't tell you what differs between the 2 versions though, sorry
Patchank said:
slightly better performance though some appps are buggy with it while running fine with CF3.5 ...
can't tell you what differs between the 2 versions though, sorry
Click to expand...
Click to collapse
Thanks for sharing your experience with it
??
what is net cf main function?
i'm sorry with this stupid question..
Not 100% sure..
amrimy said:
what is net cf main function?
i'm sorry with this stupid question..
Click to expand...
Click to collapse
I'm no pc whiz but as far as I know it lays the foundations behind windows for programs to better plug in/communicate with each other.
Please correct me if i'm wrong
I know that all the fun apps and games dont work without it
amrimy said:
what is net cf main function?
i'm sorry with this stupid question..
Click to expand...
Click to collapse
You need it whenever a programmer has written their program (e.g. a phone app) using one of the .Net programming languages. Similar to how you would need Microsoft windows to be running on your pc if you wanted to run (the windows version of) Microsoft Office. The .net programming languages are not the only option when writing programs, but they're very popular so that's why you find lots of things won't run without the framework.
Technically the framework is a bit like a translator sitting between two people who don't speak the same language, but who want to communicate with each other. The .net compact framework is the translator sitting between programming languages that programmers understand (and like to write in), and the language that the underlying circuitry of your phone (and the operating system) understands. It also does lots of safety checks whilst programs are running to ensure that e.g. when a program crashes it doesn't crash your entire phone, and that programs don't try and do things they shoudn't (e.g. security risks).
It is possible to write programs (e.g. a phone app) that doesn't need the .net compact framework - and programs that don't use it can sometimes run faster than those that do! (because they miss out the 'translation' step). The advantage of using it, however, is that it does a lot of things for the programmer to make things quicker and easier - helps them avoid reinventing the wheel, some very complex tasks are already done for you, programs are less likely to crash / are more reliable, and can 'talk' to other programs much more easily.
The cleverest bit (for me as a programmer) is that I can use the same (.net) programming language to write web sites, windows mobile apps, windows phone 7 apps, and programs for microsoft windows. It used to be that you would have to learn something completely different for each.
Hope that helps.
Ian

Categories

Resources