[ODE] "Could not load accelerators" Why? :-(

Mark Wayland mwayland at torus.com.au
Tue Jul 5 13:16:30 MST 2005


You may need to call TranslateAccelerator() or some rubbish like that in
your message pump?

HTH,
Mark


----- Original Message ----- 
From: "Vrej Melkonian" <vmelkon at yahoo.com>
To: <ode at q12.org>
Sent: Monday, July 04, 2005 10:39 PM
Subject: Re: [ODE] "Could not load accelerators" Why? :-(


> You can find out with a call to GetLastError.
> Also, open the drawstuff project, look in the resource
> section to make sure the resource is there.
> The projects supplied with ODE are for VC++6 so there
> is probably incompatibilities there.
> You can also comment the code :
>
> // load accelerators
>   accelerators = LoadAccelerators (ghInstance,
>    MAKEINTRESOURCE(IDR_ACCELERATOR1));
>   if (accelerators==NULL) dsError ("could not load
> accelerators");
>
> In my case, the accelerator loads but when I press the
> keys, it has no effect.
>
>
> --- "[ HanSolo ]" <hansolo7 at telepolis.com> wrote:
>
> > Hello.
> >
> > At last i can compile with DevC++ (gcc,g++,etc) in
> > my Windows 98, but i
> > have a problem when execute my little program that
> > uses some drawstuff
> > functions.
> >
> > When i execute my program, a window start but one
> > little window appears
> > and say me "could not load accelerators"
> >
> > Headers..
> > #include <ode/ode.h>
> > #include <drawstuff/drawstuff.h>
> > #include "resource.h"
> > ...
> >
> > I compile it with "g++" and with the libraries
> > -ldrawstuff  -lode
> > -lOpenGL32 -lGlu32 -lgdi32
> >
> > ====> Other codes like "test_buggy.cpp" too doesn't
> > run => same error
> > with the accelerators!
> >
> > I have read other post (July 2002) but i include
> > "resource.h" and
> > doesn't work
> >
> > http://q12.org/pipermail/ode/2002-July/005437.html
> >
> > In "resource.h" appears the #define IDR_ACCELERATOR1
> >                104*
> > , *i tried with other numbers but nothing.
> >
> > And in "windows.cpp" :
> >
> >  // load accelerators
> >   accelerators = LoadAccelerators (ghInstance,
> > MAKEINTRESOURCE(IDR_ACCELERATOR1));
> >   if (accelerators==NULL) dsError ("could not load
> > accelerators");
> >
> > It seems the LoadAccelerators function fails :s
> >
> > This is a nightmare. :-(
> > Some help? Thanks
> >
> >
> >
> > _______________________________________________
> > ODE mailing list
> > ODE at q12.org
> > http://q12.org/mailman/listinfo/ode
> >
>
>
>
>
> __________________________________
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing and more. Check it out!
> http://discover.yahoo.com/stayintouch.html
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list