Search found 3 matches

by AHUser
Wed Jan 12, 2005 1:09 pm
Forum: wx.NET
Topic: sugestion
Replies: 1
Views: 1737

return (System.IO.Path.DirectorySeparatorChar == "\"); That is not a really good code for a platform decission. I would prefere something like this: bool RunningInWindows() { return System.Environment.OSVersion.Platform < (System.PlatformID)127; } 127 is PlatformID.Unix which is not defined in enum...
by AHUser
Sat Oct 30, 2004 8:23 am
Forum: wx.NET
Topic: Where is the dtor for _wxString?
Replies: 3
Views: 2144

(code extracts from wxWidgets 2.5.2) class WXDLLIMPEXP_BASE wxString : public wxStringBase {...} class WXDLLIMPEXP_BASE wxStringBase {...} And where does it inherit from wxObject? // dtor is not virtual, this class must not be inherited from! ~wxStringBase() And wxString does not implement an own dt...
by AHUser
Thu Oct 28, 2004 11:44 pm
Forum: wx.NET
Topic: Where is the dtor for _wxString?
Replies: 3
Views: 2144

Where is the dtor for _wxString?

The _wxString (helper) class does not have a dtor C function.

Code: Select all

extern "C" WXEXPORT
void wxString_dtor(wxString* self)
{
    if (self)
	delete self;
}