![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 1
Rep Power: 0
![]() |
How can I extract bitmap from dll resource using MFC and DHTML
I need to find a way to load bitmaps from external dll using DHTML. I can't use the good old LoadImage() function and pass it the handle of the dll as a parameter, since dhtml doesn't "know" to work that way (as far as I understand, I have to use a standart html syntax to load bitmap, like the following:
<img id="myImage" src="file:bar.gif" width='350' height='60px' > And then put in a code, like in the following example: IHTMLElement* pBmpElement = NULL; if (GetElement(_T("myImage"), &pBmpElement) == S_OK && pBmpElement != NULL) { CString strHtmlCommand,strTmp; strHtmlCommand = "<img id=\"myImage\" src='file:bar.gif' width='"; strTmp.Format(_T("%d"),m_nImgWidth); strHtmlCommand += strTmp; strHtmlCommand +="' height='60px' >"; pBmpElement->put_outerHTML(_bstr_t(strHtmlCommand.GetBuffer(0))); } The problem with this implementation is that if I need to extract a bitmap which exists in an external dll… I can't do it… Can someone help me with this issue? It is extremely urgent. Thanks, Dudi. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|