Search found 102 matches
- Thu Jan 25, 2018 6:19 pm
- Forum: wxWidgets Development (Chinese)
- Topic: wxHtmlwindow 显示中文办法
- Replies: 0
- Views: 20128
wxHtmlwindow 显示中文办法
我使用的 是 wxWidgets 3.10 Unicode wxString mHtmlPath(wxT("d:\\a.html")); wxHtmlWindow *mHtml; // Init...... wxFileInputStream fs(mHtmlPath); wxTextInputStream tfs(fs); wxString ret = tfs.ReadLine(), results; while(!tfs.GetInputStream().Eof()){ results += ret; ret = tfs.ReadLine(); } results +=...
- Thu Jan 25, 2018 6:16 pm
- Forum: C++ Development
- Topic: On the random code problem of wxHtmlWindow
- Replies: 5
- Views: 2834
On the random code problem of wxHtmlWindow
I don't know what's the two way below different? Where is the difference? the wxWidgets is 3.10_Unicode eg: the file: d:\\a.html. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>测试wxHtmlWindow</title> </head> <body> <h1>我的第一个标题</h1> <p>我的第一个段落。</p> </body> </html> now , load th...
- Tue Jan 23, 2018 3:07 am
- Forum: wxWidgets Development (Chinese)
- Topic: 各位,wxsocketclient 封装在DLL中 用在控制台程序怎么初始化它?
- Replies: 1
- Views: 22790
- Tue Jan 23, 2018 1:34 am
- Forum: C++ Development
- Topic: [Help] How to use DLL with wxSocketClient in the console program
- Replies: 3
- Views: 1769
Re: [Help] How to use DLL with wxSocketClient in the console program
Thanks for doublemax ! Let me solve this problem. if the program is Not GUI. so this's not the wxApp::OnInit(), so I must Init wxwidgets myself. so in the console program, I can do this: int _tmain(int argc, _TCHAR* argv[]) { //Init wxwidgets first, then Init wxsocket wxInitialize(); wxSocketBase::...
- Mon Jan 22, 2018 10:03 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何在wxThread里面使用wxSocketBase接收事件呢?
- Replies: 1
- Views: 15280
Re: 如何在wxThread里面使用wxSocketBase接收事件呢?
可以直接继承wxthread
然后用wxsocketclient 循环接收处理就可以了。
好像这个帖子好久了。。我在挖坟????
然后用wxsocketclient 循环接收处理就可以了。
好像这个帖子好久了。。我在挖坟????
- Mon Jan 22, 2018 9:58 am
- Forum: wxWidgets Development (Chinese)
- Topic: 各位,wxsocketclient 封装在DLL中 用在控制台程序怎么初始化它?
- Replies: 1
- Views: 22790
各位,wxsocketclient 封装在DLL中 用在控制台程序怎么初始化它?
如题
wxsocket封装比较方便而且自带有压缩功能所以我想把他连同自己的数据控制通讯封装进dll中,供现在正在做的一个控制台程序用。但是没办法初始化。。
提示:不能在不是主线程的线程中初始化。。。。
这个要怎么搞?
wxsocket封装比较方便而且自带有压缩功能所以我想把他连同自己的数据控制通讯封装进dll中,供现在正在做的一个控制台程序用。但是没办法初始化。。
提示:不能在不是主线程的线程中初始化。。。。
这个要怎么搞?
- Mon Jan 22, 2018 9:28 am
- Forum: C++ Development
- Topic: Limiting resize for (scrolled) image display
- Replies: 54
- Views: 9400
Re: Limiting resize for (scrolled) image display
I'm struggling a bit with sizers and scrolling (using wxWidgets 2.8.12). I'm trying to display a very large bitmap with scrolling. I have a frame with a sizer, incorporating a wxScrollWindow containing the bitmap. Scrolling/Sizing works OK except that resizing the frame allows a size greater than t...
- Sun Jan 21, 2018 7:00 am
- Forum: C++ Development
- Topic: How to put in wxListCtrl item a wxPanel?
- Replies: 4
- Views: 1235
Re: How to put in wxListCtrl item a wxPanel?
I understand that what you need is wxVScrolledWindow
- Sat Jan 20, 2018 4:36 am
- Forum: C++ Development
- Topic: [Help] How to use DLL with wxSocketClient in the console program
- Replies: 3
- Views: 1769
Re: [Help] How to use DLL with wxSocketClient in the console program
Hi, Are you doing both GUI and console application? Or the application will be the same with the switch? Thank you. My previous project was GUI, so I encapsulated my own network communication into ATL DLL(dll only use wxsocket). But now the project is only on the console. And only use the network c...
- Thu Jan 18, 2018 8:50 pm
- Forum: C++ Development
- Topic: [Help] How to use DLL with wxSocketClient in the console program
- Replies: 3
- Views: 1769
[Help] How to use DLL with wxSocketClient in the console program
My ATL dll used wxsocketClinet. but now the program need in console.
but. I can't Initialize in the Main......
How can I do Now?
but. I can't Initialize in the Main......
How can I do Now?
- Mon Dec 11, 2017 9:12 pm
- Forum: C++ Development
- Topic: [help]ERROR:mismatch between message and socket?
- Replies: 6
- Views: 1501
Re: [help]ERROR:mismatch between message and socket?
Yes, I need to do that. Thanks very muchONEEYEMAN wrote:Hi,
If you have a problem in the Debug build - most likely the Release version just hides it.
Try to find what the problem is by looking at the sample (if you were able to run it successfully) and your code.
Thank you.
- Mon Dec 11, 2017 3:47 pm
- Forum: C++ Development
- Topic: [help]ERROR:mismatch between message and socket?
- Replies: 6
- Views: 1501
Re: [help]ERROR:mismatch between message and socket?
ONEEYEMAN wrote:Hi,
Are you able to execute a server/client sample from wxWidgets distribution?
If you are - can you make it to produce the same issue?
Thank you.
Sorry, I can't make the same issue.
So I don't know what's the problem, too.
But luckily it's just a warning, release is okay.
- Wed Nov 22, 2017 8:19 am
- Forum: C++ Development
- Topic: [help]ERROR:mismatch between message and socket?
- Replies: 6
- Views: 1501
Re: [help]ERROR:mismatch between message and socket?
Hi, Usual stanza: What is you wx version? What OS are trying this on? Do you have firewall running? And of course - can you reproduce it in the socket sample ( with possible minimal changes)? Thank you. Hi, I use wx3.10 in Win7-64 . No firewall. and ,My project has a lot of Socket connections. So I...
- Sun Nov 12, 2017 5:54 am
- Forum: C++ Development
- Topic: [help]ERROR:mismatch between message and socket?
- Replies: 6
- Views: 1501
[help]ERROR:mismatch between message and socket?
The Running Error:mismatch between message and socket? the code: //src/msw/sockmsw.cpp /* Windows proc for asynchronous event handling */ LRESULT CALLBACK wxSocket_Internal_WinProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { if ( uMsg < WM_USER || uMsg > (WM_USER + MAXSOCKETS - 1)) return ...
- Sat Nov 11, 2017 12:33 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 如何把资源文件(文本类型)编译进程序?
- Replies: 1
- Views: 14602
Re: 如何把资源文件(文本类型)编译进程序?
我是用 wx + vs2010 资源是可以正常使用的
不知道你用的是哪种编译器
不知道你用的是哪种编译器