🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.tools.owl
3 messages
3 total messages Started by Thaddeus L. Olczyk Wed, 10 Apr 1996 23:42
Creating a console window
#37
Author: Thaddeus L. Olczyk
Date: Wed, 10 Apr 1996 23:42
6 lines
833 bytes
Does anyone know how I can open a console window in a Win95 GUI app?
I want to dump some data for debugging purposes.
Richter's Advanced Windows says that it is possible, but does not say how, and
I have not been able to find a description anywhere else.
Thanks in advance.
Thaddeus L. Olczyk
Re: Creating a console window
#38
Author: Ari Lukumies
Date: Fri, 12 Apr 1996 09:59
22 lines
1195 bytes
Thaddeus L. Olczyk wrote:
> 
> Does anyone know how I can open a console window in a Win95 GUI app?
> I want to dump some data for debugging purposes.
> Richter's Advanced Windows says that it is possible, but does not say how, and
> I have not been able to find a description anywhere else.

Check out the API AllocConsole. If you want to make use of stdout (for printf 
etc), you can then use something like this:

	HANDLE	hStdout;
	FILE	*fp;

	hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
	*fp = _fdopen(_open_osfhandle(hStdout, _O_TEXT), "w");
	*stdout = *fp;
	printf("Hello!\n");

Later,
 AriL
-- 
All my opinions are mine and mine alone.
Re: Creating a console window
#39
Author: Robert Gibson
Date: Sat, 13 Apr 1996 23:52
12 lines
1052 bytes
"Thaddeus L. Olczyk" <Polczyk@interaccess.com> wrote:
>Does anyone know how I can open a console window in a Win95 GUI app?
>I want to dump some data for debugging purposes.
>Richter's Advanced Windows says that it is possible, but does not say how, and
>I have not been able to find a description anywhere else.
>Thanks in advance.
>Thaddeus L. Olczyk

Check out the example program DIAGXPRT in the owl examples.  Build it and then execute it.  It will provide you with a
debugging window that you can send text to via the OutputDebugString API call.  Try it, you'll like it...

Rob
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads