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