CXTPGraphicBitmapPng |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Posted: 29 November 2006 at 9:09am |
Hi,
could you split CXTPGraphicBitmapPng::LoadFromResource into two methods, LoadFromResource and LoadFromBuffer? LPBYTE lpBuffer = (LPBYTE)LockResource(hMem); if (!lpBuffer || nBufferSize < 10) return FALSE; return LoadFromBuffer (...); <--- Split function here ---> BOOL CXTPGraphicBitmapPng::LoadFromBuffer (...) { CMemFile file(lpBuffer, nBufferSize) .... } That doesn't add any extra code but makes the class more flexible. |
|
Codejock support
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
ok
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |