#define DEBUG ' eanble dprint(string) macro
#include once "inc/wx_object.bi"
' test for the wxString object

' wxString constructor from FreeBASIC String
dim as  wxString      a = wxString("Hello world!")
' automatic casting to _wxString ptr
dim as  _wxString ptr p = a
' wxString constructor from _wxString ptr
dim as  wxString      b = wxString(p)
' automatic casting back to FreeBASIC String
dim as  String        c = b
? c
sleep
