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:
31
samples/console/console.cpp
Normal file
31
samples/console/console.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user