Article View: borland.public.cppbuilder.nativeapi
Article #17427Resource dll
From: ScOe
Date: Mon, 24 Mar 2003 19:19
Date: Mon, 24 Mar 2003 19:19
21 lines
1744 bytes
1744 bytes
I have one dll that will contain resource images ... now i dont know did i made it in right way and how do i use it. I made dll with dll wizard and include .rc file which contain something like ... BACKGROUND BITMAP BCK.BMP SNAKE BITMAP SNAKE.BMP ... I tried two way of using them but with no luck ... first way is simple: SnakeImage = new Graphics::TBitmap (); SnakeImage->LoadFromResourceName((int)HInstance, "SNAKE"); other way is (HBITMAP)LoadImage(GetModuleHandle(NULL), "SNAKE", IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION); Second way would be better couse i need HBITMAP result I'm working on game ... and i'm not sure what should i use as main game loop ... do i need to make my own message handling loop or can i use OnIdle (which i saw in some tutorial), Timer is not very useful.
Technical Details
Message-ID:
<3e7f5a3a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,35566035837173d7,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-24 11:25:32 PST From: "ScOe" <sven.savic@zg.hinet.hr> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Resource dll Date: Mon, 24 Mar 2003 20:19:13 +0100 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 213.191.130.87 Message-ID: <3e7f5a3a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048533562 213.191.130.87 (24 Mar 2003 11:19:22 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail