Search found 54 matches

by Gnawer
Tue Feb 13, 2007 12:17 pm
Forum: C++ Development
Topic: OnIdle Event is sent multiple times
Replies: 5
Views: 1236

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: 1236

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: 1236

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: 1600

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: 1600

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: 1600

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: 1600

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: 1600

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: 1600

[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...