Torsten Thanks!!!!
Bill -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Torsten Bergmann Sent: Monday, May 18, 2009 1:44 AM To: [email protected] Subject: [Pharo-project] How to log in console in Windows You will find the file below. It just wraps the "OutputDebugStringA" Win32 API in a subclass of ExternalStructure. Note that "OutputDebugStringA" is the ANSI version, there is also "OutputDebugStringW" for wide strings. Have fun Torsten -------------------------------------------------------------------------- 'From Pharo0.1 of 16 May 2008 [Latest update: #10303] on 17 May 2009 at 8:20:45 pm'! ExternalStructure subclass: #Win32DebugConsole instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'FFI-Examples-Win32'! !Win32DebugConsole methodsFor: 'api calls' stamp: 'tbn 5/17/2009 20:20'! outputDebugString: aString <apicall: void 'OutputDebugStringA' (char*) module:'kernel32.dll'> ^self externalCallFailed! ! Win32DebugConsole compileFields! -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
