Click here to Skip to main content
15,879,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro25-Aug-04 15:55
CherezZaboro25-Aug-04 15:55 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
Ryan Binns25-Aug-04 18:31
Ryan Binns25-Aug-04 18:31 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro26-Aug-04 3:34
CherezZaboro26-Aug-04 3:34 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
palbano25-Aug-04 19:50
palbano25-Aug-04 19:50 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro26-Aug-04 3:45
CherezZaboro26-Aug-04 3:45 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
palbano26-Aug-04 4:34
palbano26-Aug-04 4:34 
GeneralWin32 console application - stop window from displaying Pin
BlackDice25-Aug-04 7:22
BlackDice25-Aug-04 7:22 
GeneralRe: Win32 console application - stop window from displaying Pin
jmkhael25-Aug-04 7:46
jmkhael25-Aug-04 7:46 
Why not the old ShowWindow (hWnd, SW_HIDE)

And in order to get the hWnd, either
// change current window title to something *UNIQUE*
SetConsoleTitle(title);
// ensure window title has been updated
Sleep(40);

hWnd = FindWindow(NULL, title);

// If found, hide it
if (hWnd)
{
ShowWindow(hWnd, SW_HIDE);
}

Or if only for Win 2000 (XP ...) use the GetConsoleWindow

HWND (WINAPI* gpfnGetConsoleWindow)() = (HWND (WINAPI*)())
GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "GetConsoleWindow");

if(gpfnGetConsoleWindow)
{
hWnd = gpfnGetConsoleWindow();
}


Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
GeneralProblem using RichTextBox Pin
SuperTank25-Aug-04 6:09
SuperTank25-Aug-04 6:09 
GeneralRe: Problem using RichTextBox Pin
Tom Wright25-Aug-04 6:21
Tom Wright25-Aug-04 6:21 
GeneralRe: Problem using RichTextBox Pin
BlackDice25-Aug-04 7:43
BlackDice25-Aug-04 7:43 
GeneralRe: Problem using RichTextBox Pin
David Crow25-Aug-04 10:21
David Crow25-Aug-04 10:21 
GeneralRe: Problem using RichTextBox Pin
SuperTank25-Aug-04 10:40
SuperTank25-Aug-04 10:40 
GeneralDeriving from a CStatic Pin
act_x25-Aug-04 6:01
act_x25-Aug-04 6:01 
GeneralRe: Deriving from a CStatic Pin
Michael P Butler25-Aug-04 6:28
Michael P Butler25-Aug-04 6:28 
GeneralRe: Deriving from a CStatic Pin
Maximilien25-Aug-04 6:33
Maximilien25-Aug-04 6:33 
GeneralGeneral Pointer to Variables Pin
sweep12325-Aug-04 5:49
sweep12325-Aug-04 5:49 
GeneralRe: General Pointer to Variables Pin
jmkhael25-Aug-04 5:56
jmkhael25-Aug-04 5:56 
GeneralRe: General Pointer to Variables Pin
sweep12326-Aug-04 2:17
sweep12326-Aug-04 2:17 
GeneralRe: General Pointer to Variables Pin
sweep12326-Aug-04 5:35
sweep12326-Aug-04 5:35 
GeneralRe: CRecordset Record Updating(Debug Assertion Failure) problem Pin
David Crow25-Aug-04 5:47
David Crow25-Aug-04 5:47 
GeneralRe: CRecordset Record Updating(Debug Assertion Failure) problem Pin
raed25-Aug-04 5:55
raed25-Aug-04 5:55 
GeneralRe: CRecordset Record Updating(Debug Assertion Failure) problem Pin
jmkhael25-Aug-04 5:59
jmkhael25-Aug-04 5:59 
GeneralRe: CRecordset Record Updating(Debug Assertion Failure) problem Pin
raed25-Aug-04 20:38
raed25-Aug-04 20:38 
Questionhow to move the event handler from main view Pin
hyling25-Aug-04 5:43
hyling25-Aug-04 5:43 

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.