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
J

Johan O

@Johan O
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Passing Arrays in COM
    J Johan O

    My mistake i forgot to compile the proxy-stub. Thanks

    COM php com sysadmin data-structures help

  • Passing Arrays in COM
    J Johan O

    Need help with passing a BYTE array in COM. I think i have done it right but i only get the first byte passed. Here is the idl: interface ICOMtestObject : IUnknown { [id(1), helpstring("method GetData")] HRESULT GetData([out]ULONG *sz,[out,size_is(,*sz)]BYTE **data); }; Here is the implementation in the COM server: STDMETHODIMP CCOMtestObject::GetData(ULONG *sz, BYTE **data) { // TODO: Add your implementation code here *data = (BYTE*)CoTaskMemAlloc( 5 * sizeof( BYTE)); (*data)[0]='T'; (*data)[1]='e'; (*data)[2]='s'; (*data)[3]='t'; (*data)[4]='\0'; *sz=5; return S_OK; } Here is the implementation in the client: HRESULT hr = m_objPtr.CoCreateInstance(L"Comtest.COMtestObject.1"); ULONG sz;BYTE *data; hr = m_objPtr->GetData(&sz,&data); The data array includes only the first byte. Here are some sample code http://forums.devx.com/attachment.php?attachmentid=1036

    COM php com sysadmin data-structures help

  • CWnd::CreateControl copy/paste problem
    J Johan O

    A very big thanks to you Ryan, now it works!

    C / C++ / MFC com help docker lounge

  • CWnd::CreateControl copy/paste problem
    J Johan O

    I'm having a problem with the CreateControl method of the CWnd object. I can create the ActiveX but it seems that the Ctrl-c and Ctrl-v is not forwarded to the Active X but all the general key press works. When i insert the ActiveX in the OLE test container the Ctrl-c and Ctrl-v works fine. Please help me. Thanks

    C / C++ / MFC com help docker lounge
  • Login

  • Don't have an account? Register

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