Hi,
Before people reply with "use VC++ instead": I don't have the time and willpower to look into VC++ programming.
Anyway, I was fiddling around with embedded VB and the lack of DoEvents is a great limitation!
Is there any way around?
Also, is it just me, or is VB extremly slow on PocketPC?
Finally, all I got was a file with *.vb extension, which would get executed inside the PocketPC. Shouldn't it be possible to compile to *.exe?
Thanks,
vma
i think the new vb .NET is about as fast and have the same support of evens and such as C# .NET
of cause both would still be slower then pure win32 in c++
Related
Any chance someone can give me some information on how to get started. I'd like to start looking at developing software for the XDA II but don't know where to start.
Rob
Microsoft site:
http://www.microsoft.com/windowsmobile/resources/downloads/developer/default.mspx
Thanks alot, is there any real programming knowledge required or is it pretty intuitive?
Any help is much appreciated
Rob
Downloaded the eVC++ 4.0 and it's asking for serial details but I didn't see a Buy Now or anything. Do I have to register, is this free or do I have to pay?
Rob
Check out those valuable resources..
Pocket PC Developer Network:
http://www.pocketpcdn.com/
Windows Mobile Bloggers:
http://winmoblogs.net/
TinyGL:
http://www.opentribe.org/PocketTribe/TinyGL.html
for eVC++ 4.0, use this serial:
TRT7H-KD36T-FRH8D-6QH8P-VFJHQ
its FREE, but needs a serial :wink:
thanks alot, is there any real programming knowledge required or is it pretty intuitive?
Click to expand...
Click to collapse
if you never programmed before then vc++ will have a steeper learning curve then vb
but imho then programming is never truly intuitive
I've done web design and VB programming before and found both to be easier when using a little common sense
Thanks alot for all your help, keep anything coming that you think will be useful, it's much appreciated
Rob
visual studio can make vb applications for pocketpc i seem to recall
it cant make c++ or c# applications for pocketpc not sure why
if you want to make thos you need embedded vc++
All,
I've heard a few people around here saying that they develop in raw C so the don't have the MFC stuff to worry about. Can anyone tell me what compiler they used to compile raw C to work on Pocket PC or does eVC4 do it
http://mifki.ru/pocketgcc/down.html
gcc for pocketpc it's not raw c but i suppose you could call it raw c++
you also got the option of programming using .net from c# and c++ and vb if you dont like mfc (which many people dont)
True, but going down the .net route means forking out more money than I care to for a hobby.
Hi all,
Generaly, I am Symbian programmer but i will have a look at Pocket PC side... so I am not bloody beginner :wink:
Jep.. I wrote/clicked a C# application with .Net 2003 (very comfortably!!). I saw fast that I have to use C++ to reach interesting APIs.
I know its possible to call (C++) DLL from C# so I can let the frontend in easy C# and can use C++ to get more functionality.
Other than for C#, I couldn't find a "Smart Device" template for C++ in .Net 2003! Someone can tell me, which kind of template I have to use for programming a PocketPC C++ DLL? Is it in .Net 2005?
Thanks a lot!
BR eidelen
Hi,
I thin VS.NET 2003 can only produce managed and x86 native code, so writing for the arm platform was not build in. Your solution would be to use Embedded Visual C++4 which is available free from Microsoft, or to answer your second question I *think* VS.NET 2005 does include the ability to write unmanaged code for smart devices.
Paul
Hi Paul,
Thank for your fast answer! I found it in ".Net 2005" and first DLL-prototypes running!
Now I have some other problems concerning callbacks from native unmanaged DLLs, but I will create a new topic about it.
Thanks a lot!
BR Adrian
I'm sure I can learn a lot of this at microsoft.com --
Which compiler and add-ons do you install to get started with writing apps in VB and VC?
Are the only tools VB.Net and VC# ?
Phoney said:
I'm sure I can learn a lot of this at microsoft.com --
Which compiler and add-ons do you install to get started with writing apps in VB and VC?
Are the only tools VB.Net and VC# ?
Click to expand...
Click to collapse
You should forget .NET under Pocket PC...it is painfully slow. The only option is C++, which for you can use either the free Embedded Visual C++ 4, or Visual Studio 2005.
Thanks!
And does this mean that I should forget about using Visual Basic for anything as well?
Phoney said:
Thanks!
And does this mean that I should forget about using Visual Basic for anything as well?
Click to expand...
Click to collapse
Indeed... eVB is not supported on WM5 anyways (at least not officially...and eVB is not too powerful either).
Agree with KTamas! For now, VS2005 is the BEST tool perhaps.
is ws2005 also mfc and win32 stk or only .net like 2003 was ?
Hi Rudegar!
VS2005 works with MFC and Win32 for both PC and mobile devices. It also claims to support WM2003 SDKs but I was unable to compile an exe with it that would run on a 2003 device (although I tried adding WM2003 SDK to an existing WM5 project so maybe I just go the settings wrong)
Yes, vs2005 do support pure WIN32 programming in WM2003, I wrote two or more app for PPC-6600, it works fine.
Isn't C# compiled during first execution (it takes time, so startup is long) and then it's as fast as C++?
Marx2 said:
Isn't C# compiled during first execution (it takes time, so startup is long) and then it's as fast as C++?
Click to expand...
Click to collapse
No. It starts up slowly cause it has to load the Compact Framework into the memory. .NET (therefore C# included) apps are compiled while they are running, they are running on a JIT-compiler (Just-in-Time).
Instead of MFC, I recommend using the Windows Template Library (WTL) -- it's a set of C++ template classes for Windows UI elements, and is CE-friendly. I've used it on big Windows for many years; IMHO it's much better than MFC.
Isn't effect of JIT compiler cached?
I think JVM can do that. There is also an option to compile permamentaly to exe (this lacks portability)
Can I develop software to WM5 but no .Net frameworks ?
Of course!
In fact it is much better to use native code on WM devices because it is faster and takes up less resources.
If you already know C / C++ go to MS site and download the free eMbedded C++ 4 and the Pocket PC 2003 SDK (don't mind the OS version).
Also if you have VS 2005 download the WM 5 SDK and create a smart device project in C++.
1 cool think about .net though is i had a sudoko or whatever it's called
program for pda and the same exe workd on pc too
but all in all .net is a slow as java though on pocketpc the .net maybe better implemented then the java vm's
levenum said:
Of course!
In fact it is much better to use native code on WM devices because it is faster and takes up less resources.
If you already know C / C++ go to MS site and download the free eMbedded C++ 4 and the Pocket PC 2003 SDK (don't mind the OS version).
Also if you have VS 2005 download the WM 5 SDK and create a smart device project in C++.
Click to expand...
Click to collapse
hi levenum,
i have VS 2005 and WM 5 sdk installed.
well my problem is C++ which i never read seriously but i have a good
working base of C on which i had developed two simple game.
How can i implement the code in VS2005/WM5SDK with minimal
interaction of C++ ?
How can i get working base on VS2005/WM5SDK?
Can u suggest me a tutorial or any free book?
with c vs. c++ it's really much the same ++ is just an expansion with nativ class and other object orientented features
any c program should be able to compile using a c++ compiler
but i doubt you can write CE programs or even windows programs without using any kind of class related code
heck you cant even do that in basic (evil language) or c#
the internet is soo full of free programming stuff it's not even funny
buying paper books is a thing of the past imho unless you want to read while on the toilet and dont have a laptop or pda
http://www.brpreiss.com/books/opus6/
good googling for more
Actually, except for M$ nasty invention called "COM" there is nothing in Windows API that requires C++.
In fact I rarely use classes unless I am building an MFC app to save time.
Also, (can't remember the link for the life of me) but there is some way of accessing class objects in pure C using some struct tricks.
So basically you can leave fine without the ++, but you may need to work a little harder.
You should just create a basic smart device project. VS will generate a "hello world" app for you and you can see how it works. Moving from C to C++ should be very easy.
It's C# that is no longer a real programming language
P.S.: Did you know most of Win CE DLL are actually written with ANSI C?
levenum said:
Actually, except for M$ nasty invention called "COM" there is nothing in Windows API that requires C++.
In fact I rarely use classes unless I am building an MFC app to save time.
Also, (can't remember the link for the life of me) but there is some way of accessing class objects in pure C using some struct tricks.
So basically you can leave fine without the ++, but you may need to work a little harder.
You should just create a basic smart device project. VS will generate a "hello world" app for you and you can see how it works. Moving from C to C++ should be very easy.
It's C# that is no longer a real programming language
P.S.: Did you know most of Win CE DLL are actually written with ANSI C?
Click to expand...
Click to collapse
thanx,
i had already compleated "hello world"
and C++ is really not much away from me
actually i only have a single problem:
How can i get working base on VS2005/WM5SDK?
Click to expand...
Click to collapse
well i think it is more exactly Win CE API knowledge which i require.
How Do I Start Cooking Roms
I Know A Bit Of C++ ,how Do I Start Cooking My Own Roms
tawanda: first off - your question has nothing to do with this thread, if you have an unrelated question you should start a new thread BUT search first to make sure it was not asked and answered a 1000 times!
As for your question - cooking ROMs is not programming - it helps to know a programming language but what you really need to do is familiarize your self with the tools used to pack and unpack as well as dump and flash ROM images.
Note that these tools are different for different devices or at the very least need to be configured differently.
I recommend you start by reading the WiKi.
After some years of absence from the programming world I think now I've time enough to start again. I'm familiar (but a bit rusty) with assembler, C and C++, but I think I have start more or less from the beginning.
I already installed Visual Studio 2005 and the WM05 and WM06 SDK. Now I'm not sure whether I should use C# or C++. The big difference is that C# needs compact framework?
Your question is mainly a matter of personal preference.
Here is my opinion on C++ vs. C#:
C++ advantages:
- Native code is faster than .NET
- Easier access to Win32 APIs
- Ability to write system components like keyboards and today plugins.
C# advantages:
- Saves on coding time
- Allows use of many .NET CF components to quickly accomplish complex tasks.
Please note that I am bias. I hate .NET and want nothing to o with it. Specially on mobile devices that do not have the processing power to spare for the .NET overhead.
I second levenum's recommendations -- I've been programming big Windows for 15 years and have managed to avoid .NET. Of course most of what I do these days is NDIS driver programming, so it's mostly straight C, with C++ for supporting user-mode code.
Avoid MFC -- it adds a bit of overhead which is OK for big Windows, but not for WM. If you're going to use a C++ framework, I highly recommend using ATL/WTL -- it's what MFC wants to be when it grows up.
I'm looking at my visual studio 2005 and wanting to covert my c# application to C++...
I clicked on a new project and i'm looking at the various options in Visual C++ for Smart Devices. There are a few to choose from... how do I know which one I want to choose?
ATL Smart Device Project
MFC Smart Device Application
Win32 Smart Device Project
MFC Smart Device ActiveX Control
MFC Smart Device DLL
Can you guys tell me the difference between those options and which I should use to develop for WM6?
Thanks,
Derek
imho then a good pro of c# vs. c++ is the nice object lib that .net give
mfc is pretty crap in every respect and if you do pure stk
it's more work to make it object orientated
"ATL Smart Device Project
MFC Smart Device Application
Win32 Smart Device Project
MFC Smart Device ActiveX Control
MFC Smart Device DLL"
depend on what you want to do
i mean DLL is not a program but a lib that other programs can access
but then today items are dlls
win32 is pure win32 stk where you pretty much have to do all the prev work to get your application up and running
mfc is microsoft foundation clases it's an somewhat dated object lib from ms which makes making an application faster it pretty much give you a dialog and let you place components such as button on it
ActiveX is an somewhat evil internet programming platform
atl http://en.wikipedia.org/wiki/Active_Template_Library
you can prob find more info about everything you want more info about
from wikipedia too
thanks for the info rudegar!
Hi there,
I'd like to do some Windows Mobile development but, quite frankly, I do not have the time or energy to learn Visual C++.
I'm good with Perl, PHP and Visual Basic and au fait with Windows Mobile - so the concepts of development on this platform aren't an issue. It's just simply a case of learning C++ does not fill me with any kind of excitement.
I looked at eVB, but its ancient and lacking in many respects. I thought about Visual Basic .NET but there appears to be no documentation around - you can't even buy a book on Windows Mobile development with it.
Any suggestions on something I can use which doesn't have a steep learning curve and allows me to get on writing useful things without spending the next 2 years learning dull stuff?
Thanks.
any of the c languages would be the best as they are native to winmo. you can use vb.net and it will work just fine. i have developed a few simple apps with vb.net and am working on one now i hope to release on here when i am finished. i am in the process of furthering my knowledge of vb.net and also learning asp.net, ado.net and c++ so i am very busy with programming. i would recommend learning one of the c languages if you really want to get in depth with winmo programming but like i said vb.net will work just wont be the best.
ps if you are comfortable with vb.net learning c++ should not be that difficult for you.
When you're using .net it doesn't matter if you use vb.net, visual c++ or any other .net language because eventually you'll end op with MSIL (Microsoft Intermediate Language). All .net languages are equally fast (except vb.net when you use the old visual basic namespace, so don't use it!)
"Visual Basic .NET"
.net compact framework is pretty well documented
come to think of it all msdn's examples are first vb.net
then c#.net and then c++.net and maybe j# or jscript.net
so plenty of documentation in that department
c# is not that hard if you know java it's much of the same
but if what you wanna do is pretty "basic" then mortscripts goes along way