Search found 246 matches

by Tyler
Fri Oct 07, 2005 8:19 pm
Forum: C++ Development
Topic: To stupid to use sizers
Replies: 1
Views: 2254

Hey Florianx, Well when you're working with the stretch capability of sizers, there's two factors you need to take into account. Those would be the second and third parameters to the Add function. The second parameter dictates if the control can stretch in the direction of the sizer's orientation . ...
by Tyler
Wed Sep 28, 2005 7:22 pm
Forum: Open Discussion
Topic: Fox?
Replies: 2
Views: 2280

Ahh, thank ya.
by Tyler
Wed Sep 28, 2005 7:16 pm
Forum: C++ Development
Topic: wxURL.GetInputStream fails with file protocol
Replies: 3
Views: 1898

Try this:

Code: Select all

wxString path = "c:\\whatever.xml";
path = wxURL::ConvertToValidURI(path)
wxURL url(path);
wxInputStream *data;
data = url.GetInputStream();
That may not solve the problem but I read somewhere that you should call ConvertToValid first.
by Tyler
Wed Sep 28, 2005 7:12 pm
Forum: Compiler / Linking / IDE Related
Topic: How to compile making use of VC++ 6.0: the real story...
Replies: 3
Views: 2669

Congratulations. I'm glad you got it working. Keep in mind though that between wx upgrades your project settings will change so you should always go back and copy one of the samples between upgrades (usually major).
by Tyler
Wed Sep 28, 2005 12:12 pm
Forum: Open Discussion
Topic: Fox?
Replies: 2
Views: 2280

Fox?

Has anyone heard of Fox Toolkit? http://www.fox-toolkit.org/

It looks a lot like wx except not as extensive, but I was wondering if anyone had any experience with it and how it ranked in comparison to wx in your opinion.
by Tyler
Wed Sep 21, 2005 11:03 pm
Forum: C++ Development
Topic: Deleting non-modal dialogs
Replies: 9
Views: 3024

Code: Select all

MyModal* modal = new MyModal(this);
// Show the modal dialog.. this function blocks
modal->ShowModal();
// After they push "OK" on modal and the OK button calls Hide();
// we destroy the dialog
modal->Destroy();

hope that helps...
by Tyler
Thu Sep 15, 2005 4:40 am
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

It was a blasted bug in wx. I believe I've got it. in src\common\url.cpp I altered the code to be the following: // When we use a proxy, we have to pass the whole URL to it. wxInputStream *the_i_stream; if (!m_useProxy) { the_i_stream = m_protocol->GetInputStream(m_url); } else { wxString fullPath =...
by Tyler
Wed Sep 14, 2005 8:09 pm
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

Sure,

goto = {"http://www.mycustomcd.com/index.php"}

and proxyStr = {"192.168.1.101:80"}

My ip is 192.168.1.102.


-Tyler
by Tyler
Wed Sep 14, 2005 12:22 pm
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

Hmm, even though I think my code is right, something is still awry. Here's what I'm using: wxInputStream *data; // wxURL::SetDefaultProxy(proxyStr); wxURL url2(goTo); // goto is the full url to a php script url2.SetProxy(proxyStr); //proxy string is in the format proxyServer:port data = url2.GetInpu...
by Tyler
Tue Sep 13, 2005 5:49 pm
Forum: Compiler / Linking / IDE Related
Topic: C4663: C++ language change
Replies: 3
Views: 1988

That doesn't look so much like an error, as a warning? I'd imagine the fix may involve typcasting, but does this warning actually stop the compilation?
by Tyler
Fri Sep 09, 2005 2:55 am
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

Thanks!
by Tyler
Fri Sep 09, 2005 1:54 am
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

wxURL::SetDefaultProxy or wxURL::SetProxy?
by Tyler
Thu Sep 08, 2005 12:23 pm
Forum: C++ Development
Topic: Proxy Server with wxURL
Replies: 15
Views: 4990

Proxy Server with wxURL

In my application I use wxURL to access the internet and retrieve information from a web page. The problem is, it doesn't work from behind my user's proxy server. How would I go about getting around this? Is it as simple as changing my url from www.wxforum.org to www.wxforum.org:proxyPort ? Thanks f...
by Tyler
Mon Sep 05, 2005 4:14 pm
Forum: C++ Development
Topic: Child Threads Writing to Parent's Control
Replies: 2
Views: 1516

Thanks! That cleared things up a lot.
by Tyler
Mon Sep 05, 2005 3:50 pm
Forum: C++ Development
Topic: Child Threads Writing to Parent's Control
Replies: 2
Views: 1516

Child Threads Writing to Parent's Control

Has anyone run into this bug before?
C:\wxWidgets-2.6.1\src\msw\textctrl.cpp(122): assert "m_count == -1" failed: wrong initial m_updatesCount value [in child thread]
I keep getting this assertion when trying to write to a wxTextCtrl in my top level window from a child thread.