Search found 1475 matches

by lowjoel
Sat Apr 07, 2007 2:42 pm
Forum: wxDev-C++
Topic: wxDev-C++ 6.10.2 released
Replies: 56
Views: 15669

a - Possible.
b - WebUpdate thinks that you installed 6.10-2 and thus doen't allow you to select it anymore.
by lowjoel
Sat Apr 07, 2007 1:38 pm
Forum: C++ Development
Topic: wxNO_BORDER - no effect on wxbutton (msw)
Replies: 3
Views: 1219

According to http://www.lpthe.jussieu.fr/~zeitlin/wx ... utton.html it should work. File a bug report on SourceForge?

Joel
by lowjoel
Sat Apr 07, 2007 1:37 pm
Forum: C++ Development
Topic: How to obtain a wxUint8 array from a wxFile?
Replies: 12
Views: 1382

uhm... if it means that the current 65535 bytes does not depend on the 65535 bytes being read before the current one. Like for example if you are using a CBC or EAX mode encrypted file reading the current block depends on the block before it read so the operation can succeed (like CBC is an XOR with...
by lowjoel
Sat Apr 07, 2007 11:55 am
Forum: C++ Development
Topic: How to obtain a wxUint8 array from a wxFile?
Replies: 12
Views: 1382

If your code is not state-dependent you can always read 65536 bytes at a time, using Eof to control if you should read more: wxFileInputStream strm(wxT("FileName")); wxUint8 arr[65536]; while (!strm.Eof()) { strm.Read(arr, 65536); //arr has the last 65536 bytes (or less, depending of the file pointe...
by lowjoel
Sat Apr 07, 2007 11:52 am
Forum: wxDev-C++
Topic: can wxdevcpp compile both c++ and fortran code?
Replies: 1
Views: 523

No, you cannot compile Fortran code with wxDev-C++.

You can however use the editor and make Fortran files as part of your project and compile them yourself

Joel
by lowjoel
Sat Apr 07, 2007 11:43 am
Forum: wxDev-C++
Topic: wxDev-C++ 6.10.2 released
Replies: 56
Views: 15669

Nope, I don't think you are updated. You may have to manually download the file. The old versions could not copy itself over itself (if you get what I mean, since the OS locks binaries in executions against writing).

I've fixed the devpak problem though.
by lowjoel
Fri Apr 06, 2007 9:44 am
Forum: wxDev-C++
Topic: wxDev-C++ 6.10.2 released
Replies: 56
Views: 15669

I just uploaded the new files. Please check WebUpdate.

Joel
by lowjoel
Thu Apr 05, 2007 12:19 pm
Forum: C++ Development
Topic: How to add a Sort method to my wxArray
Replies: 7
Views: 1252

Code: Select all

typedef int (*SegmentSortFunc)(MySegment***, MySegment***);
m_SegmentArray->Sort(reinterpret_cast<SegmentSortFunc>(compareFunction));
Hope that works (I use the STL so I don't have to use these weird sorting functions)

Joel
by lowjoel
Thu Apr 05, 2007 10:13 am
Forum: C++ Development
Topic: Problem with wxString::Format and uint64_t
Replies: 6
Views: 1020

It would be good to accept your own answer to mark it as "solved". (or if you're generous you can mark any of our answers too :))

Joel
by lowjoel
Thu Apr 05, 2007 10:12 am
Forum: C++ Development
Topic: How to add a Sort method to my wxArray
Replies: 7
Views: 1252

Yep. Do you have problems using that?

Joel
by lowjoel
Wed Apr 04, 2007 9:59 pm
Forum: C++ Development
Topic: wxThread problems
Replies: 4
Views: 818

Apart from you needing to use wxThread::Delete instead of delete thread; it should be alright.

What leak detector are you using?

Joel
by lowjoel
Wed Apr 04, 2007 9:58 pm
Forum: C++ Development
Topic: How to add a Sort method to my wxArray
Replies: 7
Views: 1252

Yes, your function is perfectly fine and legal. You may have problems with the this pointer however, since the sort function does not allow you to provide one when the object method is used from a pointer. You should change your sorting function to be a static member function if you want to use this...
by lowjoel
Wed Apr 04, 2007 9:55 pm
Forum: C++ Development
Topic: need some hints -embedding moziila
Replies: 12
Views: 1334

I never got wxMozlla to compile, since their release was nearly 2 years ago (and they were still using 2.4.2). I'm not sure if anyone here for that matter got wxMozilla to work, since after compiling my program crashed on startup. This may very well be caused by me using Unicode in wxWidgets, but I ...
by lowjoel
Wed Apr 04, 2007 9:53 pm
Forum: C++ Development
Topic: wxwidgets and c
Replies: 8
Views: 884

You can't unless you compile your C code using C++. wxWidgets is C++-only.

Joel
by lowjoel
Wed Apr 04, 2007 9:53 pm
Forum: C++ Development
Topic: How to obtain a wxUint8 array from a wxFile?
Replies: 12
Views: 1382

Code: Select all

wxFileInputStream strm(wxT("FileName"));
wxUint8* arr = new wxUint8[strm.GetLength()];
strm.Read(arr, strm.GetLength()); //arr has the contents of the entire file now
Try not to use this approach for large files (for obvious reasons such as your memory)

Joel