PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Re: REQUEST: webcast or tutorial on Gapi with .net

Reply

Re: REQUEST: webcast or tutorial on Gapi with .net

 
Thread Tools Rate Thread
Old 06-07-2003, 12:30 AM   #1
Alex Feinman [MVP]
Guest
 
Posts: n/a
Default Re: REQUEST: webcast or tutorial on Gapi with .net


For P/Invoke example take a look at
http://www.alexfeinman.com/download...oc=GAPITest.zip

I don't remember if the 4 keys can be intercepted via GAPI, but it's either
that or RegisterWindowKey.

I'm x-posting this to dotnet.framework group, as this conversation
obviouslly belongs there rather than here

"Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
news:%238qiwrxQDHA.704@tk2msftngp13.phx.gbl...
> well for one thing i can only seem to call GXopenInput and GXcloseinput. i
> can't call GXgetdefaultkeys (probably because the return struct isn't
> consistent with the gx.h). I couldn't even get as far as animating because

I
> can't even find how to retrieve the hardware handler that the other gapi
> function calls need from my class (dirived from form)
>
> I found only one source of comment that got me going and it wasn't readily
> obvious (for me) that i had to specify an entry point like so, in order

for
> it to work:
>
> [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")]
>
> private static extern int GXOpenInput();
>
>
>
> but for one of my other invoke to another dll didn't need it:
>
> [DllImport("coredll.dll")]
>
> private static extern short GetAsyncKeyState(int vkey);
>
>
>
> It also took me a while to find out these info was retrieved through
> dumpbin.exe.
>
> I'm currently using GDI for my animation. since i am only animating a
> character that only takes 10% of the screen it so far looks smooth. but i
> plan to move over to pure gapi paint routines if i do encounter some
> performance difficulties.
>
> could you send me your pinvoke to gapi sample?
>
> One little quirk i noticed in the ppc2003 emulator from my dell axim x5 is
> that none of the 256 possible keyboard values is triggered when someone
> clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar. It
> works on my axim but not on the emulator. It's possible i MUST register
> hotkeys for these to work but I find that rather silly ask i currently
> managed to use gxopeninput to override the hardware buttons.
>
> thanks.
>
> Robert Huie
>
>
> "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> news:eh8syRrQDHA.2768@tk2msftngp13.phx.gbl...
> > Do you mind sharing the information on the quirks you see? I wrote a
> > P/Invoke GAPI sample that works fine except that I'm seeing some

> jerkiness -
> > I cannot get a simple flying box to fly smoothly
> >
> > Alex Feinman
> > MVP Windows Media Center
> >
> > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
> > news:OWAvPEmQDHA.1040@TK2MSFTNGP12.phx.gbl...
> > > just want to see if anyone else here is interested in such a topic. I

> have
> > > come across little quirks so far that leads me to believe it's not so
> > > straightforward.
> > >
> > > Robert Huie
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 06-07-2003, 05:57 AM   #2
Moe Khosravy
Guest
 
Posts: n/a
Default Re: REQUEST: webcast or tutorial on Gapi with .net

I've got an article coming out on Intel.com on GAPI and .NET CF. One's an
intro and one's an optimized batched EVC++
DLL for Compact Framework Apps...

-Moe Khosravy
Vital Images Inc.
www.vitalimages.com



"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:ua1CDX1QDHA.2224@TK2MSFTNGP12.phx.gbl...
> For P/Invoke example take a look at
> http://www.alexfeinman.com/download...oc=GAPITest.zip
>
> I don't remember if the 4 keys can be intercepted via GAPI, but it's

either
> that or RegisterWindowKey.
>
> I'm x-posting this to dotnet.framework group, as this conversation
> obviouslly belongs there rather than here
>
> "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
> news:%238qiwrxQDHA.704@tk2msftngp13.phx.gbl...
> > well for one thing i can only seem to call GXopenInput and GXcloseinput.

i
> > can't call GXgetdefaultkeys (probably because the return struct isn't
> > consistent with the gx.h). I couldn't even get as far as animating

because
> I
> > can't even find how to retrieve the hardware handler that the other gapi
> > function calls need from my class (dirived from form)
> >
> > I found only one source of comment that got me going and it wasn't

readily
> > obvious (for me) that i had to specify an entry point like so, in order

