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!

Re: GAPI by Robert

Robert
Mon Jul 04 11:50:06 CDT 2005

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


"Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> 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!



Re: GAPI by Drubibu

Drubibu
Mon Jul 04 12:35:04 CDT 2005

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


"Robert Levy [MS]" wrote:

> 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
>
>
> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> > 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!
>
>
>

Re: GAPI by Drubibu

Drubibu
Mon Jul 04 14:05:01 CDT 2005

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?

"Robert Levy [MS]" wrote:

> 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
>
>
> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> > 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!
>
>
>

Re: GAPI by Alex

Alex
Mon Jul 04 17:44:14 CDT 2005

Are you having trouble with making it work or with a P/Invoke definition?

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
news:10B570B3-0DC8-46DE-A25E-03406843802B@microsoft.com...
> 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?
>
> "Robert Levy [MS]" wrote:
>
>> 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
>>
>>
>> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
>> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
>> > 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!
>>
>>
>>


Re: GAPI by Drubibu

Drubibu
Tue Jul 05 02:15:03 CDT 2005

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.

"Alex Feinman [MVP]" wrote:

> Are you having trouble with making it work or with a P/Invoke definition?
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> news:10B570B3-0DC8-46DE-A25E-03406843802B@microsoft.com...
> > 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?
> >
> > "Robert Levy [MS]" wrote:
> >
> >> 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
> >>
> >>
> >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> >> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> >> > 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!
> >>
> >>
> >>
>
>

Re: GAPI by Alex

Alex
Tue Jul 05 02:22:09 CDT 2005

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.


--
Alex Feinman
---
Visit http://www.opennetcf.org
"Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
news:576D1286-9E02-42C9-8EDC-0BD8E9F78E66@microsoft.com...
> 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.
>
> "Alex Feinman [MVP]" wrote:
>
>> Are you having trouble with making it work or with a P/Invoke definition?
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
>> news:10B570B3-0DC8-46DE-A25E-03406843802B@microsoft.com...
>> > 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?
>> >
>> > "Robert Levy [MS]" wrote:
>> >
>> >> 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
>> >>
>> >>
>> >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
>> >> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
>> >> > 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!
>> >>
>> >>
>> >>
>>
>>


Re: GAPI by Drubibu

Drubibu
Tue Jul 05 03:26:01 CDT 2005

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?

"Alex Feinman [MVP]" wrote:

> 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.
>
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> news:576D1286-9E02-42C9-8EDC-0BD8E9F78E66@microsoft.com...
> > 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.
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> Are you having trouble with making it work or with a P/Invoke definition?
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> >> news:10B570B3-0DC8-46DE-A25E-03406843802B@microsoft.com...
> >> > 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?
> >> >
> >> > "Robert Levy [MS]" wrote:
> >> >
> >> >> 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
> >> >>
> >> >>
> >> >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> >> >> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> >> >> > 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!
> >> >>
> >> >>
> >> >>
> >>
> >>
>
>

Re: GAPI by a

a
Tue Jul 05 09:49:12 CDT 2005

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.

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Drubibu" wrote:

> 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?
>
> "Alex Feinman [MVP]" wrote:
>
> > 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.
> >
> >
> > --
> > Alex Feinman
> > ---
> > Visit http://www.opennetcf.org
> > "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> > news:576D1286-9E02-42C9-8EDC-0BD8E9F78E66@microsoft.com...
> > > 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.
> > >
> > > "Alex Feinman [MVP]" wrote:
> > >
> > >> Are you having trouble with making it work or with a P/Invoke definition?
> > >>
> > >> --
> > >> Alex Feinman
> > >> ---
> > >> Visit http://www.opennetcf.org
> > >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> > >> news:10B570B3-0DC8-46DE-A25E-03406843802B@microsoft.com...
> > >> > 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?
> > >> >
> > >> > "Robert Levy [MS]" wrote:
> > >> >
> > >> >> 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
> > >> >>
> > >> >>
> > >> >> "Drubibu" <Drubibu@discussions.microsoft.com> wrote in message
> > >> >> news:EEA41D38-88FF-4EF8-A1D7-0C5A97158E07@microsoft.com...
> > >> >> > 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!
> > >> >>
> > >> >>
> > >> >>
> > >>
> > >>
> >
> >

RE: GAPI by Drubibu

Drubibu
Tue Jul 05 13:59:02 CDT 2005

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.


"Drubibu" wrote:

> 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!