Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

chenzhu

@chenzhu
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • About SOAP Toolkit 2.0 High level API
    C chenzhu

    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.

    .NET (Core and Framework) wcf xml json help question

  • .NET Control, OCX and Java Applet in HTML
    C chenzhu

    I 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:

    C# csharp java html graphics data-structures

  • .NET Control, OCX and Java Applet in HTML
    C chenzhu

    I 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 (Core and Framework) csharp java html graphics data-structures

  • How resize a ATL control inside ATL DLL?
    C chenzhu

    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

    COM question c++ sysadmin

  • How resize a ATL control inside ATL DLL?
    C chenzhu

    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

    COM question c++ sysadmin

  • how to convert a _variant_t to recordset in vc++?
    C chenzhu

    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; } }

    C / C++ / MFC c++ tutorial question

  • Press a key in a MFC ActiveX control
    C chenzhu

    Yes, 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!

    C / C++ / MFC c++ com help question

  • Press a key in a MFC ActiveX control
    C chenzhu

    I 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

    C / C++ / MFC c++ com help question

  • how get rid of the null character in a BSTR string?
    C chenzhu

    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

    C / C++ / MFC question learning

  • how get rid of the null character in a BSTR string?
    C chenzhu

    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

    C / C++ / MFC question learning

  • how get rid of the null character in a BSTR string?
    C chenzhu

    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

    C / C++ / MFC question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups