Article View: borland.public.cppbuilder.nativeapi
Article #12537Re: Windows Printers
From: Bob Gonder
Date: Tue, 02 Dec 2003 01:33
Date: Tue, 02 Dec 2003 01:33
19 lines
1791 bytes
1791 bytes
John Scott wrote:
>Do you have any idea what the error 6 means?
You can find out for yourself easily by putting the following in your
box of tricks.
BOOL _stdcall ErrorBoxCancel(DWORD errorcode,LPCTSTR titl)
{ BOOL ret;
VOID* lpBuffer;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER+FORMAT_MESSAGE_FROM_SYSTEM+70,
NULL,errorcode,0,(char*)&lpBuffer,0,NULL);
ret=(IDCANCEL==MessageBox( hWnd, (char*)lpBuffer, titl,
MB_OKCANCEL|MB_ICONINFORMATION|MB_TOPMOST )?TRUE:FALSE);
LocalFree( lpBuffer );
return ret;
}
Technical Details
Message-ID:
<opqnsvgl5ofn1q775moc13snr25os9l202@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fbcf9c2@newsgroups.borland.com> <3fbd8132$1@newsgroups.borland.com> <3fc77301@newsgroups.borland.com> <3fc7e524$1@newsgroups.borland.com> <3fca2474@newsgroups.borland.com> <3fcb2567$1@newsgroups.borland.com> <3fcb6984@newsgroups.borland.com> <3fcb9bc2$1@newsgroups.borland.com> <3fcba44a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7b2449597708bec X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-01 17:39:18 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Windows Printers Date: Mon, 01 Dec 2003 17:33:16 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <opqnsvgl5ofn1q775moc13snr25os9l202@4ax.com> References: <3fbcf9c2@newsgroups.borland.com> <3fbd8132$1@newsgroups.borland.com> <3fc77301@newsgroups.borland.com> <3fc7e524$1@newsgroups.borland.com> <3fca2474@newsgroups.borland.com> <3fcb2567$1@newsgroups.borland.com> <3fcb6984@newsgroups.borland.com> <3fcb9bc2$1@newsgroups.borland.com> <3fcba44a@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.179.38 X-Trace: newsgroups.borland.com 1070328794 67.31.179.38 (1 Dec 2003 17:33:14 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail