Search found 93 matches

by mjs
Wed May 04, 2005 12:38 am
Forum: Platform Related Issues
Topic: Issue linking against wxWidgets 2.6.0 on Mac OS X 10.4
Replies: 1
Views: 1557

It seems that HAVE_SSIZE_T isn't set to 1. This should be defined in your setup.h. When it isn't set/defined, please take a look at the config.log (when you ./configure'd the sources) why ssize_t wasn't detected.

Regards,
Mark
by mjs
Tue May 03, 2005 10:30 pm
Forum: General Development
Topic: wxInputStream and SeekI function
Replies: 4
Views: 1715

AFAIK seeking and querying the input stream size aren't supported for i-net streams (http and ftp). I think the problem with seeking is that it works in a different way. When using SeekI, the file has to be open already. But when you query data using http or ftp, you have to specify the read positio...
by mjs
Sun Apr 17, 2005 8:55 pm
Forum: C++ Development
Topic: wxPrintout Help plz
Replies: 4
Views: 1584

The usage of wxPrintout is very similar to the event handler classes used in Java. You must derive your own class from wxPrintout and you should implement the following functions: virtual bool HasPage(int page); virtual bool OnPrintPage(int page) = 0; When your data to be printed should be splitted ...
by mjs
Sun Apr 17, 2005 8:35 pm
Forum: Announcements and Discoveries
Topic: new development snapshot of wxFormBuilder
Replies: 2
Views: 1612

Sorry, I cannot install it. I always get the following message: This installer you are trying to use is corrupted or incomplete. This could be the result of a damaged disk, a failed download or a virus. You may want to contact the author of this installer to obtain a new copy. It may be possible to ...
by mjs
Sun Apr 17, 2005 8:28 pm
Forum: C++ Development
Topic: wxStream problems
Replies: 2
Views: 1162

When you just want to test if a file could be opened, then you should try the following:

Code: Select all

wxFileInputStream InputFile(_T("FileName.Ext"));
if (!InputFile.Ok())
  wxLogFatalError(_("Failed to open file"));
Regards,
Mark
by mjs
Fri Apr 15, 2005 5:06 pm
Forum: C++ Development
Topic: wxLongLong_t from string
Replies: 7
Views: 2218

Ok, thank you for your fast answer. I was confused about the fact that there was a ToString() member in wxLongLong but no FromString() (or something like that).

Regards,
Mark
by mjs
Fri Apr 15, 2005 4:56 pm
Forum: C++ Development
Topic: wxLongLong_t from string
Replies: 7
Views: 2218

ABX wrote:I suppose you should use wxLongLongFmtSpec for sscanf just like it is supposed to be for printf, but I never investigated it myself so I'm not fully sure.
Maybe you're right - currently I use strtoll, but of course I'll look for a more portable way. I'll try to use wxSscanf.

Regards,
Mark
by mjs
Fri Apr 15, 2005 3:31 pm
Forum: C++ Development
Topic: wxLongLong_t from string
Replies: 7
Views: 2218

Sorry,

you misunderstood me: Not TO string but FROM string.

Regards,
Mark
by mjs
Fri Apr 15, 2005 3:04 pm
Forum: C++ Development
Topic: wxLongLong_t from string
Replies: 7
Views: 2218

wxLongLong_t from string

Hi,

I'd like to get a wxLongLong_t from a string but I was unable to find a suitable function for it. Maybe I overlooked something? Is it possible to use wxSscanf? What's the format specifier for wxSscanf?

Regards,
Mark
by mjs
Fri Apr 15, 2005 9:30 am
Forum: C++ Development
Topic: wxStaticText on Win32 word wrapping question
Replies: 2
Views: 1075

Just set it always to the full parents width/height - simply use a wxSizer after turning off the "auto-resize" feature.

Regards,
Mark
by mjs
Wed Apr 13, 2005 10:45 pm
Forum: C++ Development
Topic: wxDb
Replies: 3
Views: 1445

I assume that the ODBC driver isn't compliant with wxWidgets. It tests for several ODBC features and when the driver doesn't support them correctly, it'll fail. A well-known example is the MyODBC driver which only works well since version 3.51.11 - previous versions had a bug that prevented the usag...
by mjs
Tue Apr 12, 2005 3:38 pm
Forum: C++ Development
Topic: Problem with reading file from FTP
Replies: 2
Views: 1133

Re: Problem with reading file from FTP

[quote="zogi"]

Code: Select all

				wxInputStream *in = ftp.GetInputStream( file );
				// Pr
by mjs
Tue Apr 12, 2005 12:08 am
Forum: General Development
Topic: uses for wxthread
Replies: 6
Views: 2099

It depends on the CPU time consumption of every thread and the required wake-ups per second.

Regards,
Mark
by mjs
Tue Apr 12, 2005 12:02 am
Forum: C++ Development
Topic: What is the Memory Mapped File Class?
Replies: 9
Views: 2824

It'd be nice if you could upload it. Until now I'm unsure if it's really useful because on 32 bit platforms you have an effective 2G limit which seems too restrictive for a file API ...

Regards,
Mark
by mjs
Sun Apr 10, 2005 10:54 pm
Forum: C++ Development
Topic: Locale again
Replies: 3
Views: 1396

Re: Locale again

Anyone knows how use *.po / *.mo files to compile a static binary? Just using wxLocale and the _("") Makro doesn't work for static Builds. I need static versions in different languages, so one can copy just the executable (and no *.mo files) on CD, and use it on different Hosts (even on H...