> for
> > it to work:
> >
> > [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")]
> >
> > private static extern int GXOpenInput();
> >
> >
> >
> > but for one of my other invoke to another dll didn't need it:
> >
> > [DllImport("coredll.dll")]
> >
> > private static extern short GetAsyncKeyState(int vkey);
> >
> >
> >
> > It also took me a while to find out these info was retrieved through
> > dumpbin.exe.
> >
> > I'm currently using GDI for my animation. since i am only animating a
> > character that only takes 10% of the screen it so far looks smooth. but

i
> > plan to move over to pure gapi paint routines if i do encounter some
> > performance difficulties.
> >
> > could you send me your pinvoke to gapi sample?
> >
> > One little quirk i noticed in the ppc2003 emulator from my dell axim x5

is
> > that none of the 256 possible keyboard values is triggered when someone
> > clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar.

It
> > works on my axim but not on the emulator. It's possible i MUST register
> > hotkeys for these to work but I find that rather silly ask i currently
> > managed to use gxopeninput to override the hardware buttons.
> >
> > thanks.
> >
> > Robert Huie
> >
> >
> > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> > news:eh8syRrQDHA.2768@tk2msftngp13.phx.gbl...
> > > Do you mind sharing the information on the quirks you see? I wrote a
> > > P/Invoke GAPI sample that works fine except that I'm seeing some

> > jerkiness -
> > > I cannot get a simple flying box to fly smoothly
> > >
> > > Alex Feinman
> > > MVP Windows Media Center
> > >
> > > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
> > > news:OWAvPEmQDHA.1040@TK2MSFTNGP12.phx.gbl...
> > > > just want to see if anyone else here is interested in such a topic.

I
> > have
> > > > come across little quirks so far that leads me to believe it's not

so
> > > > straightforward.
> > > >
> > > > Robert Huie
> > > >
> > > >
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 06-07-2003, 06:00 AM   #3
Moe Khosravy
Guest
 
Posts: n/a
Default Re: REQUEST: webcast or tutorial on Gapi with .net

Sorry... Posted too quickly. I'll post the URLs to the embedded gaming
articles to be published on Intel's IDS/IDF sites as soon as I know the
URLs.

-Moe Khosravy


"Moe Khosravy" <MKhosravy_NOSPAM@VitalImages.com> wrote in message
news:uR8w8N4QDHA.2276@TK2MSFTNGP12.phx.gbl...
> I've got an article coming out on Intel.com on GAPI and .NET CF. One's an
> intro and one's an optimized batched EVC++
> DLL for Compact Framework Apps...
>
> -Moe Khosravy
> Vital Images Inc.
> www.vitalimages.com
>
>
>
> "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> news:ua1CDX1QDHA.2224@TK2MSFTNGP12.phx.gbl...
> > For P/Invoke example take a look at
> > http://www.alexfeinman.com/download...oc=GAPITest.zip
> >
> > I don't remember if the 4 keys can be intercepted via GAPI, but it's

> either
> > that or RegisterWindowKey.
> >
> > I'm x-posting this to dotnet.framework group, as this conversation
> > obviouslly belongs there rather than here
> >
> > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
> > news:%238qiwrxQDHA.704@tk2msftngp13.phx.gbl...
> > > well for one thing i can only seem to call GXopenInput and

GXcloseinput.
> i
> > > can't call GXgetdefaultkeys (probably because the return struct isn't
> > > consistent with the gx.h). I couldn't even get as far as animating

> because
> > I
> > > can't even find how to retrieve the hardware handler that the other

gapi
> > > function calls need from my class (dirived from form)
> > >
> > > I found only one source of comment that got me going and it wasn't

> readily
> > > obvious (for me) that i had to specify an entry point like so, in

