Thanks, I found the error.
Romiks
Posts
-
Subscribe to HTMLInputTextElementEvents??? [modified] -
Subscribe to HTMLInputTextElementEvents??? [modified]Hi all, I am trying to subscribe for events like this:
CComPtr<IDispatch> spDisp;
HRESULT hr = m_spWebBrowser2->get_Document(&spDisp);
if (SUCCEEDED(hr) && spDisp)
{
CComQIPtr<IHTMLDocument2, &IID_IHTMLDocument2> spHTML(spDisp);
if (spHTML)
{
CComQIPtr<IHTMLElement, &IID_IHTMLElement> spElem;
hr=spHTML->get_body(&spElem);
if (SUCCEEDED(hr))
{
IConnectionPointContainer* pCPC = NULL;
hr = spElem->QueryInterface(IID_IConnectionPointContainer, (void**)&pCPC);
if (SUCCEEDED(hr))
{
IConnectionPoint* pCP = NULL;
hr = pCPC->FindConnectionPoint(DIID_HTMLInputTextElementEvents2, &pCP);
if (SUCCEEDED(hr))
{
....
}
}
}
}
}FindConnectionPoint fails. Please show me where I am wrong or how else I can subscribe? :(
modified on Monday, August 4, 2008 7:38 AM
-
Return map<cstring,> from com atl????Thanks for help, I found the following article on MSDN about collections http://msdn.microsoft.com/en-us/library/3stwxh95(VS.71).aspx and tried. All works fine.
-
Return map<cstring,> from com atl????Hi all, I've created simple ATLproject from VS2008 and added a simple object. The object should return the map<> collection through interface method. How can I do this? Maybe I should use SAFEARRAY? :^) If it is possible please point me to the article about using this.
-
WCF exeption??????Ok, I'll try to do this. If it's possibly, please send me to losqut@yandex.ru
-
WCF exeption??????Brian thanks for help. Here is the cut of my server app.config file:
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IPref">
<security mode="None"/>
</binding>
</wsDualHttpBinding>
</bindings>Here is is the cut of my client app.config file:
<bindings> <wsDualHttpBinding> <binding name="WSDualHttpBinding\_IPref" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" /> <security mode="Message"> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /> </security> </binding> </wsDualHttpBinding> </bindings>
If I change
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>to
<security mode="None">
</security>It fails with something like this: "Operation of opening doesn't complete in the course of defined period 00:01:00" :( even if the server and the client are running on my machine.
-
WCF exeption??????Hi all, I am trying to build a game based on the WPF and WCF. Client and server work fine on my machine(Vista 64), they are connected successful. But when I am trying to run server on the LAN machine(WinXp) and client on my machine(Vista 64), after calling service metod from client application I get exception: "Fail agreement of mode security SOAP from "http://192.168.0.55:8080/Pf\\" for object "http://192.168.0.55:8080/Pf\\"."???? Help please to resolve the problem.
-
Convert TIFF to bmpNow I need to show TIFF, but I have another problem with scalling the image. Is it possable to scale the image by libtiff? My TIFF is width:13700; height:9300.
-
Convert TIFF to bmpMany thanks :), I'll try it.
but, there are plenty of libraries out there that can do all of for you.
I need it for my cross-platform application, which uses wxWidgets library.
-
Convert TIFF to bmpHi all, I need to convert tiff file to bmp file. I found libtiff library. Maybe anybody using this library? If it possable, give me some ideas how to do that? (TIFF encoded to CMYK)
-
CListBox how to set single selection?You are quite right, thanks I'll try to find another way.
-
CListBox how to set single selection?Ok, I did single select ListBox and trying to add styles like this:
m_listFiles.ModifyStyle( 0, LBS_EXTENDEDSEL | LBS_MULTIPLESEL ); m_listFiles.UpdateWindow();
SPY shows me LBS_EXTENDEDSEL and LBS_MULTIPLESEL styles present, but actually the list is single select :confused: -
CListBox how to set single selection?This one doesn't work
m_listFiles.ModifyStyle( 0, LBS_EXTENDEDSEL | LBS_MULTIPLESEL );
:( -
CListBox how to set single selection?Hi all, I have CListBox with selection set to Extended in resource editor. In my prog I need to set selection to single. Please point me, how can I do this?
-
CFileDialog how to select fileHi all, I need to select only exact file from directory. For example file.ttt. I am trying the following:
CFileDialog fileDialog( TRUE, NULL, "file.ttt", NULL, "file.ttt" );
But there is no visible files. Please help me to resolve the problem.:( -
CToolBar disable/enable buttonsIf you have working dialog based project, could you please send me? my mail:losqut@yandex.ru As for me, buttons are not greyed :(
-
CToolBar disable/enable buttonsOk... I have dialog based MFC application ;) There is no ON_UPDATE_COMMAND_UI command :(
-
How to do transparent color in the CBitmapButton? [modified]Hi all, I have created the button in my project like this:
CBitmapButton m_mainSettings; DDX_Control(pDX, IDC_MAIN_SETTINGS, m_mainSettings); m_mainSettings.LoadBitmaps(IDB_BITMAP1); m_mainSettings.SizeToContent();
All works good, except greyed frame arround bitmap. So I need to add a transparent color for the bitmap. Please help me to resolve the problem. -- modified at 14:38 Sunday 17th June, 2007 -
CToolBar disable/enable buttonsHi Mark, If I ommited the last parameter, buttons are not disabled. :(
-
CToolBar disable/enable buttonsMark, many thanks for help. I have tried to omit the last parameter, but it doesn't work :doh:. I will try to use CButton instead of tool bar.