How to log in console in Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to log in console in Windows

Torsten Bergmann
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How to log in console in Windows

Schwab,Wilhelm K
Torsten

Thanks!!!!


Bill



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Torsten Bergmann
Sent: Monday, May 18, 2009 1:44 AM
To: [hidden email]
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project