GAPI on VB.NET ? Help Needed - General Questions and Answers

Hi I tried to make all examples at msdn to work with gapi using vb.net but can't get any to work. The MSDN is all outdated with all examples for V.STUDIO 2003 (i'm using 2008), links to file that are non existant (like the 'download GAPI' link on al msdn about WM)
Someone got any easy example on C# or VB.NET to draw alpha transparent images ?
I'm trying to develop a framework for games and want to use the fastest graphic rutines abailable without going to C++.

Related

PPC Emulator for Testing downloaded programs

Hi Guys,
I have searched high and low for the answer to this one, so I thought I'd give up and ask you guys.
What I need is an Emulator for PPC that I can use on my computer to test downloaded programs before I instal them to my XDA.
The problems are:
Active sync appears to only work with visual .net development suit, which I dont have the money to buy.
Embeded visual C does run a nice emulator, but it wont connect to the active sync and thuse I cant install programmes. There did seem to be a solution in useing the folder option in the above programe to access a Virtual SD card on the computer (shared folder on my drive) but how do I access the programmes?
I would prefer to try these programmes out in a sand pit if I could.
But there doesnt seem to be away.
Please dont flame me if I have missed an earlier thread or some google search... I am new.. I am not worthy... I have no flame retardent underware...
Edy
I don't have an answer for you, (I also would like to do this also!), but I don't believe you will be able to get the eMbedded Emulator to run 'real' apps because these apps are compiled for a CPU target, (usually ARM) and the emulator only runs 8086 compiles.
The emulator is more to test your own source code and it compiles for 8086, and when you are ready, you compile your source for ARM, MIPS, to distribute.
If anyone knows of a Windows based emulator that runs ARM compiled programs, I would LOVE to know about it.
I seem to remember there was a Palm version where you could simply drag and drop programmes into it and test them. Would be nice if that were so for the PPC.
Still noone said life had to be perfect ;-)
Edy
Ya, I came from the Palm world, and they did have an emulator that would allow you to run Palm apps. It wasn’t the great emulation, but it usually was good enough to give you an idea if you even wanted to bother installing it on your ‘real’ device.
Well, maybe there is one for PPC and we just don’t know about it… Anyone???
There is no such an emulator and making it is extremely difficult. You'll have to completely emulate whole CPU, some hardware and write your own OS just for this "virtual" PocketPC. Noone has done this.
So the long and the short of this is I need visual .net to be able to run the MS emu... Any here doing that? If so can you tell me if it is possible to install other programs for testing, or will the emu only work with applications you are writing yourself?
There is no such an emulator and making it is extremely difficult. You'll have to completely emulate whole CPU, some hardware and write your own OS just for this "virtual" PocketPC. Noone has
Click to expand...
Click to collapse
no it's that that difficult at all sure it takes some time to do
if you look around for emulators many many platforms come as emulated on pc systems like ps2 all the way back to mame
i have a few friends who just made a whole emulation of the arm cpu on the pc not a pocketpc or windows ce emulator but just pure arm
Rudegar said:
i have a few friends who just made a whole emulation of the arm cpu on the pc not a pocketpc or windows ce emulator but just pure arm
Click to expand...
Click to collapse
Please, can you provide us with a link? I was very interested in such an emulation to test Xanadux stuff without being afraid to render the Himalaya into a brick
Matthias
they are making it because they are embedded software developers
and they are making a project where they are programming to the arm cpu i dont know if they would part with the code but mind you it's no
pocketpc emulator and i doubt it would even support a graphic display apart from text since they dont need it for the project
i'm sure there must be some emulators out there
i mean the stuff in embedded visual c++ and visual studio 2003 and 2005
even if it's not a true emulator then it comes kinda close
embedded visual c++ does have an emulator, but you cant sync it with active sync and therefore you can only test programs that you are developing yourself. There was a posted solution for this involving a null modem cable and two com ports. But my computer only has one com port :-(
Looks like you need to buy Visual Studio .net to get a fully working emulator that can sync with active x and thus test programs....
Hi there,
Somebody correct me if I'm wrong about this, but I don't think even getting the .NET framework working with Microsofts PPC 2003 emulator will work as a true emulator for the actual device.
I have the emulators for PPC and SmartPhones installed since we are developing applications for mobile (but mostly Java based) phones. So far with our initial test developments, you can only run your own developed applications or applications that are currently being developed and compiled for the emulators. Final compiled applications (for ARM/MIPS) are different from the compiled versions for the emulators and won't work with it. Being like this, the compiled version for the ARM processors will not work with the PPC emulator.
Well, that is just my comment...
Cheers,
Hey, I haven't tried it yet, but this sure sounds like what we have wanted...
http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx
Hey, I just tired it, (installing an ARM app) and it works. Cool!
How do I download that program. or can somebody upload please.
How do I download that program. or can somebody upload please
Click to expand...
Click to collapse
* Visit http://beta.microsoft.com,
* Login using your Passport account, or create one if you don't have one.
* Use Guest ID MSDEVICE to access the Community Preview website
You'll have to create a passport but that shouldn't be a real problem? I tried to upload it to the FTP using upload:upload but it won't let me send the file?
I have to say that this tool / App is one of the best you can find on the Web. I can now emulate the Pocket PC on my PC to trial games / apps first without messing up my XDA2i.
Thanks for the link guys well done!!
Lee
Upload it plz!
can u upload it somewhere? i am unable to download from the MS site!!!
PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.................
Re: Upload it plz!
studdocs said:
can u upload it somewhere? i am unable to download from the MS site!!!
PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.................
Click to expand...
Click to collapse
I assume you installed the Microsoft ActiveX component called "Microsoft File Transfer Manager" right?
It's the requestor that appears just before the download begins... Then press "transfer" to begin the transfer ..
I hope it works for you...
Rayan
It would be helpful if somebody could upload this program, I am having no success after many attempts to download.
Here you go: ftp://ftp.xda-developers.com/DeviceEmulator050419.msi
(better use a 'normal' FTP client to download)

Coding for WM2003SE

Can some of the developers give me a quick link or some tips on what I need to download in order to start developing for Windows Mobile? I have a summer's worth of freetime and I thought I might aswell go do something useful.
embedded visual c++ 4.0 if you want to code microMFC or pure win32 it's free
visual studio 2005 if you want to code .net (and it does what embedded do too)
gc++ if you want to code pure arm code it's freeware from the linux world
i used to look for something that could utilize delphi or other pascal language. i have found something called lazarus that seem to have a compiler for arm but it refuses to cooperate when i select it(the compiler), anyone got it working?

Stupid: DC++ Windows Mobile

Hello all,
I would have a question here: is there any DC++ Hub Viewer for Windows Mobile?
I googled all the search terms I could think of and here's the result:
http://sourceforge.net/projects/mobiledc (good if you got Symbian UIQ )
Maybe some would find a thing like this useful...
Anyway, ***have a nice day***.
--- PS ---
Saw that poll?
Yeah, Symbian gets tons of good software. You know, I'd love to try to run Symbian on my Dash.
Read-Me-First (?)
For those who don't know what's DC++ (2 votes, this is getting bad... ) :
--- ENCYCLOPEDIA: DC++ HUBS ---
DC++ Hubs are... well, some tech thingies. (This was the description)
The hubs are used to host users. (Well, what else could they do and make them popular?)
The users connected to hubs can:
- chat in a main chat and in personal messages (PMs)
- share files from their computer (mostly pirated )
- respect some rules
You can connect to the hubs with a DC++ Client or Viewer, like StrongDC++ or oDC (those are the most known).
Almost all the hubs require a minimum share (ex. 5GB). That means you need to have at least that share to connect to a hub.
--- ENCYCLOPEDIA: DC++ HUBS (END) ---
You want more info? Go to Wikipedia: http://en.wikipedia.org/wiki/Direct_Connect_(file_sharing)
Hope that helps, newbies to DC++! (I don't want any more votes at "What's DC++?" !!!)
*** Have a nice day! ***
I've never used DC on PC or other devices. However, WMTorrent is an absolutely great app if downloading is your thing.
If there's code on sourceforge for UIQ, and DC is an open protocol, you could try to knock together a client yourself. Not a quick solution, but c'est la vie
V
Thanks for the encouragement, V.
Knocking it toghether may be a solution, but if I am not mistaken, it takes the WM SDK and VB Studio (commercial )... or d'you know a free WM-development application?
And where on earth is the source code at SourceForge?!
*** Have a nice day! ***
eMbedded Visual c++ 4 is absolutely free together with WM 2003 SDK (I am too lazy for links so please search MS downloads)
Apps written with it will work on WM 5 and 6 and if you know how to play with linkage you can even get access to new APIs not supported in WM 2003 SDK.
They give you full functionality and in my opinion is still the best way of coding for WM.
levenum said:
Apps written with it will work on WM 5 and 6 and if you know how to play with linkage you can even get access to new APIs not supported in WM 2003 SDK.
Click to expand...
Click to collapse
Do you have a rough guide on how to do this? I did a search and it seems that people are much happy to pay for a £100+ new Visual Studio and do not borther to find ways to get a free dev env for windows mobile. I think (think) the software I'm writting now runs on WM5, but I think there are quite some API missing in WM2003-SDK. Do you think it will work if I were to throw everything *.h stuff from WM5-SDK to overwrite WM203-SDK?
Ref:
No free dev env for WM5-SDK, for eVc+ or the VS Express - http://www.pocketsoap.com/weblog/2006/07/1656.html
Q: Do you think the hobbyist and $10-per-program shareware market is important for Windows Mobile? If so, can you explain why Visual Studio 2005 Standard ($249) is required for targeting WM5? eVC++ 4 was free. The WM5 SDK cannot be installed on VS Express.
A: Jack2, there are various evaluation versions of Visual Studio 2005 available that you can try out before making a purchase decision, there is one for Visual Studio 2005 Professional edition (90 days) and one for Visual Studio 2005 Team Suite (180 days),
Click to expand...
Click to collapse
http://msdn.microsoft.com/chats/transcripts/mobileembedded/06_0125_msdn_ce.aspx
There are basically two ways to use missing APIs (personally I never found one I really needed except maybe "ExitWindowsEx" once).
1) Manually unpack the MSI file for the SDK you want. (Sorry, I do not remember the link for the extractor).
Then in Project->Settings->Link you can just redirect the default libraries to the folders of that SDK. What you need are the headers for the prototypes (h files) and the actual lib files.
2) If its just one or two functions you can use LoadLibrary and GetProcAddress to dynamically connect with the DLL. If I am not mistaking this is call "implicit" linking.
Note that if you use method 1 your app will not run on WM 2003. If you use method 2 it will run on 2003 but get NULL as function pointer and fail to execute the missing API so this way you can make widely compatible apps.
P.S.:
In my personal opinion, M$ gave away an IDE at first to gain a wide application base for its new platform. Now that Windows Mobile is an established and even leading mobile OS they are back to their usual policy of selling expensive, bloated and overcomplicated software.
They simply no longer need freeware developers for WM.
levenum said:
eMbedded Visual c++ 4 is absolutely free together with WM 2003 SDK (I am too lazy for links so please search MS downloads)
Apps written with it will work on WM 5 and 6 and if you know how to play with linkage you can even get access to new APIs not supported in WM 2003 SDK.
They give you full functionality and in my opinion is still the best way of coding for WM.
Click to expand...
Click to collapse
Yeah, eVC++ would be good (if you know how to fight with it), but the installer asked me for a serial. Why am I always cursed?
PocketDC++ for Pocket PC *Awesome*
I found this cool DC++ Client for Pocket PC called "PocketDC++". It seems like it doesn't have Download support yet. It wil be awesome if Download option is added.
PocketDC++ homepage : http://mistysoft.jino-net.ru/
External download Link : http://xpojnt.iglu.cz/download/tklienti/pocketdc0.1.8.9.rar
I have a copy of DC++ Source code and a copy of VS .NET and VB as well as Dephi I even altered a version of DC++ a while ago....but yeah I think it would be great for on the go downloaders for file checking and user checking/count....excellent idea

