Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How catch delphi event from tlb (c#)

Status
Not open for further replies.

gci

Programmer
Nov 10, 2008
1
ES
Hi,
i write a simple interface dll in c# with a small function and with one event.
I must import from delphi with the tlb generated lib.
From delphi the function works fine but when I try to catch the event fire not works never.
Its possible works the event fire from delphi ?
AnyOne have a simple sample ?

If anyone need my test code I write it.
Thanks in advance
 
If at all possible I would suggest configuring your COM dll or ocx as an ActiveX Control. If what you really want is a library or component often you can still use an ActiveX Control but just mark it as INVISIBLEATRUNTIME. Usually you can load the .ocx into a toolbox so that you can even drop the control on a form and access properties and events in the form design tool.

C# would be a bit trickier because it's not true compiled code so you'd need to check out some articles how to code a true ActiveX in C#.

If you could do it the other way around that would be even better. I have ActiveX Controls I made from TWinControls in Delphi 5 and I can use them in VC++ 6, VB 6, Delphi 5, Visual Studio 2008 etc..

Seems like the ActiveX made with the Delphi 5 wizard are very compliant. I can even use them with scripting languages that support COM such as PythonWin and AutoIt3.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top