Iterate to Load Bitmaps in Resource

5 03 2009

in Resource.h
#define IDB_MOB1 132
#define IDB_MOB2 133
#define IDB_MOB3 134
#define IDB_MOB4 135
#define IDB_MOB5 136
#define IDB_MOB6 137

in cpp

WORD d=IDB_MOB1;
for(int i = 0; i < 6; i++)
{
 CBitmap c;
 c.LoadBitmap(MAKEINTRESOURCE(d++));
 // add to list
 mobList.push_back(c);
}

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: