Search found 39 matches

by evilparole
Wed Jul 14, 2010 8:26 am
Forum: wxWidgets Development (Chinese)
Topic: 使用GBK编译wxGLCanvas出错的问题
Replies: 2
Views: 3085

Re: 使用GBK编译wxGLCanvas出错的问题

converting to execution character set: Illegal byte sequence|

设成-finput-charset=UTF-8后,在有中文的地方都提示上面这个错误了
by evilparole
Tue Jul 13, 2010 7:40 am
Forum: wxWidgets Development (Chinese)
Topic: 使用GBK编译wxGLCanvas出错的问题
Replies: 2
Views: 3085

使用GBK编译wxGLCanvas出错的问题

开发工具C::B,为了使用中文,在setting中设置了-finput-charset=GBK,中文正常使用,但是当加入 #include <wx/glcanvas.h> 加入 wxGLCanvas* canvas = new wxGLCanvas(this, wxID_ANY,wxDefaultPosition,wxDefaultSize,0, wxT("erw") ); 编译时出错,错误指向glcanvas.h中的 #include <GL/gl.h> 错误描述为:failure to convert GBK to UTF-8 去掉-finput-charset=GBK...
by evilparole
Tue Jul 13, 2010 3:18 am
Forum: C++ Development
Topic: wxGLCanvas error
Replies: 6
Views: 1724

the problem is disappear

Hello,Auria!Thank you for your help! I find the cause of the problem,I found that the "wxmsw28ud_gl_gcc.dll" is just 32kb.So I build wxWidgets library again,but is the same size of the library.Later I download wxPack and installed.The correct size of the "wxmsw28ud_gl_gcc.dll" is...
by evilparole
Tue Jul 13, 2010 1:39 am
Forum: C++ Development
Topic: wxGLCanvas error
Replies: 6
Views: 1724

Auria wrote:Check the order in which you pass the library linking flags, I believe this is important.

This the order in the library linking flags,and I try other order,but the code can't to work.

libwxmsw28ud_adv.a
libwxmsw28ud_core.a
libwxbase28ud.a
libwxpngd.a
libwxzlibd.a
libwxmsw28ud_gl.a
by evilparole
Tue Jul 13, 2010 1:09 am
Forum: C++ Development
Topic: wxGLCanvas error
Replies: 6
Views: 1724

reply

You likely need to link against the wx GL library (if you are not using monolithic builds) - and enable OpenGL support when building wxWidgets is the first place if you built it yourself I link wxGL library:opengl32;glu32;gdi32;libwxmsw28ud_gl.a; And set openGL =1 when building wxWidgets by myself;
by evilparole
Mon Jul 12, 2010 9:52 am
Forum: C++ Development
Topic: wxGLCanvas error
Replies: 6
Views: 1724

wxGLCanvas error

HI: When using wxGLCanvas, I ran into a problem: D:\open\myproject\WxOGL\WxOGLMain.cpp||In constructor `WxOGLFrame::WxOGLFrame(wxWindow*, wxWindowID)':| D:\open\myproject\WxOGL\WxOGLMain.cpp|87|warning: unused variable 'canvas1'| obj\Debug\WxOGLMain.o:WxOGLMain.cpp|| undefined reference to `__imp___...
by evilparole
Mon Dec 28, 2009 1:58 am
Forum: C++ Development
Topic: wxDbConnectInf problem
Replies: 8
Views: 2229

Hi,ONEEYEMAN,thank you for your help. The OS I running is Windows-xp; According to what you mean,I Careful reading wxWiKi and check the wxWidgets library.In "wxWidgets-2.8.10\lib\gcc_dll\mswud\wx\setup.h" the wxUSE_ODBC is 0,so I running "mingw32-make.exe -f makefile.gcc clean"(I...
by evilparole
Sun Dec 27, 2009 2:47 am
Forum: C++ Development
Topic: wxDbConnectInf problem
Replies: 8
Views: 2229

Hi,ONEEYEMAN,thank you for your help;
I can't understand what's the "run configure and then make" and "What options did you pass to configure script?" mean?

Thank you.
by evilparole
Sun Dec 27, 2009 1:06 am
Forum: C++ Development
Topic: wxDbConnectInf problem
Replies: 8
Views: 2229

Hi, Which compiler and version are you using? Did you configure wx differently than the default options? Thank you. Hi,Thank you for your help! wxWidgets-2.8.10 the config.gcc is: # ========================================================================= # This configuration file was generated by ...
by evilparole
Thu Dec 24, 2009 8:33 am
Forum: C++ Development
Topic: wxDbConnectInf problem
Replies: 8
Views: 2229

ONEEYEMAN wrote:Hi,
You also need to link to the "base" library: libwxmsw28ud_base.a

Thank you.
I cann't find this library:libwxmsw28ud_base.a;
I find:libwxbase28ud.a

I linked,but is alse have the problem!
by evilparole
Thu Dec 24, 2009 1:53 am
Forum: C++ Development
Topic: wxDbConnectInf problem
Replies: 8
Views: 2229

wxDbConnectInf problem

C::B + wxWidgests 2.8.10 I include <wx/db.h> and <wx/dbtable.h>,link the lib libwxbase28ud_odbc.a libwxmsw28ud_dbgrid.a libwxmsw28ud_core.a libwxmsw28ud_adv.a but when running at: "DbConnectInf = new wxDbConnectInf(0, wxT(""), wxT(""), wxT (""));" the error li...
by evilparole
Thu Dec 24, 2009 1:35 am
Forum: wxWidgets Development (Chinese)
Topic: 加载位图的错误
Replies: 2
Views: 2299

Re: 加载位图的错误

bool MoneyApp::OnInit()
{
bool wxIsOk = true;

if(wxIsOk)
{
wxInitAllImageHandlers();
MoneyFrame* moneyFrame = new MoneyFrame(0);
moneyFrame->Show();

SetTopWindow(moneyFrame);
}

return wxIsOk;
}

wxInitAllImageHandlers();这句加了没有,需要进行注册
by evilparole
Sat Sep 05, 2009 12:42 am
Forum: wxWidgets Development (Chinese)
Topic: 请教一个窗体的问题
Replies: 3
Views: 3029

3X

谢谢你们的帮助!:)
by evilparole
Mon Aug 31, 2009 12:38 pm
Forum: wxWidgets Development (Chinese)
Topic: 请教一个窗体的问题
Replies: 3
Views: 3029

请教一个窗体的问题

我想做一个与C::B类试的那种界面,主要是像那种可移动的工具条是怎么做的?有这样的控件吗?

另外就是在主窗体中,点击左边的树型菜单中的文件时,在右边的窗体中就新打开一个查看文件子窗体,请问这个是怎么做的,在wx自带的例子中,有没有这种例子?
谢谢,,,
by evilparole
Thu Aug 20, 2009 4:46 am
Forum: C++ Development
Topic: How can I get the screen size?
Replies: 6
Views: 6018

Thanks

Thanks