Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: compiler generated function Pin
Mark Salsbery8-Feb-07 17:30
Mark Salsbery8-Feb-07 17:30 
GeneralRe: compiler generated function Pin
sheetal_068-Feb-07 17:41
sheetal_068-Feb-07 17:41 
QuestionWin 32 console application Pin
ShilpiP7-Feb-07 19:39
ShilpiP7-Feb-07 19:39 
AnswerRe: Win 32 console application Pin
San24687-Feb-07 19:59
San24687-Feb-07 19:59 
AnswerRe: Win 32 console application Pin
San24687-Feb-07 20:02
San24687-Feb-07 20:02 
AnswerRe: Win 32 console application Pin
ThatsAlok7-Feb-07 20:03
ThatsAlok7-Feb-07 20:03 
AnswerRe: Win 32 console application Pin
Hamid_RT7-Feb-07 20:06
Hamid_RT7-Feb-07 20:06 
AnswerRe: Win 32 console application Pin
Stephen Hewitt7-Feb-07 20:08
Stephen Hewitt7-Feb-07 20:08 
On >= Windows 2000 you can use code like this:
// Console.cpp : Defines the entry point for the console application.
//
 
#include "stdafx.h"
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <iostream>
 
void HideConsoleWindow()
{
	HWND hWnd = GetConsoleWindow();
	if (hWnd)
	{
		ShowWindow(hWnd, SW_HIDE);
	}
}
 
void ShowConsoleWindow()
{
	HWND hWnd = GetConsoleWindow();
	if (hWnd)
	{
		ShowWindow(hWnd, SW_SHOWNORMAL);
	}
}
 
void main()
{
	using namespace std;
 
	cout << "Hello world..." << endl;
	Sleep(1000);
	HideConsoleWindow();
	cout << "Text written while window hidden!" << endl;
	Sleep(1000);
	ShowConsoleWindow();
	Sleep(1000);
}



Steve

AnswerRe: Win 32 console application Pin
Xing Chen7-Feb-07 20:12
Xing Chen7-Feb-07 20:12 
GeneralRe: Win 32 console application Pin
Cedric Moonen7-Feb-07 20:17
Cedric Moonen7-Feb-07 20:17 
GeneralRe: Win 32 console application Pin
Gary R. Wheeler8-Feb-07 4:11
Gary R. Wheeler8-Feb-07 4:11 
GeneralRe: Win 32 console application Pin
Cedric Moonen8-Feb-07 4:14
Cedric Moonen8-Feb-07 4:14 
QuestionTo get filename as input Pin
siddharthsan7-Feb-07 19:39
siddharthsan7-Feb-07 19:39 
AnswerRe: To get filename as input Pin
Waldermort7-Feb-07 19:44
Waldermort7-Feb-07 19:44 
AnswerRe: To get filename as input Pin
Hamid_RT7-Feb-07 20:07
Hamid_RT7-Feb-07 20:07 
QuestionRe: To get filename as input Pin
David Crow8-Feb-07 3:49
David Crow8-Feb-07 3:49 
Questionproblems in binding INADDR_ANY Pin
mpk19797-Feb-07 19:19
mpk19797-Feb-07 19:19 
AnswerRe: problems in binding INADDR_ANY Pin
Mark Salsbery8-Feb-07 6:15
Mark Salsbery8-Feb-07 6:15 
QuestionFind Algorithm [STL] Pin
Astricks7-Feb-07 18:52
Astricks7-Feb-07 18:52 
AnswerRe: Find Algorithm [STL] Pin
prasad_som7-Feb-07 19:22
prasad_som7-Feb-07 19:22 
GeneralRe: Find Algorithm [STL] Pin
Astricks7-Feb-07 19:42
Astricks7-Feb-07 19:42 
GeneralRe: Find Algorithm [STL] Pin
Waldermort7-Feb-07 19:46
Waldermort7-Feb-07 19:46 
GeneralRe: Find Algorithm [STL] Pin
Astricks7-Feb-07 19:49
Astricks7-Feb-07 19:49 
GeneralRe: Find Algorithm [STL] Pin
Waldermort7-Feb-07 19:54
Waldermort7-Feb-07 19:54 
GeneralDoesn't work still Pin
Astricks7-Feb-07 20:08
Astricks7-Feb-07 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.