Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan anyone help me? Pin
ayie15-Jan-08 21:28
ayie15-Jan-08 21:28 
AnswerRe: can anyone help me? Pin
_AnsHUMAN_ 15-Jan-08 21:39
_AnsHUMAN_ 15-Jan-08 21:39 
QuestionCan anybody tell me the way of getting this answer Pin
philiptabraham15-Jan-08 19:41
philiptabraham15-Jan-08 19:41 
AnswerRe: Can anybody tell me the way of getting this answer Pin
Don Box15-Jan-08 20:00
Don Box15-Jan-08 20:00 
AnswerRe: Can anybody tell me the way of getting this answer Pin
David Crow16-Jan-08 2:50
David Crow16-Jan-08 2:50 
GeneralDialog in Dll Pin
narayanagvs15-Jan-08 18:41
narayanagvs15-Jan-08 18:41 
GeneralRe: Dialog in Dll Pin
_AnsHUMAN_ 15-Jan-08 18:56
_AnsHUMAN_ 15-Jan-08 18:56 
Generalproblem with IHTMLDocument2::write() Pin
Shino C G15-Jan-08 17:32
Shino C G15-Jan-08 17:32 
hello,
I am trying to create an mshtml document object from an html buffer. But when the following code is executed it is invoking internet explorer window. Any body know how it can be prevented.

CString strHTMLCode = _T("<html><head><script language=\"JavaScript\">{top.location.href=\"index.php\"}</script></head><body></body></html>");

CComPtr<IHTMLDocument2> pDoc;
HRESULT hr = CoCreateInstance(CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER, IID_IHTMLDocument2, (void**)&pDoc);

SAFEARRAY* psa = SafeArrayCreateVector(VT_VARIANT, 0, 1);
VARIANT *param;

hr = SafeArrayAccessData(psa, (LPVOID*)&param);
param->vt = VT_BSTR;
param->bstrVal = strHTMLCode.AllocSysString();

hr = pDoc->write(psa); //This line invoks internet explorer window.
hr = pDoc->close();


Thanks,
Shino
QuestionMFC VC6 SDI Containing RichEdit50W? Pin
Kyudos15-Jan-08 11:49
Kyudos15-Jan-08 11:49 
AnswerRe: MFC VC6 SDI Containing RichEdit50W? Pin
Kyudos15-Jan-08 13:08
Kyudos15-Jan-08 13:08 
GeneralHelp in MFC Application-SDI Pin
Eyungwah15-Jan-08 10:27
Eyungwah15-Jan-08 10:27 
GeneralRe: Help in MFC Application-SDI Pin
Iain Clarke, Warrior Programmer15-Jan-08 21:55
Iain Clarke, Warrior Programmer15-Jan-08 21:55 
GeneralWindoze beep is driving me crazy - please help me! Pin
Vaclav_15-Jan-08 8:25
Vaclav_15-Jan-08 8:25 
GeneralRe: Windoze beep is driving me crazy - please help me! Pin
Mark Salsbery15-Jan-08 8:27
Mark Salsbery15-Jan-08 8:27 
GeneralRe: Windoze beep is driving me crazy - please help me! Pin
Vaclav_15-Jan-08 8:33
Vaclav_15-Jan-08 8:33 
JokeRe: Windoze beep is driving me crazy - please help me! Pin
Iain Clarke, Warrior Programmer16-Jan-08 0:14
Iain Clarke, Warrior Programmer16-Jan-08 0:14 
General[Partially solved] Windoze beep is driving me crazy - please help me! Pin
Vaclav_16-Jan-08 9:03
Vaclav_16-Jan-08 9:03 
GeneralPaint on non client area of a window Pin
Miss_F15-Jan-08 6:05
Miss_F15-Jan-08 6:05 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 6:26
Mark Salsbery15-Jan-08 6:26 
GeneralRe: Paint on non client area of a window Pin
Miss_F15-Jan-08 6:40
Miss_F15-Jan-08 6:40 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 6:54
Mark Salsbery15-Jan-08 6:54 
GeneralRe: Paint on non client area of a window Pin
led mike15-Jan-08 8:06
led mike15-Jan-08 8:06 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 8:25
Mark Salsbery15-Jan-08 8:25 
GeneralRe: Paint on non client area of a window Pin
led mike15-Jan-08 8:51
led mike15-Jan-08 8:51 
GeneralRe: Paint on non client area of a window Pin
Miss_F15-Jan-08 8:34
Miss_F15-Jan-08 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.