Are there any conversion apps available that can convert VB6 to Windows CE.5?

Are there any conversion apps available that can convert VB6 (or VB.Net)  to Windows CE.5?
Using VB6, I have prototyped an app for a hand held scanner (CipherLab 9300) and am looking for the best way to convert that code to CE.5. (I could first convert the VB6 to VB.Net if necessary)
My plan is..
* Find a Conversion app to produce a crude CE translation..
* Buy a Win CE.5 for Dummies book? and work thru the refinement of the CE code.
One colleague mentioned there are "out-sourcing" programmers (eg programmingbids.com) that would do this sort of work far more efficiently and cheaper than I could do it myself.. Is that wise advice?
LVL 5
BrianVSoftAsked:
Who is Participating?
 
hjgodeConnect With a Mentor Commented:
Hello

VS does automatically convert VB6 code to Full Framework VB.NET code.

The full and the compact framework share the same functions, but the comapct framework (version 2.0 or 3.5) often does only support one function call (the one with the most options to set) whereas the full framework offers different overloaded calls.

After the conversion you have to start a new smart device project in VS 2003/2005/2008 (express versions of VS do not support SmartDevice development, VS2010 does not support Windows Mobile development).
Then you have to copy the classes and functions from the converted project to the smart device project.
You have to rewrite code that does not build with compact framework.
You have to redesign dialogs, as mobile devices often only support QVGA resolution.

A good startet book is Programming the compact framework by Paul Yao. You will find it possibly at flazx dot com.

~josef
0
 
Mikal613Connect With a Mentor Commented:
There is no way directly. Usually a) you can use the .net converter from vb6 to .net or the best way is to rewrite it.
0
 
Bob LearnedConnect With a Mentor Commented:
If you have no formal understanding of Windows CE, then outsourcing may be a good option, but that really depends on who you get, so you would need to be able to know what you are getting (i.e. strong references).
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
BrianVSoftAuthor Commented:
If I convert to VB.Net first,
1. How compatible would that code be to the CE Compact Framework? Ie. cut and paste the function contents?
2. What is this language called? (Compact.Net? CE Compact Framework?)
3. Any links to a good learning tutorial or on-line book? (It's only a small app (1000 lines), it would be good to learn Compact.Net as I go.)
0
 
Bob LearnedConnect With a Mentor Commented:
VS.NET 2010 does not have a migrator for VB6 to VB.NET any more, so you would need an external tool.
0
 
hjgodeCommented:
And vs2010 is not the development tool to use for windows mobile or windows ce development. VS2010 only supports Phone 7 development (except the other desktop development languages).

So for Windows CE VS2010 is NOT an option!
0
 
BrianVSoftAuthor Commented:
Thanks Guys..
Hi Hjgode.. Your comment.. "vs2010 is not the development tool to use for windows mobile or windows ce development."
I will be using VB2008 & the "compact framework" for now - but, with the future in mind, what are the  'current' preferred dev-tools if you don't have VB2008? Where does C-Sharp fit into this?
(I am developing hand-held scanner warehouse/inventory apps)

0
 
Mikal613Commented:
You can get VS2010 and develop Windows Phone 7 apps. That is the current style of Windows Mobile dev.
0
 
Bob LearnedConnect With a Mentor Commented:
If you are stuck with Windows CE, you shouldn't use 2010.  If you are working with VB.NET, then you don't need C#.  If you want to work with Windows 7, then 2010 is definitely the better choice.
0
 
hjgodeConnect With a Mentor Commented:
Hello Brian

as you mentioned "Windows CE" and Warehouse/Inventiry, you are in an environment that needs normally ruggedized devices. These devices come with Windows Mobile, Windows CE or Windows Embedded Handheld. Phone 7 is definitely not an OS for comercial, professional use in a warehouse. Phone 7 does NOT support native programming and you will have trouble porting an app from the first listed OS versions to Phone 7 cause the devlopment environment is titally different (it is more targetted for a phone use and supports the XNA (gaming) framework.

Microsoft will still support native development and the commercial use of Windows Embedded Handheld (former Windows Mobile/Windows CE) for all professional use.

Phone 7 is definetly NOT for warehouse use. You have no option to write a kiosk mode application, etc...

~Josef
0
 
hjgodeCommented:
Brian, some more notes

"I will be using VB2008 & the "compact framework" for now - but, with the future in mind, what are the  'current' preferred dev-tools if you don't have VB2008? Where does C-Sharp fit into this?
(I am developing hand-held scanner warehouse/inventory apps)"

You are not using VB2008, you have VS 2008. You cant use any of the express versions of Visual Studio 2005 or 2008 for SmartDevice development. The SmartDevice target is only available in non-express versions of VS 2005 / 2008.

Using VS 2005 or 2008 you can decide for C/C++, VB.NET or C# on project level. You can even mix these program langauges in a solution.

You can start with VB.NET and port your app. Later you can change to C# by using any of the free online converters for VB.NET<=>C#. But you dont need to change your preferred programming language to target for Windows CE.

If you dont have VS2008, you may go with the free SharpDevelop. I heard that you can write C# code for Compact Framework. But to do prof. programming I recommend VS2008. No one currently knows what the next 'native' capable programming tool of MS will be called. But MS will support 'native' development and Windows Embedded Handheld for the next years. Many companies have invested a lot of money in developing for Windows CE, Windows Mobile and Windows CE based ruggedized devices by Intermec, Motorola, Psion and more vendors.

See also http://www.microsoft.com/presspass/features/2010/jun10/06-17enterprisehandheld.mspx

Is VS2008 a problem for you?

~josef
0
 
BrianVSoftAuthor Commented:
Thanks everyone..
I find it very depressing that no one can expect to use the same microsoft platform for the next 5 years! It can take 5 years to "workaround" the major bugs!
Microsoft is like the Dark Side.. "Hard to see, the future is.."  
Most large business systems (5 million+ lines of code) are an evolutionary thing and take 20 year to "perfect".. Microsoft doesn't seem able to provide a stable development language for more than 5 years! And they can't understand that having to re-write a few million lines of code every 5 years is a bad thing!. They call it progress!
0
 
BrianVSoftAuthor Commented:
Thanks everyone..
I find it very depressing that no one can expect to use the same microsoft platform for the next 5 years! It can take 5 years to "workaround" the major bugs!
Microsoft is like the Dark Side.. "Hard to see, the future is.."  
Most large business systems (5 million+ lines of code) are an evolutionary thing and take 20 year to "perfect".. Microsoft doesn't seem able to provide a stable development language for more than 5 years! And they can't understand that having to re-write a few million lines of code every 5 years is a bad thing!. They call it progress!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.