GAPI

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Did anyone manage to get his or her game running with VS 2005 Beta 2 using
GAPI in the emulator? If so, how? I'm very interested in seeing a minimal
game loop that demonstrates it actually works.

Thanks!
 
It definitely works. As a matter of fact, we did most of our backwards
compatibility testing for Windows Mobile 5.0 on the new emulator.

-Robert
 
Thanks for your quick reply! I'm fairly new to .net and the CF, so can you
please tell me a bit more on how I should proceed? I have read the article on
MSDN (the dancing rectangles one) but it focusses on VS 2003 and deployment
on the actual device. I would really like to be able to use the emulator in
VS 2005. At this point I have added the GxGraphicsLibrary namespace (and its
classes) to my project. But the emulator complains it can't find gapinet.dll.
I have no idea where to put it. Can you please give me some pointers on how
to set up a new project?

Ferry
 
Actually, I think I have to re-state my question. My problem is getting the
call to GXGetDisplayProperties to work. Can you tell me how you did that?
 
Are you having trouble with making it work or with a P/Invoke definition?
 
As I understand from the article it is not possible to call
GXGetDisplayProperties with P/Invoke, which is why the gapinet.dll was
introduced. I'm having trouble (or better, don't know how) to include this
dll in my project. The P/Invokes seem to work, but in order to get GAPI going
I need to be able to call GXGetDisplayProperties as well. Thanks for your
time.
 
I'm not sure who said first that it's impossible, but it seems to be quite a
common misconception. I've built this sample couple of years ago. You can
get the required P/Invoke definitions from it:
http://www.alexfeinman.com/download.asp?doc=GAPITest.zip
It shows hot to get access to all GAPI functionality without gapinet.dll. As
for performance - your mileage may vary.
 
That's brilliant Alex, thanks. Seems your 'trick' is to pass a reference to
the structure. I'm not able to test it right now but I'll let you know as
soon as possible. In the mean time, I have one more question that is very off
topic and doesn't realy relate to the CF. Suppose I have a dll that has been
compiled for both X86 and ARM. How would I add it to my project so that when
I build the project it would use the correct dll for the chosen deployment?
 
It's not going to do it for automagically. What you can do is to create 2
directories in your project (x86, ARM), copy appropriate files into them and
change "Build Action" on the files from "Content" to "None" accordingly.
 
I have got it working with the definitions Alex showed! Thanks again to
Robert and both of the Alexes for helping me out this quickly.
 
Back
Top