Scinuserebob:
The following is without the use of direct show or any other thing related
to the com library.
CreateWindowEx(NULL,"Scintilla", ...)
CoInitialize();
Since you are using COM, you may need to CoInitializeEx or
OleInitialize before loading Scintilla so that you can choose the
threading model or OLE features. Scintilla does an old-style
CoInitialize just to ensure drag and drop is available.
IBaseFilter *pGFilters = NULL;
IEnumFilters *pEnm = NULL;
if(FAILED(pGraphBlder->EnumFilters(&pEnm)))
return;
while(pEnm->Next(1,&pGFilters,0) == S_OK)
{
if(pGraphBlder->RemoveFilter(pGFilters) != S_OK)
MessageBox(hWin[0],"filter not removed","Clears Filters",0);
Shouldn't you be releasing the pGFilters here so that you delete
each of them rather than just the last?
But I do have some questions. Scintilla runs in its own thread, can't it
keeps its com objects
to itself, so I can not break them or in this case, daddy bill can not break
them.
You should read up on COM with threading. I haven't done any work
in this area for years.
Is it possible to create Scintilla directly into it's own thread. I have
played with this, I know I can
get the window but communicating with the control seems like trouble.
Controls act as thread synchronization objects: SendMessage
synchronizes the caller to the target window's thread for the send.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest