Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: removing the Main Frame title bar in a SDI Pin
David Crow2-Dec-04 10:45
David Crow2-Dec-04 10:45 
GeneralRe: removing the Main Frame title bar in a SDI Pin
kdehairy2-Dec-04 10:54
kdehairy2-Dec-04 10:54 
GeneralRe: removing the Main Frame title bar in a SDI Pin
Graham Bradshaw2-Dec-04 11:03
Graham Bradshaw2-Dec-04 11:03 
GeneralRe: removing the Main Frame title bar in a SDI Pin
kdehairy2-Dec-04 22:08
kdehairy2-Dec-04 22:08 
GeneralWhy this code alway crash my app?Need help. Pin
Teerayoot2-Dec-04 9:47
Teerayoot2-Dec-04 9:47 
GeneralRe: Why this code alway crash my app?Need help. Pin
David Crow2-Dec-04 10:26
David Crow2-Dec-04 10:26 
GeneralRe: Why this code alway crash my app?Need help. Pin
Teerayoot3-Dec-04 2:26
Teerayoot3-Dec-04 2:26 
GeneralRe: Why this code alway crash my app?Need help. Pin
David Crow3-Dec-04 3:25
David Crow3-Dec-04 3:25 
While the code snippets that I provide are meant to be syntactically correct, they may not always be logically correct. This is intentional. Try:

DWORD   dwError,
        dwNeed = 0;
HANDLE  hPrinter = 0;
PBYTE   pBuffer = NULL;
PPRINTER_INFO_2 pPrintInfo = NULL;
 
if (OpenPrinter("FinePrint", &hPrinter, NULL) != FALSE)
{
    GetPrinter(hPrinter, 2, NULL, 0, &dwNeed);
 
    pBuffer = new BYTE[dwNeed];
    if (GetPrinter(hPrinter, 2, pBuffer, dwNeed, &dwNeed) != FALSE)
    {
        pPrintInfo = (PPRINTER_INFO_2) pBuffer;
    }
 
    delete [] pBuffer;
}
else
    dwError = GetLastError(); 



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Why this code alway crash my app?Need help. Pin
Teerayoot3-Dec-04 4:48
Teerayoot3-Dec-04 4:48 
GeneralCompilation Times in VS C++ .NET Pin
haggersr2-Dec-04 8:17
haggersr2-Dec-04 8:17 
Generalresizing dialog box Pin
haseeb_saeed2-Dec-04 8:05
haseeb_saeed2-Dec-04 8:05 
GeneralRe: resizing dialog box Pin
kdehairy2-Dec-04 10:37
kdehairy2-Dec-04 10:37 
GeneralRe: resizing dialog box Pin
haseeb_saeed3-Dec-04 3:01
haseeb_saeed3-Dec-04 3:01 
GeneralRe: resizing dialog box Pin
John R. Shaw2-Dec-04 16:06
John R. Shaw2-Dec-04 16:06 
GeneralRe: resizing dialog box Pin
haseeb_saeed3-Dec-04 3:03
haseeb_saeed3-Dec-04 3:03 
GeneralProblem Redrawing Screen Pin
doctorpi2-Dec-04 7:39
doctorpi2-Dec-04 7:39 
GeneralCStringArray Pin
LeeeNN2-Dec-04 6:51
LeeeNN2-Dec-04 6:51 
GeneralRe: CStringArray Pin
Maximilien2-Dec-04 7:03
Maximilien2-Dec-04 7:03 
GeneralRe: CStringArray Pin
BlackDice2-Dec-04 7:53
BlackDice2-Dec-04 7:53 
GeneralRe: CStringArray Pin
BlackDice2-Dec-04 7:54
BlackDice2-Dec-04 7:54 
GeneralRe: CStringArray Pin
David Crow2-Dec-04 10:32
David Crow2-Dec-04 10:32 
GeneralRe: CStringArray Pin
Graham Bradshaw2-Dec-04 11:09
Graham Bradshaw2-Dec-04 11:09 
GeneralSubtraction of Integer on Character Array [C++] Pin
Shaitan002-Dec-04 6:49
Shaitan002-Dec-04 6:49 
GeneralRe: Subtraction of Integer on Character Array [C++] Pin
Maximilien2-Dec-04 7:05
Maximilien2-Dec-04 7:05 
GeneralRe: Subtraction of Integer on Character Array [C++] Pin
RChin2-Dec-04 7:11
RChin2-Dec-04 7:11 

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.