Hi, Paulo,
Thanks very much. We have solved this problem. Because we forget add wx.rc into our resource script.
2005-06-07
======= Original Message on 2005-06-07 01:11:03 =======
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>yy_cn wrote:
>| Hi, Jo?o,
>|
>| I write some code by your instruction, and the debug window output the
>following log:
>|
>| 20:01:52:
>\Work\Source\library\wxWidgets-2.6.0\src\msw\cursor.cpp(356):
>'LoadCursor' failed with error 0x00000714 (the specified image file did
>not contain a resource section.).
>|
>| When I step into the wxCursor constructor, I found the log was
>generated by the following code:
>| const StdCursor& stdCursor = stdCursors[idCursor];
>| HCURSOR hcursor = ::LoadCursor(stdCursor.isStd ? NULL : wxGetInstance(),
>| stdCursor.name);
>|
>| Why the stdCursor.isStd equal to false? I think wxCURSOR_HAND should
>be a system standard cursor. How should I do?
>|
>| The version of wxWidgets we used is 2.6.
>
>I really don't know why this error occured (maybe there is something
>missing in your code). But, I wrote a small code below which creates a
>frame and sets its cursor, so you can see how I use the SetCursor method:
>
>#include <wx/wx.h>
>
>class MyApp: public wxApp
>{
> virtual bool OnInit();
>};
>
>class MyFrame: public wxFrame
>{
>public:
> MyFrame(void);
>};
>
>IMPLEMENT_APP(MyApp)
>
>bool MyApp::OnInit(void)
>{
> MyFrame *frame = new MyFrame();
> frame->Show(true);
> SetTopWindow(frame);
> return true;
>}
>
>MyFrame::MyFrame(void)
> :wxFrame((wxFrame *)NULL, -1, "Hand Test")
>{
> SetCursor(wxCursor(wxCURSOR_HAND));
>}
>
>
>
>- --
>João Paulo Just Peixoto
>Justsoft Informática e Publicidade Ltda.
>
http://www.justsoft.com.br/
>- --
>Linux User #329704
>
http://counter.li.org/
>- --
>Graduando em Ciência da Computação
>Universidade Estadual de Santa Cruz, BA
>- --
>Ilhéus, BA, Brasil
>+55 75 8104 8473
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.7 (GNU/Linux)
>Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
>
>iD8DBQFCpIOnXL+vuN2d7ZwRArsWAKCr5Y6hjyuQr0i/FcP4/spHUF+apwCgqSZC
>M3zg8ycymbhIf3RO/EIX5Zg=
>=ST7b
>-----END PGP SIGNATURE-----