Search results for 'HTML Resource Loading'. 1 post(s) found.
- 2009/03/23 How to load HTML resource on MFC ?
I tried to Load HTML Resource that stored in the application for MFC based application programming. The resource name is IDR_KURAPA_COM_HTML_ROOT.
Actually this is very convenient to reduce files for application package.
You can Load HTML Resource as following:
HGLOBAL h = LoadResource(GetModuleHandle(NULL), FindResource(GetModuleHandle(NULL), (LPCTSTR)IDR_KURAPA_COM_HTML_ROOT, RT_HTML));
char kurapa_test[4096]
memset( kurapa_test, 0, 1024*1024);
strcpy (kurapa_test, (char*)h);
char kurapa_test[4096]
memset( kurapa_test, 0, 1024*1024);
strcpy (kurapa_test, (char*)h);
from above example, RT_HTML is resource type.
Another posts included in "C, C++"
| URL Encode, Decode function for MFC (0) | 2009/03/24 |
| How to get GM Time as String ? (0) | 2009/03/20 |
| How to call SetTimer function on MFC CDialog class ? (0) | 2008/07/30 |
| How to search file on certain directory ? (0) | 2008/06/16 |
| How to run shell command by MFC ? (0) | 2007/09/09 |
| Binary Search Sample Code (0) | 2007/09/08 |

Prev

Rss Feed