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

C / C++ / MFC

 
GeneralProblem with CreateThread memory allocation Pin
devvvy26-Oct-02 13:10
devvvy26-Oct-02 13:10 
GeneralRe: Problem with CreateThread memory allocation Pin
Neville Franks26-Oct-02 13:42
Neville Franks26-Oct-02 13:42 
GeneralRe: Problem with CreateThread memory allocation Pin
devvvy26-Oct-02 14:19
devvvy26-Oct-02 14:19 
GeneralRe: Problem with CreateThread memory allocation Pin
Neville Franks26-Oct-02 14:41
Neville Franks26-Oct-02 14:41 
GeneralRe: Problem with CreateThread memory allocation Pin
devvvy26-Oct-02 14:50
devvvy26-Oct-02 14:50 
GeneralRe: Problem with CreateThread memory allocation Pin
Neville Franks26-Oct-02 14:59
Neville Franks26-Oct-02 14:59 
GeneralRe: Problem with CreateThread memory allocation Pin
devvvy26-Oct-02 15:08
devvvy26-Oct-02 15:08 
GeneralMSHTML Table Insertion using CHtmlEditView Pin
Member 5194326-Oct-02 12:25
Member 5194326-Oct-02 12:25 
Hello -
I'm building a product that requires an html wysiwyg editor - I upgraded to Visual C++ .NET (7) to get MFC 7 - with the CHtmlEditView / CHtmlEditDoc classes, only to find that there is no IDM_TABLE command.
I also tried inserting using IHTMLDocument2:

BSTR str = SysAllocString(L"<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#CCCCCC\" bgcolor=\"#E6E6E6\"><tr><td width=\"11%\"> </td></tr></table>");<br />
<br />
	IHTMLDocument2 *pDoc;<br />
	long col=0;<br />
	IDispatch * pDocDisp = NULL;  <br />
   // get the DOM   <br />
   <br />
	pDocDisp = GetHtmlDocument();<br />
    HRESULT h = pDocDisp->QueryInterface( IID_IHTMLDocument2, (void**)&pDoc );<br />
	if( h == S_OK )<br />
	{<br />
		IMarkupServices *pMS = NULL;<br />
		IMarkupPointer *pMkStart = NULL;<br />
	    IMarkupPointer *pMkFinish = NULL;<br />
<br />
<br />
		CComPtr<IHTMLElement> pElement;		<br />
		HRESULT hr = pDoc->createElement(L"TABLE", &pElement);<br />
		pElement->put_outerHTML(str);<br />
<br />
		pDoc->QueryInterface(IID_IMarkupServices, (LPVOID *) &pMS);<br />
		//pMS->MovePointersToRange(<br />
		pMS->InsertElement(pElement, pMkStart, pMkFinish);


and also tried IHTMLTable / QueryInterface. None worked.

If anyone has a solution to my problem I'd be greateful.
Thanks.

Art Cote

Art Cote
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Anonymous26-Oct-02 13:30
Anonymous26-Oct-02 13:30 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Stephane Rodriguez.26-Oct-02 18:07
Stephane Rodriguez.26-Oct-02 18:07 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Member 5194326-Oct-02 19:26
Member 5194326-Oct-02 19:26 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Stephane Rodriguez.26-Oct-02 19:45
Stephane Rodriguez.26-Oct-02 19:45 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Member 5194327-Oct-02 6:01
Member 5194327-Oct-02 6:01 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Stephane Rodriguez.27-Oct-02 7:04
Stephane Rodriguez.27-Oct-02 7:04 
GeneralRe: MSHTML Table Insertion using CHtmlEditView Pin
Member 5194327-Oct-02 9:14
Member 5194327-Oct-02 9:14 
GeneralThanks for help to includeh10 Chris Losinger Pin
Svin26-Oct-02 12:16
Svin26-Oct-02 12:16 
GeneralDword usage Pin
J. Schermerhorn26-Oct-02 12:15
J. Schermerhorn26-Oct-02 12:15 
GeneralRe: Dword usage Pin
Anders Molin26-Oct-02 12:19
professionalAnders Molin26-Oct-02 12:19 
GeneralRe: Dword usage Pin
Chris Losinger26-Oct-02 12:20
professionalChris Losinger26-Oct-02 12:20 
GeneralRe: Dword usage Pin
Paul M Watt26-Oct-02 19:39
mentorPaul M Watt26-Oct-02 19:39 
GeneralRe: Dword usage Pin
Gary R. Wheeler27-Oct-02 3:23
Gary R. Wheeler27-Oct-02 3:23 
GeneralRe: Dword usage Pin
J. Schermerhorn30-Oct-02 8:24
J. Schermerhorn30-Oct-02 8:24 
GeneralConsole Applications Pin
Cpudood26-Oct-02 11:43
Cpudood26-Oct-02 11:43 
GeneralRe: Console Applications Pin
Anders Molin26-Oct-02 12:17
professionalAnders Molin26-Oct-02 12:17 
GeneralRe: Console Applications Pin
Daniel Turini26-Oct-02 12:28
Daniel Turini26-Oct-02 12:28 

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.