order
> > for
> > > it to work:
> > >
> > > [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")]
> > >
> > > private static extern int GXOpenInput();
> > >
> > >
> > >
> > > but for one of my other invoke to another dll didn't need it:
> > >
> > > [DllImport("coredll.dll")]
> > >
> > > private static extern short GetAsyncKeyState(int vkey);
> > >
> > >
> > >
> > > It also took me a while to find out these info was retrieved through
> > > dumpbin.exe.
> > >
> > > I'm currently using GDI for my animation. since i am only animating a
> > > character that only takes 10% of the screen it so far looks smooth.

but
> i
> > > plan to move over to pure gapi paint routines if i do encounter some
> > > performance difficulties.
> > >
> > > could you send me your pinvoke to gapi sample?
> > >
> > > One little quirk i noticed in the ppc2003 emulator from my dell axim

x5
> is
> > > that none of the 256 possible keyboard values is triggered when

someone
> > > clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar.

> It
> > > works on my axim but not on the emulator. It's possible i MUST

register
> > > hotkeys for these to work but I find that rather silly ask i currently
> > > managed to use gxopeninput to override the hardware buttons.
> > >
> > > thanks.
> > >
> > > Robert Huie
> > >
> > >
> > > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> > > news:eh8syRrQDHA.2768@tk2msftngp13.phx.gbl...
> > > > Do you mind sharing the information on the quirks you see? I wrote a
> > > > P/Invoke GAPI sample that works fine except that I'm seeing some
> > > jerkiness -
> > > > I cannot get a simple flying box to fly smoothly
> > > >
> > > > Alex Feinman
> > > > MVP Windows Media Center
> > > >
> > > > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in

message
> > > > news:OWAvPEmQDHA.1040@TK2MSFTNGP12.phx.gbl...
> > > > > just want to see if anyone else here is interested in such a

topic.
> I
> > > have
> > > > > come across little quirks so far that leads me to believe it's not

> so
> > > > > straightforward.
> > > > >
> > > > > Robert Huie
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 06-07-2003, 06:15 AM   #4
Robert Huie
Guest
 
Posts: n/a
Default Re: REQUEST: webcast or tutorial on Gapi with .net

thanks guys. This should help me greatly.

I'll post what I have in terms of projects to show how well a game can run
even under managed code as soon as i get a respectable beta ready.

Robert Huie

"Moe Khosravy" <MKhosravy_NOSPAM@VitalImages.com> wrote in message
news:OuZppP4QDHA.3192@TK2MSFTNGP10.phx.gbl...
> Sorry... Posted too quickly. I'll post the URLs to the embedded gaming
> articles to be published on Intel's IDS/IDF sites as soon as I know the
> URLs.
>
> -Moe Khosravy
>
>
> "Moe Khosravy" <MKhosravy_NOSPAM@VitalImages.com> wrote in message
> news:uR8w8N4QDHA.2276@TK2MSFTNGP12.phx.gbl...
> > I've got an article coming out on Intel.com on GAPI and .NET CF. One's

an
> > intro and one's an optimized batched EVC++
> > DLL for Compact Framework Apps...
> >
> > -Moe Khosravy
> > Vital Images Inc.
> > www.vitalimages.com
> >
> >
> >
> > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> > news:ua1CDX1QDHA.2224@TK2MSFTNGP12.phx.gbl...
> > > For P/Invoke example take a look at
> > > http://www.alexfeinman.com/download...oc=GAPITest.zip
> > >
> > > I don't remember if the 4 keys can be intercepted via GAPI, but it's

> > either
> > > that or RegisterWindowKey.
> > >
> > > I'm x-posting this to dotnet.framework group, as this conversation
> > > obviouslly belongs there rather than here
> > >
> > > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in message
> > > news:%238qiwrxQDHA.704@tk2msftngp13.phx.gbl...
> > > > well for one thing i can only seem to call GXopenInput and

> GXcloseinput.
> > i
> > > > can't call GXgetdefaultkeys (probably because the return struct

isn't
> > > > consistent with the gx.h). I couldn't even get as far as animating

> > because
> > > I
> > > > can't even find how to retrieve the hardware handler that the other

> gapi
> > > > function calls need from my class (dirived from form)
> > > >
> > > > I found only one source of comment that got me going and it wasn't

> > readily
> > > > obvious (for me) that i had to specify an entry point like so, in

> order
> > > for
> > > > it to work:
> > > >
> > > > [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")]
> > > >
> > > > private static extern int GXOpenInput();
> > > >
> > > >
> > > >
> > > > but for one of my other invoke to another dll didn't need it:
> > > >
> > > > [DllImport("coredll.dll")]
> > > >
> > > > private static extern short GetAsyncKeyState(int vkey);
> > > >
> > > >
> > > >
> > > > It also took me a while to find out these info was retrieved through
> > > > dumpbin.exe.
> > > >
> > > > I'm currently using GDI for my animation. since i am only animating

a
> > > > character that only takes 10% of the screen it so far looks smooth.

> but
> > i
> > > > plan to move over to pure gapi paint routines if i do encounter some
> > > > performance difficulties.
> > > >
> > > > could you send me your pinvoke to gapi sample?
> > > >
> > > > One little quirk i noticed in the ppc2003 emulator from my dell axim

> x5
> > is
> > > > that none of the 256 possible keyboard values is triggered when

> someone
> > > > clicks on the softkey1 through softkey4. i.e.

inbox/contacts/calendar.
> > It
> > > > works on my axim but not on the emulator. It's possible i MUST

> register
> > > > hotkeys for these to work but I find that rather silly ask i

currently
> > > > managed to use gxopeninput to override the hardware buttons.
> > > >
> > > > thanks.
> > > >
> > > > Robert Huie
> > > >
> > > >
> > > > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> > > > news:eh8syRrQDHA.2768@tk2msftngp13.phx.gbl...
> > > > > Do you mind sharing the information on the quirks you see? I wrote

a
> > > > > P/Invoke GAPI sample that works fine except that I'm seeing some
> > > > jerkiness -
> > > > > I cannot get a simple flying box to fly smoothly
> > > > >
> > > > > Alex Feinman
> > > > > MVP Windows Media Center
> > > > >
> > > > > "Robert Huie" <gohtor@iswildSPAMMERSHOULDBESHOT.com> wrote in

> message
> > > > > news:OWAvPEmQDHA.1040@TK2MSFTNGP12.phx.gbl...
> > > > > > just want to see if anyone else here is interested in such a

> topic.
> > I
> > > > have
> > > > > > come across little quirks so far that leads me to believe it's

not
> > so
> > > > > > straightforward.
> > > > > >
> > > > > > Robert Huie
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off