Advertisement
Advertisement
| 04.04.2008 at 03:46AM PDT, ID: 23295563 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: |
Bitmap::Bitmap(int IDBitmap, String const& sTypeRef, bool createAlphaChannel): m_TransparencyKey(-1), m_Opacity(100), m_Exists(false)
{
m_HasAlphaChannel = createAlphaChannel;
m_Handle = LoadBitmap(Engine::GetSingleton()->GetInstance(), MAKEINTRESOURCE(IDBitmap));
if (m_Handle != 0) m_Exists = true;
}
//////////////
void X::Start()
{
hMod = LoadLibrary (_T("testdll.dll"));
if (hMod == NULL)//
{
ENGINE->MessageBox("Failed to locate testdll.dll!");
ENGINE->Quit();
}
else
{
ENGINE->MessageBox("OK");
}
// This works
//FindResource(hMod,_T("IDB_AILEX"),_T("BITMAP"))
//bmptest = new Bitmap (FindResource(hMod,_T("IDB_AILEX"),_T("BITMAP")),"BITMAP",false);
}
|