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
  1. Home
  2. General Programming
  3. COM
  4. Delphi creates empty propput procedures when it imports my DLL

Delphi creates empty propput procedures when it imports my DLL

Scheduled Pinned Locked Moved COM
c++comdelphisalesquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gary Chapman
    wrote on last edited by
    #1

    I have an ATL/MFC COM DLL which a customer is trying to use from Delphi 6 Enterprise SP2. He was having trouble setting properties, and eventually discovered that all of the Set_* procedures in the auto-generated TLB file are empty. The only ones that aren't empty are for BSTR properties. We have no problems using the DLL from C++, VB or ASP. Has anybody experienced something like this? Am i missing a MIDL keyword? Is it a build/linker setting? Do I need to specify something in my .DEF file? Or is Delphi to blame? --- Here's how things are defined in my project: // from my .idl file [propput, helpstring ("blah"), id(6)] HRESULT RepeatCount([in] long newVal); // from the corresponding .h file STDMETHOD(put_RepeatCount)(/*[in]*/ long newVal); // from the corresponding .cpp file STDMETHODIMP CMyClass::put_RepeatCount(long newVal) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) m_lRepeatCount = newVal; return S_OK; } // from Delphi's auto-generated MyDLL_TLB.BAS procedure TMyClass.Set_RepeatCount(pVal: Integer); begin Exit; end; --- Thanks, Gary

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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