Search found 14 matches

by wonderli
Thu Apr 22, 2010 2:23 am
Forum: C++ Development
Topic: Questions about wxWidgets for IPv6
Replies: 6
Views: 1295

jfm429 wrote:wxWidgets also apparently does not support UDP, only TCP. No full IPV6 support + no UDP support means you should be looking elsewhere. Maybe sometime wxWidgets will support them, but for now you're out of luck.
May be I should try ACE instead of wxWidgets.
Thank you~
by wonderli
Thu Apr 22, 2010 12:26 am
Forum: C++ Development
Topic: Questions about wxWidgets for IPv6
Replies: 6
Views: 1295

Re: Questions about wxWidgets for IPv6

Hi, there I am doing my final year project by using wxWidgets, I should implement an application with IPv6 support. However, I found wxWidgets manual says that IPv6 is under experiment in 2.8.10 version and in 2.9 unstable version wxWidgets support part of IPv6. So I got a problem: The communicatio...
by wonderli
Wed Apr 21, 2010 1:51 pm
Forum: C++ Development
Topic: Questions about wxWidgets for IPv6
Replies: 6
Views: 1295

Questions about wxWidgets for IPv6

Hi, there I am doing my final year project by using wxWidgets, I should implement an application with IPv6 support. However, I found wxWidgets manual says that IPv6 is under experiment in 2.8.10 version and in 2.9 unstable version wxWidgets support part of IPv6. So I got a problem: The communication...
by wonderli
Wed Apr 21, 2010 1:30 pm
Forum: wxWidgets Development (Chinese)
Topic: 想问下关于wxWidgets支持IPv6的问题
Replies: 0
Views: 1316

想问下关于wxWidgets支持IPv6的问题

毕业设计需要用到wxWdigets库做一个跨平台的网络程序。
目前我用的是wxWidgets 2.8.10版,看官方manual说IPv6说是处于实验中,不过在wxWidgets 的unstable版中提到了对于IPv6的支持。
我的毕设主要是用wxWidgets的IPv6这部分做收发包还有获取本机的IP和MAC地址。
所以想问问大家关于wxWidgets这部分的支持怎么样,如果要是不行的话,可能我就要面对ACE了...
谢谢大家了~
by wonderli
Wed Mar 17, 2010 1:16 pm
Forum: wxWidgets Development (Chinese)
Topic: 求助,关于使用wxWidgets创建多个标签的问题
Replies: 4
Views: 3456

Re: 求助,关于使用wxWidgets创建多个标签的问

太感谢了,刚才我试了一下,成功了~ 原来我的理解是每一个标签都是一个Notebook,看了您给的解释才明白panel的作用~ 对了,您能推荐些关于wxWidgets的资料吗?我想好好学习一下~ 感谢您的热心回答,我试了一下您的代码,里面的ID_PANEL等宏貌似是您的程序中自定义的,我把它们都改为了-1,我还把那个imagelist删掉了,不过,还是不行,编译虽然过了,不过程序直接crash了。。。 您能帮忙简单说下添加标签页的过程吗?或者相关链接也行~ 如果要加那种选项卡的标签,必须要用wxPanel的容器来装?需要用到sizer吗?sizer主要是起什么作用啊? 太感谢了! wxNoteb...
by wonderli
Wed Mar 17, 2010 3:16 am
Forum: wxWidgets Development (Chinese)
Topic: 求助,关于使用wxWidgets创建多个标签的问题
Replies: 4
Views: 3456

Re: 求助,关于使用wxWidgets创建多个标签的问

感谢您的热心回答,我试了一下您的代码,里面的ID_PANEL等宏貌似是您的程序中自定义的,我把它们都改为了-1,我还把那个imagelist删掉了,不过,还是不行,编译虽然过了,不过程序直接crash了。。。 您能帮忙简单说下添加标签页的过程吗?或者相关链接也行~ 如果要加那种选项卡的标签,必须要用wxPanel的容器来装?需要用到sizer吗?sizer主要是起什么作用啊? 太感谢了! 毕设需要使用到wxWidgets,打算设计成附件sample中的样子 不过,没太搞清楚wxNotebook的类的用法,只做出了附件Screenshot-Main Menu中的样子 源码特别简单,如下: #in...
by wonderli
Tue Mar 16, 2010 3:47 am
Forum: wxWidgets Development (Chinese)
Topic: 求助,关于使用wxWidgets创建多个标签的问题
Replies: 4
Views: 3456

求助,关于使用wxWidgets创建多个标签的问题

毕设需要使用到wxWidgets,打算设计成附件sample中的样子 不过,没太搞清楚wxNotebook的类的用法,只做出了附件Screenshot-Main Menu中的样子 源码特别简单,如下: #include "MainFrame.h" MainFrame::MainFrame(const wxString& title) : wxFrame(NULL,wxID_ANY,title,wxDefaultPosition, wxSize(500,500)) { wxNotebook *myNotebook=new wxNotebook(this,-1,wxDefaultPosition,...
by wonderli
Tue Mar 02, 2010 8:54 am
Forum: wxWidgets Development (Chinese)
Topic: 关于使用wxWidgets获取本机IP地址,MAC地址的问
Replies: 7
Views: 4194

