Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG31-May-02 3:44
JohnnyG31-May-02 3:44 
GeneralRe: How to use Unicode to std::ostrstream Pin
Rama Krishna Vavilala31-May-02 3:43
Rama Krishna Vavilala31-May-02 3:43 
GeneralRe: How to use Unicode to std::ostrstream Pin
JohnnyG31-May-02 3:54
JohnnyG31-May-02 3:54 
GeneralCurrent time Pin
esapp42030-May-02 8:49
esapp42030-May-02 8:49 
GeneralRe: Current time Pin
Ravi Bhavnani30-May-02 9:18
professionalRavi Bhavnani30-May-02 9:18 
GeneralRe: Current time Pin
Bill Wilson30-May-02 11:56
Bill Wilson30-May-02 11:56 
Generalsetting text inside CHtmlView Pin
Big B30-May-02 8:34
Big B30-May-02 8:34 
GeneralRe: setting text inside CHtmlView Pin
S Fewings30-May-02 20:30
S Fewings30-May-02 20:30 
Try using the write and writeln methods on teh IHTMLDocument2 interface
Here is some code I got from an MS sample somewhere
// Get the pDoc interface from the CHtmlView
IHTMLDocument2 *pDoc; // Declared earlier in the code
IDispatch* pDisp = GetHtmlDocument();
HRESULT hr;
hr = pDisp->QueryInterface( IID_IHTMLDocument2, (void**)&pDoc );

if( pDoc )
{
HRESULT hresult = S_OK;
VARIANT *param;
SAFEARRAY *sfArray;
BSTR bstr = csText.AllocSysString();

// Creates a new one-dimensional array
sfArray = SafeArrayCreateVector(VT_VARIANT, 0, 1);

if (sfArray == NULL || pDoc == NULL)
{
goto cleanup;
}
hresult = SafeArrayAccessData(sfArray,(LPVOID*) & param);
param->vt = VT_BSTR;
param->bstrVal = bstr;
hresult = SafeArrayUnaccessData(sfArray);
hresult = pDoc->writeln(sfArray);
cleanup:
SysFreeString(bstr);
if (sfArray != NULL)
{
SafeArrayDestroy(sfArray);
}
}

Also have a look at the tutorial by Philip Patrick
http://www.codeproject.com/internet/parse_html.asp
QuestionUser draw Combobox - MeasureItem doesn't get called!? Pin
30-May-02 6:57
suss30-May-02 6:57 
AnswerRe: User draw Combobox - MeasureItem doesn't get called!? Pin
Tomasz Sowinski30-May-02 13:01
Tomasz Sowinski30-May-02 13:01 
GeneralRe: User draw Combobox - MeasureItem doesn't get called!? Pin
30-May-02 13:51
suss30-May-02 13:51 
GeneralComponents and Controls in VC7 Pin
Le centriste30-May-02 6:42
Le centriste30-May-02 6:42 
GeneralRe: Components and Controls in VC7 Pin
Rama Krishna Vavilala30-May-02 7:23
Rama Krishna Vavilala30-May-02 7:23 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 9:20
Mazdak30-May-02 9:20 
GeneralRe: Components and Controls in VC7 Pin
Le centriste30-May-02 9:28
Le centriste30-May-02 9:28 
GeneralRe: Components and Controls in VC7 Pin
Mazdak30-May-02 21:16
Mazdak30-May-02 21:16 
GeneralWorker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 6:36
Chris Meech30-May-02 6:36 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Prem Kumar30-May-02 7:11
Prem Kumar30-May-02 7:11 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech30-May-02 7:25
Chris Meech30-May-02 7:25 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Tomasz Sowinski30-May-02 13:16
Tomasz Sowinski30-May-02 13:16 
GeneralRe: Worker Threads and GetExitCodeThread() Pin
Chris Meech31-May-02 2:22
Chris Meech31-May-02 2:22 
General"Scalar deleting destructor" error Pin
Jason Hihn30-May-02 6:07
Jason Hihn30-May-02 6:07 
GeneralRe: "Scalar deleting destructor" error Pin
Prem Kumar30-May-02 7:14
Prem Kumar30-May-02 7:14 
GeneralRe: "Scalar deleting destructor" error Pin
Jason Hihn30-May-02 7:19
Jason Hihn30-May-02 7:19 
GeneralRe: "Scalar deleting destructor" error Pin
Rama Krishna Vavilala30-May-02 7:25
Rama Krishna Vavilala30-May-02 7:25 

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.