HighTechTalks DotNet Forums  

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

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Re: REQUEST: webcast or tutorial on Gapi with .net in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alex Feinman [MVP]
 
Posts: n/a

Default Re: REQUEST: webcast or tutorial on Gapi with .net - 07-05-2003 , 08:30 PM






For P/Invoke example take a look at
http://www.alexfeinman.com/download....c=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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote

Quote:
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 (AT) alexfeinman (DOT) com> wrote in message
news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) 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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message
news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) 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
  #2  
Old   
Moe Khosravy
 
Posts: n/a

Default Re: REQUEST: webcast or tutorial on Gapi with .net - 07-06-2003 , 01:57 AM






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 (AT) alexfeinman (DOT) com> wrote

Quote:
For P/Invoke example take a look at
http://www.alexfeinman.com/download....c=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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message
news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) 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 (AT) alexfeinman (DOT) com> wrote in message
news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) 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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message
news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) 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
  #3  
Old   
Moe Khosravy
 
Posts: n/a

Default Re: REQUEST: webcast or tutorial on Gapi with .net - 07-06-2003 , 02:00 AM



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 (AT) VitalImages (DOT) com> wrote

Quote:
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 (AT) alexfeinman (DOT) com> wrote in message
news:ua1CDX1QDHA.2224 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
For P/Invoke example take a look at
http://www.alexfeinman.com/download....c=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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message
news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) 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 (AT) alexfeinman (DOT) com> wrote in message
news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) 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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in
message
news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) 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
  #4  
Old   
Robert Huie
 
Posts: n/a

Default Re: REQUEST: webcast or tutorial on Gapi with .net - 07-06-2003 , 02:15 AM



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 (AT) VitalImages (DOT) com> wrote

Quote:
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 (AT) VitalImages (DOT) com> wrote in message
news:uR8w8N4QDHA.2276 (AT) TK2MSFTNGP12 (DOT) 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 (AT) alexfeinman (DOT) com> wrote in message
news:ua1CDX1QDHA.2224 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
For P/Invoke example take a look at
http://www.alexfeinman.com/download....c=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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message
news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) 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 (AT) alexfeinman (DOT) com> wrote in message
news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) 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 (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in
message
news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) 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 Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.