Search found 80 matches

by fancyivan
Wed Apr 10, 2013 2:44 pm
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets的应用程序如果静态链接的话有多大的size?
Replies: 5
Views: 5945

Re: wxWidgets的应用程序如果静态链接的话有多大的size?

使用MinGW(gcc4.x)
wxWidgets2.8.12最小的程序在1.8M左右。
wxWidgets2.9.4最小的程序在3.5M左右。

VC++未测试,可能会更小一些。
snail_314 wrote:初来,之前用wxPython,蛮喜欢,没搞过wxWidgets,请教一下,谢谢
by fancyivan
Wed Apr 10, 2013 2:40 pm
Forum: wxWidgets Development (Chinese)
Topic: 关于打开3D动态图像
Replies: 8
Views: 9818

Re: 关于打开3D动态图像

wxMediaCtrl is a class for displaying types of media, such as videos, audio files, natively through native codecs. 这好像是跟多媒体有关的类,我真没用过该类。但感觉上好象和你的需求没啥关系。 恩是的。我比较想调用Ldview来打开。就像双击电脑图片它会让你选择打开格式那样子。 所以我先想到了用media来打开。wxMediaCtrl这个类里所可以让用户用本地默认打开方式打开。但是没能成功。我还要去改下代码。 你说的上面那个方法我觉得可能是我没办法才会选择的。听起来有点难=。=我也没...
by fancyivan
Wed Apr 10, 2013 8:16 am
Forum: C++ Development
Topic: How to transfer wxPoint2DDouble to wxPoint easily
Replies: 1
Views: 861

How to transfer wxPoint2DDouble to wxPoint easily

hello, I have a line which contians 5 points, they are double type, not integer type: x y 148.728 24.154 1152.830 24.154 1152.092 706.935 148.728 706.146 148.728 24.154 I stored them in a wxList with the type of wxPoint2DDouble: WX_DECLARE_LIST(wxPoint2DDouble, wxListOfPoints); (I shouldn't store th...
by fancyivan
Wed Apr 10, 2013 5:36 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to wxBusyCursor::GetStoredCursor()
Replies: 0
Views: 735

undefined reference to wxBusyCursor::GetStoredCursor()

hello everybody, Win7 x86 CodeBlocks12:11 MinGW(gcc4.5.2, gdb4.7.2) wxWidgets2.9.4 because I defined the function "GetCount" as a inline function: //in header file: Layer.h Class Layer { public: int GetCount(){return m_cnt;}; private: int m_cnt; }; //xxx.cpp Layer* ly = new Layer(); ...... after I c...
by fancyivan
Wed Apr 10, 2013 3:08 am
Forum: wxWidgets Development (Chinese)
Topic: 关于打开3D动态图像
Replies: 8
Views: 9818

Re: 关于打开3D动态图像

呃,没仔细看你的图片,你好像是想直接调用一下LDView软件来打开你的文件。 1.试试在命令行方式下能不能通过传递文件参数来直接打开文件,比如: c:\......>LDView.exe "d:\xx.dat" 之类的 2.使用wxExecute,示例: //异步执行程序默认行为函数将会立即返回 wxExecute(wxT("c:\\windows\\notepad.exe")); //同步执行程序函数在,程序退出以后才会返回Notepad wxExecute(wxT("c:\\windows\\notepad.exec:\\temp\\temp.txt"), wxEXECSYNC); 昨天试...
by fancyivan
Wed Apr 10, 2013 3:02 am
Forum: wxWidgets Development (Chinese)
Topic: 关于打开3D动态图像
Replies: 8
Views: 9818

Re: 关于打开3D动态图像

搜索了一下: LDView is a 3D viewer for LDraw LEGO models with a focus on quality rendering with good performance. It also contains many features geared specifically toward LDraw part authoring. LDView is a real-time 3D viewer for displaying LDraw models using hardware-accellerated 3D graphics. It was writ...
by fancyivan
Wed Apr 03, 2013 2:38 am
Forum: wxWidgets Development (Chinese)
Topic: C::B +wxWidget 编译aui范例报错哇
Replies: 3
Views: 5310

Re: C::B +wxWidget 编译aui范例报错哇

你都引用了哪些库?不够全吧。引用库时还要注意顺序问题。
by fancyivan
Sun Mar 31, 2013 1:29 pm
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets的惊人发现
Replies: 3
Views: 6130

Re: wxWidgets的惊人发现

这是在挖坟么
ccnyou wrote: 你输出的时候有没有刷新缓冲区?有没有输出\r\n?
by fancyivan
Sun Mar 24, 2013 1:39 am
Forum: C++ Development
Topic: SetManagedWindow function in wxAuiManager
Replies: 0
Views: 570

SetManagedWindow function in wxAuiManager

Hello, I saw the sample of AUI, the function SetManagedWindow is used. what does this function mean? I tried to create a hello world app in order to test this function, but app will crash..... m_aui = new wxAuiManager(this); // Tell wxAuiManager to manage this frame, if enable this, app will crash, ...
by fancyivan
Tue Mar 12, 2013 9:45 am
Forum: C++ Development
Topic: How to expand the wxTextCtrl size
Replies: 3
Views: 2084

Re: How to expand the wxTextCtrl size

hello,

wxSizerItem * Add (wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)

pls check the parameter: 'proportion'.

itemBoxSizer9->Add(itemTextCtrl11, 1, wxEXPAND|wxALL, 5);
by fancyivan
Fri Mar 01, 2013 12:41 pm
Forum: wxWidgets Development (Chinese)
Topic: 程序路径含中文字符时有异常
Replies: 12
Views: 17858

Re: 程序路径含中文字符时有异常

确定了,没有问题 肯定是你源码编译问题,从你异常的位置就可以看得到 你再找找原因吧,看看别人都是怎么编译的 谢谢kipade,这两天又重新编译了wxwidgets,并修复了这个郁闷的问题。用同一套编译好的wxWidgets Release静态链接库,samples目录下的示例webview就不会有我这种错误提示,但我在codeblocks建的项目中就会有这个提示,原因是编译samples时的makefile和codeblcks项目自动生成的makefile的某些编译参数的顺序不同导致的。 这里是系统型记录,供其他人参考: 环境:MinGW(gcc4.5.2), Win7, wxWidgets...
by fancyivan
Mon Feb 04, 2013 4:25 am
Forum: wxWidgets Development (Chinese)
Topic: 程序路径含中文字符时有异常
Replies: 12
Views: 17858

Re: 程序路径含中文字符时有异常

请指出你的环境,比如代码片段 另,你是在WIN下使用gcc吗?是用的webkit还是ie? 谢谢回复。 CodeBlocks 12.11 + MinGW(gcc 4.5.2) + wxWidgets2.9.4 + 默认的IE核 我新建了一个project,里面就放一个wxWebView,一样的效果。 在运行时需要确保index.html文件的绝对路径包含有中文字符。 wxWebView_TestDialog::wxWebView_TestDialog(wxDialog *dlg, const wxString &title) : wxDialog(dlg, -1, title) { this...
by fancyivan
Sat Feb 02, 2013 4:45 pm
Forum: wxWidgets Development (Chinese)
Topic: 程序路径含中文字符时有异常
Replies: 12
Views: 17858

Re: 程序路径含中文字符时有异常

kipade wrote:源文为unicode没有太大作用吧,对于wx来说,使用unicode是有配置选项的
中文路径有问题基本上不应该再发生了
既然你遇到了,你跟踪一下看看是哪里出了问题就知道了
比如,走到最后,调用了CreateFileW,这个时候,再看看你传递的参数对应的数据是不是unicode,如果不是,肯定出错
反之亦然
问题在wxWebView->LoadURL(wxT(".....")); 因为传进去的路径含有中文字符,所以会报alert,但控件可以正常打开web页面。

尝试过很多办法,但alert依旧。继续搜索中。
by fancyivan
Tue Jan 29, 2013 7:04 am
Forum: wxWidgets Development (Chinese)
Topic: 下载wxSQLite压缩包报病毒
Replies: 2
Views: 6561

Re: 下载wxSQLite压缩包报病毒

Hello Ulrich, thank you for your replay. I download it from http://sourceforge.net/projects/wxcode/files/Components/wxSQLite3/wxsqlite3-3.0.2.zip/download directly. yes, I also think it's a false positive. I have already send this problem to the producer. Tao 不知道360这特征码扫的准不准。 From where was the file...
by fancyivan
Tue Jan 29, 2013 2:38 am
Forum: wxWidgets Development (Chinese)
Topic: 程序路径含中文字符时有异常
Replies: 12
Views: 17858

Re: 程序路径含中文字符时有异常

谢谢回复,操作系统的话,一直是简体中文,没有变过。我用windows xp和win7都测试过,问题相同。

编译wxwidgets2.9.4,直接是
>mingw32-make -f makefile.gcc BUILD=release,其它的参数木没变过。
另外在codeblocks12:11中,也指定源文件为UNICODE了,

我再查查,也许可能问题是出在我程序中打开文件的环节。