Article View: borland.public.cppbuilder.nativeapi
Article #6899CreateDIBitmap
From: Bob
Date: Thu, 31 Mar 2005 20:35
Date: Thu, 31 Mar 2005 20:35
8 lines
1121 bytes
1121 bytes
I am creating a bitmap from a DIB. It works fine on WIndows XP, but it does not work on Windows 2003 Server. hBitmap = CreateDIBitmap(hdc, &bmi->bmiHeader, CBM_INIT, img.bmpbits, bmi, DIB_RGB_COLORS ); hBitmap equal null after the function call. GetLastError returns 8. Any ideas what I am doing wrong?
Technical Details
Message-ID:
<424c5f1c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d49bdc82792f17ff,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob" <Bob@NoSpam.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: CreateDIBitmap Date: Thu, 31 Mar 2005 15:35:41 -0500 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 24.154.8.58 Message-ID: <424c5f1c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112301340 24.154.8.58 (31 Mar 2005 12:35:40 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail