git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			32 lines
		
	
	
		
			774 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			774 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/////////////////////////////////////////////////////////////////////////////
 | 
						|
// 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;
 | 
						|
}
 |