CHTMLView Problem

Visual Studio53
have code that is :



CString str;

LoadFromResource ( IDR_HTML_INIT ); // HTML data

char szTemp[MAX_PATH];

GetModuleFileName(0, szTemp, sizeof(szTemp) );

m_strBannerURL.Format ( "res://%s/%d", szTemp, IDR_HTML_INIT );

Navigate2(str,NULL,NULL);



This works ok except when the program is executed from within a path that has a

blank in the filename (eg 'Program Files'



What am I supposed to do with the string so that it works in this case ?



Thanks


-