comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Bitmap graphics question         


Author: JoeC
Date: Feb 16, 2008 19:14

I would like to create a graphics library that takes binary 1 or 0 to
crate graphics. I am creating 16x16 bitmap graphic and I would like
the data to look like this:

data int [256] = {0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,
0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,
and so on:

I want to blit over this data to make a picture. I need to make the
data like this because I am trying to make a graphics editer where I
can draw the graphics then save the data to a binary file that can
later be used in a program.

Basically I would like a 16x16 grid of blocks that will represent
pixels. As I select blocks I want the pixes in the bitmap to mirror
what I am trying to draw. Once I do that I will save the files.
Eventually, I would like to be able to crate sheets of multiple
graphics. I will also use the same graphics object to load and
display the graphics in programs.
3 Comments
  LoadResource works on 98se, refuses on XP         


Author:
Date: Feb 16, 2008 03:48

Hello all,

I'm trying to look at resources in any executable/dll (using a
LoadLibraryEx with LOAD_LIBRARY_AS_DATAFILE), and am bumping into a bit of a
problem : At some point I display the icon-resources, and do that by the
(fairly standard) FindResource -> LoadResource combination.

But although the FindResource returns a valid handle, the LoadResource
returns, in XP, a Zero-result (and a GetLastError result of Zero too).

The same happens to SizeofResource (which makes me wonder ... No
data-loading involved there)

I have no idea why this should happen, and could use a bit of help.

Regards,.
Rudy Wieser
2 Comments