class wxMACAddressUtility { public: static wxString GetMACAddress() { unsigned char result[6]; if(GetMACAddress(result) == 0) { return wxString::Format(wxT("%02X:%02X:%02X:%02X:%02X:%02X"), (unsigned int)result[0], (unsigned int)result[1], (unsigned int)result[2], (unsigned int)result[3], (unsigned...
by wonderli
Tue Mar 02, 2010 8:41 am
Forum: wxWidgets Development (Chinese)
Topic: 关于使用wxWidgets获取本机IP地址,MAC地址的问
Replies: 7
Views: 4194

Re: 关于使用wxWidgets获取本机IP地址,MAC地址的

wxIPV4address ip; wxString hostName = wxGetHostName(); ip.Hostname( hostName ); wxString ip_str = ip.IPAddress(); 谢谢,这个方法我试了,不知道为什么总是返回255.255.255.255广播地址,很诡异... 这是获取的lan网IP。 请检查你的ip地址,是否设置,或者DHCP是否分配上。如果没有IP,返回的是127.0.0.1。 具体你返回广播地址这种情况,那我的确没遇到过,你跟踪调试看看 我才试了没问题。 我又查了一下自己的机器,可能这东西跟系统的Hosts有关 当我机器的h...
by wonderli
Mon Mar 01, 2010 10:52 am
Forum: wxWidgets Development (Chinese)
Topic: 关于使用wxWidgets获取本机IP地址,MAC地址的问
Replies: 7
Views: 4194

Re: 关于使用wxWidgets获取本机IP地址,MAC地址的

毕设要写一个跨平台程序,需要获取本机的IP和MAC地址,原文档设计的时候说是准备调用ifconfig或者ipconfig等系统原生程序然后进行提取,不过这样有个问题:不同机器的语言可能不一样,所以ifconfig或ipconfig的输出就不一样,处理起来可能会特别麻烦... 打算换种思路处理,想问下大家,wxWidgets 2.8.10的库的那些类可以实现这个功能? 我自己也尝试了用网上流传的通过wxWidgets的库获取IP地址的方法(源码在下面),不过它只返回本地环回的地址:127.0.1.1,wiki上貌似提到了这个问题,不过没看懂,囧... 想问下大家有什么建议,谢谢了~ 源码如下:...
by wonderli
Tue Feb 16, 2010 6:22 am
Forum: C++ Development
Topic: About wxWidgets to get system IP and MAC address problem
Replies: 2
Views: 1224

I've find my hosts file was modified, then I change the hosts file to the default. However, when I use wxGetFullHostName() in source code the result comes out is : 14:02:58: Error: Cannot get the official hostname (error 110: Connection timed out) 14:02:58: Warning: Trying to solve a NULL hostname: ...
by wonderli
Mon Feb 15, 2010 5:12 pm
Forum: C++ Development
Topic: About wxWidgets to get system IP and MAC address problem
Replies: 2
Views: 1224

About wxWidgets to get system IP and MAC address problem

Hi,there: I am writting a cross-platform program need to get the host IP and MAC address. The original document design this part by using ifconfig or ipconfig. However, in different Operating System the result will be different(different language lay out), it is hard to process I think. So I am thin...
by wonderli
Mon Feb 15, 2010 4:32 pm
Forum: wxWidgets Development (Chinese)
Topic: 关于使用wxWidgets获取本机IP地址,MAC地址的问
Replies: 7
Views: 4194

关于使用wxWidgets获取本机IP地址,MAC地址的问

毕设要写一个跨平台程序,需要获取本机的IP和MAC地址,原文档设计的时候说是准备调用ifconfig或者ipconfig等系统原生程序然后进行提取,不过这样有个问题:不同机器的语言可能不一样,所以ifconfig或ipconfig的输出就不一样,处理起来可能会特别麻烦... 打算换种思路处理,想问下大家,wxWidgets 2.8.10的库的那些类可以实现这个功能? 我自己也尝试了用网上流传的通过wxWidgets的库获取IP地址的方法(源码在下面),不过它只返回本地环回的地址:127.0.1.1,wiki上貌似提到了这个问题,不过没看懂,囧... 想问下大家有什么建议,谢谢了~ 源码如下: ...
by wonderli
Mon Feb 15, 2010 2:04 am
Forum: wxWidgets Development (Chinese)
Topic: =自我介绍=(新人可来这里对自己作自我介绍)
Replies: 146
Views: 207103

新人,现在在BUPT读大四,学习的是通信专业,自由软件爱好者,Linux and VIM fans,毕业设计需要用到wxWidgets为一个通讯软件写GUI,在论坛学习中,请大家多多关照~