Re[4]: Bug in wxString::find_last_not_of()?

wxWindows

    Next

  • 1. Text advanced positionning in a wxDC
    Is there a way to easily draw text in a wxDC, for example by giving a box and a vertical and horizontal alignement? Thanx a lot.
  • 2. Known issue with Windows and XPM?
    Hi, I'm running 2.8.7 on windows XP. I have an app that runs great undet Linux, but crashes under Windows. The crash happens when I load an XPM bitmap from memory. Specifically it's in xpmdecod.cpp line 615, on the free(name). It hits this line in the xpm and dies: " c None", I've attached the XPM, if it helps. Gerald <html><head><style type='text/css'>body { font-family: 'Verdana'; font-size: 8pt; color: #000000}</style></head><body>Hi,<br><br>I'm running 2.8.7 on windows XP.  I have an app that runs great undet Linux, but crashes under Windows.  The crash happens when I load an XPM bitmap from memory.<br><br>Specifically it's in xpmdecod.cpp line 615, on the free(name).  It hits this line in the xpm and dies:  "      c None",<br><br>I've attached the XPM, if it helps.<br><br>Gerald<br><br><br><br><br></body></html> --------------------------------------------------------------------- To unsubscribe, e-mail: XXXX@XXXXX.COM For additional commands, e-mail: XXXX@XXXXX.COM

Re[4]: Bug in wxString::find_last_not_of()?

Postby zeitlin » Thu, 17 Jul 2003 04:51:34 GMT



NB> AFAIK not only wxString::find_last_of() is broken. As I experienced a
NB> few month ago - while comparing the results of wxString with those of
NB> std::string - 'rfind()', 'find_first_not_of()' as well as
NB> 'find_last_not_of()' are broken, too.

 Any more details would be welcome.
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 


Similar Threads:

1.Re[2]: Bug in wxString::find_last_not_of()?

[please set your word wrap to 75 or less, thank you]

On Mon, 14 Jul 2003 15:10:44 +0200 Anders Sandvig < XXXX@XXXXX.COM > wrote:

AS> > No, you should look at the code, not in the header. The comment is
AS> >incorrect, but the code seems to be ok, at least for default value of the
AS> >second argument (I'm unsure at the moment of what it is supposed to do for
AS> >non default value but I think it doesn't handle it correctly, I seem to
AS> >have misread the standard...).
AS> 
AS> Does it really matter? I converted the function as directly as I could
AS> and it behaves differently on wxString than on std::string, if wxString
AS> has the same functionality as std::string they should give the same
AS> result, shouldn't they?

 They should, of course, but so far I don't understand why they don't. This
is why I had asked for more details about what wxString code did.

 Regards,
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

2.Re[3]: Bug in wxString::find_last_not_of()?

Hello all,

AFAIK not only wxString::find_last_of() is broken. As I experienced a
few month ago - while comparing the results of wxString with those of
std::string - 'rfind()', 'find_first_not_of()' as well as
'find_last_not_of()' are broken, too. I would like to fix the bugs but
currently I have no spare time to do so.


Regards,
-- 
Dr. Norbert Berzen              Tel.:   +49 241 80-95292
Geodaet. Institut, RWTH Aachen  Fax.:   +49 241 80-92142
Templergraben 55, 52062 Aachen  E-Mail:  XXXX@XXXXX.COM 


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

3.Bug in wxString::find_last_not_of()?

4.wxStringBuffer gets error C2248: 'wxString::wxString' : cannot access private member declared in class 'wxString'

Hello
supposed to work? this is VC6.0:

    wxStringBuffer sb(buf,2);

    if (file_data.Read(sb != 2)) {

This gets compiler error
xString::wxString' : cannot access private member declared in class
'wxString'

pointing to the Read line.
Using 2.4.2 in VC6.0 winXP

based on wxStringBuffer example code.
Thanks
Todd.

5.Bug in wxString::ToULong ?

Hello all,

with wxwidgets 2.6.1 (Linux/gtk, compiled with --enable-unicode
--with-odbc --with-gnome-print), when I do for example:

unsigned long min;
if (saisie_min->GetValue().ToULong(&min)) {

If the TextControl contains a negative value, ToUlong returns "true" and
min contains 4294966296 (2^32) or 4294967295, whatever negative value...

Is it me or not ?

Thanks.

Eric.

PS: I have the same with:
	unsigned long min;
	wxString wxs (wxT("-1"));
	if (wxs.ToULong(&min)) {

---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

6. wxString& name2 = (wxString&) name

7. wxString unicode. What set char array to wxString

8. wxString(const char* psz, size t nLength wxSTRING MAXLEN)



Return to wxWindows

 

Who is online

Users browsing this forum: No registered users and 93 guest