Put the bitmap into the executable.
Modified: trunk/rosapps/tests/bitblt/bitblt.c
Added: trunk/rosapps/tests/bitblt/bitblt.rc
Modified: trunk/rosapps/tests/bitblt/bitblt.xml
_____
Modified: trunk/rosapps/tests/bitblt/bitblt.c
--- trunk/rosapps/tests/bitblt/bitblt.c 2005-11-15 17:52:27 UTC (rev
19251)
+++ trunk/rosapps/tests/bitblt/bitblt.c 2005-11-15 17:54:00 UTC (rev
19252)
@@ -84,8 +84,8 @@
/* load a bitmap from file */
HBITMAP HBmp =
/* static_cast<HBITMAP> */(
- LoadImage(HInst, filename, IMAGE_BITMAP,
- 0, 0, LR_LOADFROMFILE)
+ LoadImage(HInst, MAKEINTRESOURCE(1000), IMAGE_BITMAP,
+ 0, 0, 0)
);
if (HBmp)
{
_____
Added: trunk/rosapps/tests/bitblt/bitblt.rc
--- trunk/rosapps/tests/bitblt/bitblt.rc 2005-11-15 17:52:27 UTC
(rev 19251)
+++ trunk/rosapps/tests/bitblt/bitblt.rc 2005-11-15 17:54:00 UTC
(rev 19252)
@@ -0,0 +1,2 @@
+1000 BITMAP MOVEABLE PURE "lena.bmp"
+
_____
Modified: trunk/rosapps/tests/bitblt/bitblt.xml
--- trunk/rosapps/tests/bitblt/bitblt.xml 2005-11-15 17:52:27 UTC
(rev 19251)
+++ trunk/rosapps/tests/bitblt/bitblt.xml 2005-11-15 17:54:00 UTC
(rev 19252)
@@ -2,7 +2,9 @@
<define name="_WIN32_IE">0x0501</define>
<define name="_WIN32_WINNT">0x0501</define>
<define name="__USE_W32API" />
+ <include base="bitblt">.</include>
<library>kernel32</library>
<library>gdi32</library>
<file>bitblt.c</file>
+ <file>bitblt.rc</file>
</module>
Show replies by date