Creating a WM Application - Where to start ?

I hope this is the right place to put this, if not, mods, feel free to remove and/or delete it. I've dabbled a bit with C before, but that's about the extent of my programming experience. I'd like to create a program that will parse the information from a website and display it... I don't imagine something like that would be hard to do, but I have no idea what tools I would even need to start writing a PPC application.
Kitco (a website that gives live quotes of precious metals) recently came out with an application for the iphone that neatly formats all this information:
http://www.kitco.com/images/banners/KitcoiPhone/iphone.html
I'd like to basically create a PPC version of this application.
Is this something that an individual with next to no experience could hope to achieve ? I'd have to create a GUI, initialize the internet, connect and retrieve a webpage and remove the relevent information before displaying it.
Any help would be greatly appreciated. I've always wanted to become more familiar with these sorts of things and figured this project would be a great way of learning it.
Thanks!
ThreadMoved
Next to no experience? I dont think so. You have to have a little under your belt first and the only way to achieve that is to start readin right here!
I'm also interested in the expert answers to this question.
My very non-expert understanding is as follows:
VS 2005 (microsoft visual studio) can create executables for WM devices using a SDK (low level) or .Net CF (medium level) interface. You want to use .Net CF (compact framework) because it is supposed to make things easier. I think you have to use C++ to use the SDK but you can use C++, C#, or Visual Basic and write to .NET CF.
VS 2005 is an IDE (integrated development environment). It contains features to edit, compile, and even test your program using simulator/debugger. I think there are some non-microsoft IDE's that can also generate Windows Mobile code -- there is a market for cross-platform environments (e.g. programmers write code using a special library instead of the windows SDK or .NET function and the same source code can be compiled to run on Blackberry, iPhone, S60, Windows Mobile, etc...)
Instead of writing to the phone hardware (or .NET abstraction) directly, you can write your application using Java. You would use some Java compatible IDE (like Eclipse, Jbuilder, or NetBeans) to create Java applets that you download to your phone. You'd have to install a Java VM (virtual machine) on your phone to run these applets. I think the downloadable games for phones are Java applets.
Disclaimer: I haven't worn my "programming cap" since 2001 and hopefully things have gotten simpler. In my previous life I designed operating systems for mainframe computers.

c# to mysql with new toy

Hi All,
I recently got a new toy, in the form of a pocket PC (mda varrio 3), and want to learn how to program for it in c# using Visual Studio 2008. I have experience of C, Pascal, PHP etc and have a few questions for you all:
1) I have websites with a mysql database and was wondering if c# was good for accessing the data on these websites within an application (not web browser) on my phone?
2) I’m struggling to find basic step by step tutorials that will help me write such an application. Could someone please point me in the correct direction?
3) Are there good websites with lots of c# sample program applications that I can see the code? I have looked on the Microsoft site, but the c# samples seem to be lacking.
Sorry if these questions have been asked before, I had a quick look and couldn’t find what I was looking for ….
Thanks in advance,
Reggie.
Hi,
Connecting from the Phone Directly to MySQL is a bad idea, ideally you should create some sort of webservice or remoting middle tier(afaik .net 3.5 CF supports this). The reason I say this is that the connection string will have to be embedded in the device and anyone with a bit of know how will reverse engineer it and be able to access you MySQL Server.
That said, connecting to MySQL in C# is easy: have a look here for some .net articles : http://dev.mysql.com/usingmysql/dotnet/ (just port the VB to C#).
Thanks
Dave
reggie4 said:
Hi All,
I recently got a new toy, in the form of a pocket PC (mda varrio 3), and want to learn how to program for it in c# using Visual Studio 2008. I have experience of C, Pascal, PHP etc and have a few questions for you all:
1) I have websites with a mysql database and was wondering if c# was good for accessing the data on these websites within an application (not web browser) on my phone?
2) I’m struggling to find basic step by step tutorials that will help me write such an application. Could someone please point me in the correct direction?
3) Are there good websites with lots of c# sample program applications that I can see the code? I have looked on the Microsoft site, but the c# samples seem to be lacking.
Sorry if these questions have been asked before, I had a quick look and couldn’t find what I was looking for ….
Thanks in advance,
Reggie.
Click to expand...
Click to collapse
If you install the Windows Mobile 5.0 or 6.0 SDK (it was an option when you installed Visual Studio, assuming you didn't install the "express" version), or you installed it afterwards, you'll have a directory in C:\Program Files (or your equivalent) for the SDK (for example, on my machine the 5.0 SDK is here:
C:\Program Files (x86)\Windows Mobile 5.0 SDK R2
Under there you'll have everything you'll need to get started. Especially interesting should be the contents of the Samples folder (PocketPC is for devices with touch screens).
Good luck, and have fun!
any c# guide how to connect to mysql would work
.net works the same in 99% of cases on pc and ppc
Thanks Rudegar, I thought as much - but couldn’t find a simple step by step guide including Visual Studio 2008 with example code.
Thanks godefroi, I have had a look in here, but there aren't many c# samples and I can't find one c# to mysql sample.
Thanks DaveShaw, I didn’t explain myself well enough. I have a website with a mysql database on it (on web server) and I wanted to be able to update the site from the net (eg my laptop) and when I am out and about (from my phone). I wanted to write an application that runs on my phone that can read and write data to its own local database (or this web database depending on signal) and then synchronise the local and the web database when 3G signal becomes availabile.
I hope i have explained myself more clearly?

Categories

Resources