Is there anyone who can guide me how to do that?
By the way, the unit file is based on socket programming.
Thansk,
Salman Bajwa.
In short:
Use "File - New" to create a new ActiveX library. In Borland Developer
Studio 2006,
it can be found under "Other - Delphi projects - ActiveX". Then use
"File - New"
again to create a new COM object in this ActiveX library.
Your new COM object "Foo" with COM interface "IFoo" will be generated
as the delphi
class "TFoo". Now add a "uses" reference to the unit you want to wrap,
and use the type
library editor to add methods to "IFoo". Implement those methods in
TFoo to expose
the functionality of your unit.
The resulting COM library can be wrapped by a .NET assembly with the
tlbimp utility.
Try "tlbimp /?" in a console.
Good luck,
WIC.