Search found 58 matches

by Gnawer
Thu Jan 29, 2009 10:54 am
Forum: C++ Development
Topic: How to create App without event loop?
Replies: 2
Views: 688

How to create App without event loop?

Hi, I want to create an app like this: int main(int argc, char** argv) { // ... wxLogError("Hello, I'm an error"); // ... return 0; } The speciality is using wx elements without wxApp, event loops, etc. The compiler detects unresolved external "[email protected]" in function "___tmainCRTStartup". Can I ma...
by Gnawer
Wed Sep 10, 2008 8:46 am
Forum: C++ Development
Topic: wxGetNumberFromUser(): input blocked
Replies: 2
Views: 521

Yes, that´s it. Thanx doublemax.
by Gnawer
Wed Sep 10, 2008 8:16 am
Forum: C++ Development
Topic: wxGetNumberFromUser(): input blocked
Replies: 2
Views: 521

wxGetNumberFromUser(): input blocked

Hello all,
I'm using VC 2008 Express Edition with wxWidgets 2.8.8.

I compiled the dialogs sample project supplied with wxWidgets.
When running and pressing Ctrl-N I invoke wxGetNumberFromUser().
But it accepts no input! Only the arrows beside the input field are active.
Is it a bug?
by Gnawer
Thu Apr 24, 2008 10:06 am
Forum: C++ Development
Topic: wxGetApp(): undeclared identifier
Replies: 1
Views: 1815

wxGetApp(): undeclared identifier

Hi, I have a simple project with 4 files: MyApp.h, MyApp.cpp, Data.h, Data.cpp In MyApp.h there is DECLARE_APP(MyApp), in MyApp.cpp IMPLEMENT_APP(MyApp). Now the problem that I´m gnawing at :) : wxGetApp() can be used in MyApp.cpp, but not in Data.cpp. The compiler stops because of "undeclared ident...
by Gnawer
Tue Feb 13, 2007 12:17 pm
Forum: C++ Development
Topic: OnIdle Event is sent multiple times
Replies: 5
Views: 1351

The events come in without moving the mouse.
But I understand the problem and will use a boolean.

Thanx! :)
by Gnawer
Sun Feb 11, 2007 5:35 pm
Forum: C++ Development
Topic: OnIdle Event is sent multiple times
Replies: 5
Views: 1351

Below is an extract from the wxWidgets Manual (wxIdleEvent): "Note that, unless you do something specifically, the idle events are not sent if the system remains idle once it has become it, e.g. only a single idle event will be generated until something else resulting in more normal events happens a...
by Gnawer
Sat Feb 10, 2007 6:02 pm
Forum: C++ Development
Topic: OnIdle Event is sent multiple times
Replies: 5
Views: 1351

OnIdle Event is sent multiple times

I have a simple dialog based application (like that from wxWidgets-Tutorial). I have defined a OnIdle Event. When receiving the idle event I want to set a dialog textctrl to the string "idle". When the user presses a button, the text is replaced by "working". So far, so good. But I have never expect...
by Gnawer
Tue Jul 04, 2006 11:47 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

correction: wxFile::Tell() fails only when you have used a stdio-function on the file object before.
by Gnawer
Tue Jul 04, 2006 11:17 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

Here are the results and the solutions of my studies: Reading a large file line by line with acceptable speed is only possible with fgets(). Doing it by std::getline(input_file_stream, ...) takes 10 times longer! Additionally, std:getline fails() with files > 4 GB. With stdio, you can search within ...
by Gnawer
Mon Jul 03, 2006 10:07 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

I have to handle a lot of measuring and calculation data, sometimes more than 6 GB!
Because reading of 2 GB is already time consuming, I don't want to split that means even more time consumption.
by Gnawer
Fri Jun 30, 2006 10:03 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

I have developped a new fgets() based on wxFile, but it is 173 times slower than the stdio version. :cry: Inacceptable! Another approach: Beside wxWidgets there are _fseek64, _ftell64 for Windows, but I cannot link them to a wxWidgets project. Did anyone make it in the past? That would be the best s...
by Gnawer
Fri Jun 30, 2006 7:18 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

I have just tested the large file with wxFFile.

wxFFile wxf(filename.c_str(), "r");
wxf.SeekEnd();
wxFileOffset endpos = wxf.Tell();

result: enspos = 0.
It doesn't work.

wxFile can supply a correct value. But I have no fgets(), fscanf(), ...
by Gnawer
Thu Jun 29, 2006 11:28 am
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 1760

[VC++.NET, files > 2 GB]

Hello all, how can I read large text files under Windows? It is no problem to open a file as FILE* and read line by line with fgets(), but for random positioning I need wxFile::Seek(). It seems that I cannot have both. How can I seek > 2 GB and use fgets()? I have heart about some workarounds with f...