BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi creates empty Set_ procedures in TLB when it imports

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Usage
View previous topic :: View next topic  
Author Message
Gary Chapman
Guest





PostPosted: Tue Nov 16, 2004 1:18 am    Post subject: Delphi creates empty Set_ procedures in TLB when it imports Reply with quote



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.pas file are empty. The only ones that aren't empty
are for BSTR properties - all other types are (long, enums, interface
pointers).

This happens whether he uses the BPL or imports the DLL directly using
"Import Type Library".

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 this a Delphi issue?

---

For those that are interested, here's how things are defined in my C++
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

[email]garyTHIS_ADDRESS_IS_SPAM_RIDDEN_BUT_NO_SENSE_ADDING_INSULT_TO_INJURYchapman (AT) yahoo (DOT) com[/email]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Usage All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.