Search found 33 matches

by ccnyou
Wed Nov 27, 2013 5:38 pm
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets 创建的DLL不能调试
Replies: 2
Views: 2443

Re: wxWidgets 创建的DLL不能调试

请使用debug模式编译wxwdigets
by ccnyou
Tue Jun 25, 2013 8:55 am
Forum: wxCode
Topic: Will the components of wxCode be a part of wxWidgets one day
Replies: 3
Views: 2189

Will the components of wxCode be a part of wxWidgets one day

I'd like to code with wxCurl to support https in my project. I use the wx 2.9.4(svn version). There are some error in wxCurl when I compile wxCurl. How I wish wxCurl could be one part of wxWidgets so that I can use it directly.
by ccnyou
Sun Jun 09, 2013 9:06 am
Forum: wxWidgets Development (Chinese)
Topic: wiki 中 的 wxImagePanel 的闪烁问题
Replies: 0
Views: 3914

wiki 中 的 wxImagePanel 的闪烁问题

http://wiki.wxwidgets.org/An_image_panel
里面提供了两个 wxImagePanel 的实现,第二份代码直接运行在拖动窗口大小时候是会造成闪烁的。
根据wxBufferedDC中的描述,发现在初始化(wxImagePanel构造函数)部分加上一行代码:
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
或者
SetBackgroundStyle(wxBG_STYLE_PAINT);
均可解决次问题。
建议有修改wiki权限的同学加上
by ccnyou
Sat Apr 27, 2013 5:06 am
Forum: wxWidgets Development (Chinese)
Topic: Cannot initialize OLE
Replies: 1
Views: 4596

Re: Cannot initialize OLE

遇到同样的问题,但是估计是我系统问题。同一个程序不同机器就没有出现了
by ccnyou
Wed Apr 24, 2013 2:07 am
Forum: wxWidgets Development (Chinese)
Topic: You forgot to call g_type_init()
Replies: 2
Views: 5417

Re: You forgot to call g_type_init()

检查你代码中用到的全局变量
by ccnyou
Fri Mar 29, 2013 11:33 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets的惊人发现
Replies: 3
Views: 5934

Re: wxWidgets的惊人发现

davidfluid wrote:在wxWidgets的自带的打印的例子中
if (!printer.Print(this, &printout, true /*prompt*/))

当把true /*prompt*/ 改成false ,居然打印不成功????哎
你输出的时候有没有刷新缓冲区?有没有输出\r\n?
by ccnyou
Thu Mar 28, 2013 11:02 am
Forum: wxWidgets Development (Chinese)
Topic: wxFSVolume中的bug
Replies: 6
Views: 8445

Re: wxFSVolume中的bug

doublemax wrote:wxFSVolume::GetVolumes() is a static method.

Try this:

Code: Select all

wxArrayString volumes = wxFSVolume::GetVolumes();
there is nothing about static, thanks
by ccnyou
Thu Mar 28, 2013 10:51 am
Forum: wxWidgets Development (Chinese)
Topic: 如何在wxWidgets中响应系统事件?
Replies: 2
Views: 5100

Re: 如何在wxWidgets中响应系统事件?

EVT_CLIPBOARD_CHANGED(MyFrame::OnClipboardChange)
by ccnyou
Thu Mar 28, 2013 8:19 am
Forum: wxWidgets Development (Chinese)
Topic: 如何用wxwidgets创建一个应用程序的用户登录界
Replies: 3
Views: 5618

Re: 如何用wxwidgets创建一个应用程序的用户登录界

那就创建啊,你可以用对话框,两个输入控件,两个按钮。
by ccnyou
Thu Mar 28, 2013 8:16 am
Forum: wxWidgets Development (Chinese)
Topic: 如何在wxWidgets中响应系统事件?
Replies: 2
Views: 5100

Re: 如何在wxWidgets中响应系统事件?

看wxWidgets下面的Simples,有个 ClipBoard 的例子,里面实现了OnClipBoardChange
by ccnyou
Wed Jan 30, 2013 6:48 am
Forum: wxWidgets Development (Chinese)
Topic: 如何在dll中使用wxWidgets?在线等!!
Replies: 2
Views: 5185

Re: 如何在dll中使用wxWidgets?在线等!!

参考 samples\dll 在DLL中使用wx,还是需要提供是一个wxApp。可以这样写一个 /*--------------------------------------------------------------------------- dawnwxApp -----------------------------------------------------------------------------*/ class dawnwxApp : public wxApp { public: virtual bool OnInit() { return true; } }; D...
by ccnyou
Sat Jan 26, 2013 9:19 am
Forum: wxWidgets Development (Chinese)
Topic: visualc++2008中怎么新建wxWidgets工程啊?
Replies: 2
Views: 5453

Re: visualc++2008中怎么新建wxWidgets工程啊?

这里有个我做的VS2008的应用程序向导
http://blog.csdn.net/ccnyou/article/details/8001353
挺方便的

手工创建的话参考楼上
by ccnyou
Fri Jan 18, 2013 8:36 am
Forum: wxWidgets Development (Chinese)
Topic: wxFSVolume中的bug
Replies: 6
Views: 8445

Re: wxFSVolume中的bug

kipade wrote:代码在你手上
你可以单步调试
我没用过win7,至少在xp下是没有问题的
希望你做下进一步的详细调查,再做定论
当然有单步进去过,的确是wx的代码引发的异常,所以我才发出来滴。只要用windows7调试下就知道了
by ccnyou
Sat Jan 05, 2013 2:12 pm
Forum: wxWidgets Development (Chinese)
Topic: wxFSVolume中的bug
Replies: 6
Views: 8445

wxFSVolume中的bug

环境:win7 X64 + vs2008sp1 + wxWidgets2.94 测试代码: #include <wx/wx.h> #include <wx/volume.h> int main(int argc, char* argv[]) { wxInitializer initlializer(argc,argv); wxFSVolume fsVolume; wxArrayString volumes = fsVolume.GetVolumes(); return 0; } 异常:wxFSVolumeBug.exe 中的 0x755fb727 处最可能的异常: 0x000006BA: RP...