Search found 234 matches

by illnatured
Fri Jan 21, 2011 8:43 am
Forum: C++ Development
Topic: Is it possible to embed another program with WX?
Replies: 4
Views: 882

You can use ::wxExecute, which works much like ShellExecute (and is available on Linux too).
by illnatured
Thu Dec 16, 2010 7:25 am
Forum: wxDev-C++
Topic: How to hide lines of code??
Replies: 2
Views: 780

wxDev-C++ doesn't seem to support outlining (this is how this feature is called in Visual Studio), but I'm not sure for I don't use that IDE. Anyway, outlining doesn't really help much with really huge programs. Try to split large files into several smaller ones and divide large functions. This is f...
by illnatured
Mon Nov 08, 2010 11:19 am
Forum: C++ Development
Topic: Linker errors
Replies: 3
Views: 760

You use Visual Studio, don't you? The reason for your second problem is probably that you have chosen invalid runtime library (i.e. not the one that wxWidgets LIBs had been linked with). I don't remember which runtime library is used by the LIBs, but you can find out easily by switching the 'Runtime...
by illnatured
Sun Nov 07, 2010 8:56 am
Forum: C++ Development
Topic: Access Violation
Replies: 3
Views: 616

The only thing that could cause access violation here is 'this' being a null (or invalid) pointer, i.e. your are calling 'setName' on an invalid pointer. Perhaps CMyClass::GetData() returns NULL?
by illnatured
Fri Nov 05, 2010 1:26 pm
Forum: C++ Development
Topic: Timley network function, should it go in its own thread?
Replies: 1
Views: 464

It is very common to perform network operations using threads, but if you want the operation to be non-blocking, you should not wait for the network function to return. Just let the main thread go further, while the secondary thread is downloading and parsing the website. And remember that the secon...
by illnatured
Fri Oct 29, 2010 3:48 pm
Forum: General Forum Issues
Topic: Ignoring forums
Replies: 1
Views: 5272

Ignoring forums

I have a small feature proposal. It would be really nice if users could add particular forums to their private ignore list. I can hardly read Russian and don't know Chinese at all, so I just don't want to see Russian and Chinese forums :?. I believe that a suitable mod exists for phpBB-based boards,...
by illnatured
Wed Oct 27, 2010 8:06 am
Forum: wxDev-C++
Topic: ListView
Replies: 5
Views: 1218

Try cleaning your project and rebuilding it again.
by illnatured
Tue Oct 26, 2010 6:37 pm
Forum: wxDev-C++
Topic: ListView
Replies: 5
Views: 1218

You need to place these definitions somewhere in your code:

Code: Select all

#define _WIN32_WINNT 0x501
#define _WIN32_IE 0x0400
by illnatured
Fri Oct 22, 2010 2:15 pm
Forum: Compiler / Linking / IDE Related
Topic: compiling project with libraries
Replies: 1
Views: 559

You need to link against wxWidgets statically. It's just a matter of choosing (in linker options) different directory with library files. I'm not sure how exactly it is called, since I'm not using CodeBlocks. For Visual Studio you would choose the 'vc_lib' directory instead of 'vc_dll'.
by illnatured
Fri Oct 22, 2010 1:54 pm
Forum: C++ Development
Topic: How to integrate wxWidget application with other C++ applica
Replies: 10
Views: 1435

I use something like this: class MyApp : public wxApp { // ... }; IMPLEMENT_APP_NO_MAIN (MyApp); void InitMyApp() { int dummy = 0; bool ok = wxEntryStart (dummy, null); assert (ok); } void ExitMyApp() { wxTheApp->OnExit(); wxEntryCleanup(); } You can just call InitMyApp from your 'main' to create wx...
by illnatured
Fri Oct 22, 2010 8:52 am
Forum: C++ Development
Topic: How to integrate wxWidget application with other C++ applica
Replies: 10
Views: 1435

Yes it is an independednt console application. I have developed a basic UI in wx Widget and now want to integrate it with that console application. It shouldn't be very hard then. If your 'main' is too complicated to replace it with IMPLEMENT_APP, then you can use IMPLEMENT_APP_NO_MAIN instead and ...
by illnatured
Thu Jul 22, 2010 6:59 am
Forum: C++ Development
Topic: Append line to existing text file problem
Replies: 2
Views: 772

The simplest way is to use wxTextFile::AddLine.
by illnatured
Mon May 10, 2010 8:07 am
Forum: C++ Development
Topic: wxMessageBox not displayed while button clicked
Replies: 4
Views: 779

Your code is valid. You don't need to use Connect if you have an event table, but this shouldn't harm. Why do you think that "nothing happens" when you press the button? Did you use a debugger to see whether OnButton1Click is actually called?
by illnatured
Tue Apr 27, 2010 1:48 pm
Forum: C++ Development
Topic: Syntax Highliting
Replies: 3
Views: 583

You can use wxScintilla. It's very simple if you only want keyword highlighting. Please let me know if you need a code sample for that control.
by illnatured
Tue Apr 27, 2010 7:11 am
Forum: C++ Development
Topic: Correct way to pass a wxList as a method parameter or return
Replies: 7
Views: 1066

You should pass all non-POD objects by reference (or by pointer) to avoid unnecessary data copying. In case of wxList the performance gain would not be significant as its data is not stored in the object itself, but just for consistency with the general rules you should not pass lists by value, eith...