Search found 15 matches

by quandary
Sun Jun 14, 2009 10:21 am
Forum: Compiler / Linking / IDE Related
Topic: ODBC example doesn't compile on Win64?
Replies: 2
Views: 1018

maybe you still have to set USE_ODBC=1 in setup.h. I've not yet had the time to try, but I would anyway have tried that. Apart from that, ODBC support in wxWidgets itself is unmaintained and will be removed from the next version. Maybe you should check wxDatabaseLayer. Hmm, didn't know that... What...
by quandary
Wed Jun 10, 2009 6:21 pm
Forum: Compiler / Linking / IDE Related
Topic: ODBC example doesn't compile on Win64?
Replies: 2
Views: 1018

ODBC example doesn't compile on Win64?

Does the wxWidgets verson contain errors in the nmake files? I compiled wxWidgets on Vista64 with Visual Studio 2005 like this: Statically linked (unicode yn/debug yn): done: C:\wxWidgets-2.8.10\build\msw>nmake -f makefile.vc MONOLITHIC=0 SHARED=0 BUILD=debug USE_OPENGL=0 USE_ODBC=1 UNICODE=0 USE_EX...
by quandary
Thu May 08, 2008 3:21 pm
Forum: C++ Development
Topic: wxWidgets Executable Size
Replies: 4
Views: 1268

lester wrote: maybe on windows You have static linked .exe?
Yes I do.
Hm, I installed the Linux version of wxWidgets with apt-get.

Does that mean that the Linux-version is dynamically linked by default ?

So it will miss the wxWidgets runtime on Linux, if it isn't installed?
by quandary
Thu May 08, 2008 2:52 pm
Forum: C++ Development
Topic: wxWidgets Executable Size
Replies: 4
Views: 1268

wxWidgets Executable Size

Hi! I have a wxWidgets application. Basically, what it does is opening a OpenFile Dialog box and then writing the filename and path into a config file. Now, I now that the executable size of wxWidgets is supposed to be rather big. But I compiled my application on Windows, where it gets 4.5 MB big, a...
by quandary
Sat May 03, 2008 8:34 pm
Forum: C++ Development
Topic: Async process execute
Replies: 4
Views: 1368

Hi, Try using this: // a function that applies list of environment variables before excuting an async command void MainFrame::DoAsyncExec(const wxString& cmd, const wxArrayString &env) { // set the environement variables before executing the command for (size_t i=0; i<env.GetCount(); i++) {...
by quandary
Fri May 02, 2008 5:40 pm
Forum: C++ Development
Topic: Async process execute
Replies: 4
Views: 1368

bump
by quandary
Thu May 01, 2008 9:17 pm
Forum: C++ Development
Topic: Async process execute
Replies: 4
Views: 1368

Async process execute

Question: I'm trying to asynchronously execute a process: I use: void MainFrame::DoAsyncExec(const wxString& cmd) { wxProcess* process = new wxProcess ; long m_pidLast = wxExecute(cmd, wxEXEC_ASYNC, process); } Now, this works for just a filename. If I want to LD_PRELOAD a shared library, I cann...
by quandary
Fri Apr 25, 2008 6:14 pm
Forum: C++ Development
Topic: wait for splash screen until continue
Replies: 2
Views: 995

As for centering the dialog, I believe some OS's will put them where they want even if you ask them otherwise. I presume you've tried Centre()? Hope that helps, Jim Yes, i tried Centre() and several other ways, but it seems that the OpenFile dialog just doesn't want to be in the centre - in all OS'...
by quandary
Fri Apr 25, 2008 12:04 pm
Forum: C++ Development
Topic: wait for splash screen until continue
Replies: 2
Views: 995

wait for splash screen until continue

Hi! I have a problem with wxSplash. The problem is that I have a splash screen, and I have a OpenFile dialog that opens right when you start the application. How can I make the OpenFile dialog wait until the splash screen has disappeared? Additionally, while I'm on it, how can i center the OpenFile ...
by quandary
Fri Apr 25, 2008 11:36 am
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

You're searching for a help file, a data file. You currently have chosen to store this in a subdir of your executable's dir, but this is not a standard, or even a particularly sensible, place for it to be. In Linux, the normal place for data is in /usr/local/share/appname if you do a standard confi...
by quandary
Fri Apr 25, 2008 1:06 am
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

wxGetCwd() is bad, there is no guarantee that the current working directory is the path to your executable. Like already suggested, use wxStandardPaths::GetExecutablePath Oh, yes, THANKS! Now i got a more decent version: std::wstring GetCurrentWorkingDirectory() { wxString wxstrCurrentWorkingDirect...
by quandary
Thu Apr 24, 2008 10:51 pm
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

Re: wxGetCwd

So I need to get the current working directory of the executable, add /help/index.htm, and then pass this to the browser call. If your want add /help/index.htm to that path, I think you are not looking for the current working directory, but for the path of your executable, which can be different. I...
by quandary
Thu Apr 24, 2008 10:39 pm
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

Hi, If you run your app from a terminal (cd /root/Desktop/myprogram/ && ./myprog) then wxGetcwd() should work, as you will have just set the cwd. If you run your app from a desktop shortcut, though, there's no reason why it should work correctly, unless the shortcut itself sets the cwd (as ...
by quandary
Thu Apr 24, 2008 2:25 pm
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

qgranfor wrote:Is "Desktop" a hard/soft link? I've never tried wxGetcwd() with a link...just a total guess I thought I'd throw out there. :D
No, it's not a link, it's a directory, the same directory as in Gnome.
by quandary
Thu Apr 24, 2008 2:04 pm
Forum: C++ Development
Topic: wxGetCwd
Replies: 12
Views: 3934

wxGetCwd

Hi, i have a question: The subject: I have a wxWidgets GUI program, which works just fine on Windows and Linux. Now I added a help menu, and if it is selected, i want to launch the default browser to open a HTML page, which works fine, too. But unforunately, I cannot use relative paths to the main i...