Search found 172 matches

by rodrigod
Fri Mar 20, 2009 7:37 pm
Forum: C++ Development
Topic: Major wxFileConfig bug
Replies: 13
Views: 1852

Yeah I kind of know that but I was working on theying to discover the problem and was getting p**** off. So I posted saying bug, now that I am building a application just to test this I will post exactly what happened. Sorry for the bad choice of words. I will try to test it on linux next to see how...
by rodrigod
Fri Mar 20, 2009 6:56 pm
Forum: C++ Development
Topic: Major wxFileConfig bug
Replies: 13
Views: 1852

Major wxFileConfig bug

I have found a major bug on wxFileConfig. I use wxWidgets 2.8.9 on windows with VC++ 2005. Also wxGtk 2.8.9 with OpenSuse 11.1 compiling with gcc (downloaded the latest stable version on the end of february dont know which one exactly right now) After hours loosing hair and trying to discover why th...
by rodrigod
Thu Mar 19, 2009 6:35 pm
Forum: Compiler / Linking / IDE Related
Topic: errors building wxWidgets in VS2008
Replies: 11
Views: 2094

Actually if those are all the errors you get, it means that only odbc didnt get compiled

So if you are not planning on using it (and you shouldn't) than everything is all right.


Bye
by rodrigod
Tue Mar 17, 2009 2:30 am
Forum: C++ Development
Topic: wxWidgets as dll execution problem
Replies: 4
Views: 871

After some research with the help of the know it all google, it seems that the version 2.8.9 has this bug that with widgets as dll, when you link another dll statically it hangs when loading the dll. It was said that version 2.9.0 had this bug fixed. I am waiting for widgets 3 to update. Any clues a...
by rodrigod
Fri Mar 13, 2009 7:38 pm
Forum: C++ Development
Topic: wxWidgets as dll execution problem
Replies: 4
Views: 871

Thanks but still not working.

I think its because there isomething that wxentry does that he only allows the main thread to do.
by rodrigod
Fri Mar 13, 2009 5:42 pm
Forum: C++ Development
Topic: wxWidgets as dll execution problem
Replies: 4
Views: 871

wxWidgets as dll execution problem

In my application I have many dll's. With wxWidgets comiled as a static library everything works great. But when I started to use it as dll, everything compiles but when the dll is loaded during execution the program crashes. I am linking the libraries with the .lib files on windows. Here is some of...
by rodrigod
Wed Mar 11, 2009 7:01 pm
Forum: wxCode
Topic: DatabaseLayer as a DLL
Replies: 7
Views: 1955

there is one other detail, is not just add wxexport you need to define a macro for it to choose either to export or import here is what I did: #ifdef DLL_EXPORTS #define EXPORT WXEXPORT #else #define EXPORT WXIMPORT #endif class EXPORT just did a search and replace for "class" Ow and just one more t...
by rodrigod
Wed Mar 11, 2009 4:42 pm
Forum: Compiler / Linking / IDE Related
Topic: COMPILE WITH VISUAL STUDIO 2008
Replies: 3
Views: 655

just type wxwidgets vc++ wiki on google and the first page will be a tutorial on the configuration.
by rodrigod
Wed Mar 11, 2009 4:38 pm
Forum: wxCode
Topic: DatabaseLayer as a DLL
Replies: 7
Views: 1955

jb_coder, I only use odbc and postgre, so what I did was simply add WXEXPORT on all the classes contained in the headers of each of these projects. It's not much work, and since i didn't know exactly which one of these classes I use or will use I thought better to export all the classes. Worked as a...
by rodrigod
Mon Mar 09, 2009 4:37 pm
Forum: wxCode
Topic: DatabaseLayer as a DLL
Replies: 7
Views: 1955

My problem was that DatabaseLayer wasn't exporting any classes. So I had to add a WXEXPORTS on the classes that needed exporting and it's ok now.

But here is the idea to jbcoder to add this to the library.


Bye
by rodrigod
Fri Feb 27, 2009 5:37 pm
Forum: C++ Development
Topic: wxAtoi
Replies: 4
Views: 972

you are passing a char when it receives a char*. wxAtoi is nothing but a macro to the real atoi function, so thats all the documentation you need. And wxChar is a macro for char.
by rodrigod
Fri Feb 27, 2009 4:01 pm
Forum: C++ Development
Topic: Cautions when using widgets as a dynamic library?
Replies: 0
Views: 418

Cautions when using widgets as a dynamic library?

I was linking wxWidgets statically and was working fine, but since I decided to use wxDynamicLibrary and it said that I should use widgets dynamically for it I recompiled everything. It is an application with many dll's, and when the first one is called it crashes with the Assert "only main thread m...
by rodrigod
Thu Feb 26, 2009 5:56 pm
Forum: Platform Related Issues
Topic: Dinamic loading Static linking on linux
Replies: 14
Views: 1650

I have tried with and without widgets on both files. It seems to be something that is platform especific that widgets didn't port or something like that. Because I simply couldn't find a way to automatically enter OnInit. If so, there is no need to declare a wxApp if it is a library, since you can't...
by rodrigod
Thu Feb 26, 2009 2:57 pm
Forum: Platform Related Issues
Topic: Dinamic loading Static linking on linux
Replies: 14
Views: 1650

I am trying with something very simple to see if I can make it go through OnInit. Here is the code for the executable using namespace std; extern "C" void foo(); int main (int argc, char *argv[]) { cout << "Hello world!" << endl; foo(); return 0; } this would be the code for the linked shared object...
by rodrigod
Thu Feb 26, 2009 2:28 pm
Forum: Platform Related Issues
Topic: Dinamic loading Static linking on linux
Replies: 14
Views: 1650

i tried using IMPLEMENT_APP, still it doesn't go through OnInit, and neither wxMessageBox, printf and wxLogDebug worked. If I make a small project reproducing this would you mind taking look?

thanks