Everyone, I have downloaded MSSoapToolKit 2.0 and run the sampleas. But on my office's computer, have one puzzle: while I do Calc sample by "Using a High Level API for SOAP Messages", here has following problem: ?mSoapClient.detail Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A13BE - Client:Connector - Invalid Http method. HRESULT=0x800A13BE ?mSoapClient.faultstring Client: Connector - Invalid Http method. On the other hand, I made it by "Using a Low Level API for SOAP Messages", all right. And on my home computer, all two methods are profect. Anyone met this before? Thank you very much.
chenzhu
Posts
-
About SOAP Toolkit 2.0 High level API -
.NET Control, OCX and Java Applet in HTMLI have made a Jave Applet that can draw vector graph. I use it in HTML page at Internet. I know that another way is I can developed a OCX control to do this task. But the later's size is larger than Java Applet. Here has .NET, extra choice. I want know if I write the control by C#(It is a .NET control), what advantage I can get and what I lost? Thank you. :confused:
-
.NET Control, OCX and Java Applet in HTMLI have made a Jave Applet that can draw vector graph. I use it in HTML page at Internet. I know that another way is I can developed a OCX control to do this task. But the later's size is larger than Java Applet. Here has .NET, extra choice. I want know if I write the control by C#(It is a .NET control), what advantage I can get and what I lost? Thank you.:confused:
-
How resize a ATL control inside ATL DLL?Yes, I have do it by SetWindowPos. Just after I call this function, the ATL extenter has been resized(become smaller). But I click in the original rect of the ATL extenter, the ATL become the original size as same as before calling SetWindowPos. In fact I want to call SetWindowRgn to make a irregular ATL control, but I cannot because the same reason as above. Click the ATL, it become back to previous shape. cz
-
How resize a ATL control inside ATL DLL?That is how resizing a ATL control inside the ATL server DLL? The detail is: I set a ATL control property with Width and Height and want resize the control according to the two parameters. Please tell me how can I get it? cz
-
how to convert a _variant_t to recordset in vc++?You can convert the IDispatch to a _RecordsetPtr. //mycontrol.h _RecordsetPtr m_pRS; //mycontrol.cpp STDMETHODIMP CMeCTable::put_DataSource(IDispatch *newVal) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) if (m_pRS == NULL) m_pRS = NULL; HRESULT hr = newVal->QueryInterface(__uuidof(_RecordsetPtr), (void**)&m_pRS); if FAILED(hr) { return E_FAIL; } }
-
Press a key in a MFC ActiveX controlYes, PreTranslateAccelerator is for ATL control and you can use PreTranslateMessage method as the another person's suggest. Please read MSDN following article: PRB: MFC ActiveX Control Ignores ARROW Keys on VB Container Good Luck!
-
Press a key in a MFC ActiveX controlI think that you need do some thing at the control PreTranslateAccelerator method function like following code. BOOL CInPlaceEdit::PreTranslateAccelerator(LPMSG pMsg, HRESULT& hRet) { if( ( pMsg->message == WM_KEYDOWN || pMsg->message == WM_KEYUP ) && ( pMsg->wParam == VK_LEFT || pMsg->wParam == VK_RIGHT || pMsg->wParam == VK_UP || pMsg->wParam == VK_DOWN || pMsg->wParam == VK_TAB) ) { hRet = S_FALSE; return TRUE; } return FALSE; } :cool: cz
-
how get rid of the null character in a BSTR string?Dear Masaaki Onishi, Thank you very much. Yes, I want a control to display the data. Actualy I am making a ATL control and the ATL control hold one Grid that accept format string in that pattern. The common usage is a VB project, which is the client of ATL COM control, opens one database and get one recordset, and then pass it into ATL control. Of course I can loop through whole recordset, read variant from every fields and assemble a CString by myself, but that is too tiresome. If you have waked up now has have a good mood, give me a advice. thank you. chenzhu :-O
-
how get rid of the null character in a BSTR string?Dear Masaaki Onishi, The last effect is my desire. I get a BSTR string has '\t' separator between columns and '\n' between rows. But int the string has excaptional '\0' just before a '\t'. I can not transform it to CString by W2A or WideCharToMultiByte functions directly because these annoying '\0'. Thanks. ;P chenzhu
-
how get rid of the null character in a BSTR string?Hi All, I have a BSTR string variable via ADO Recordset Getstring method. In the BSTR string has null character('\0'). How can I get rid them of in a common way(Of course I can loop from start of BSTR, but I want a directly way). Thank you. ;P chenzhu