more changes for wxBase - starts to work under Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-06 17:48:34 +00:00
parent 6768c790de
commit 3766781218
5 changed files with 290 additions and 114 deletions

View File

@@ -0,0 +1,31 @@
/////////////////////////////////////////////////////////////////////////////
// Name: samples/console/console.cpp
// Purpose: a sample console (as opposed to GUI) progam using wxWindows
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.10.99
// RCS-ID: $Id$
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <wx/string.h>
#include <wx/app.h>
int main()
{
if ( !wxInitialize() )
{
fprintf(stderr, "Failed to initialize the wxWindows library, aborting.");
}
wxString s("Hello, ");
wxLogMessage(s + "world!");
wxUninitialize();
return 0;
}