I have an application which is a COM Server. A client wants to write a Delphi app to use my COM Server. He said it would be easier for him if I generated a .TLB file. What are the options I set so I can make VC6 generate a .TLB file.
thanx
Printable View
I have an application which is a COM Server. A client wants to write a Delphi app to use my COM Server. He said it would be easier for him if I generated a .TLB file. What are the options I set so I can make VC6 generate a .TLB file.
thanx
I think that the only way to obtain a tlb is to add to the project an odl file.
This file is then compiled and its output is a tlb.
if you do it via standard ATL COM wizard - all will be generated automatically, or you may use mktyplib.exe to produce tlb from idl-file
Thanx, I think you are right from what I read. My next question is How do I create a .odl file considering my project already exists?
Quote:
Originally posted by Caronte
I think that the only way to obtain a tlb is to add to the project an odl file.
This file is then compiled and its output is a tlb.
Quite a bit difficult to explain how to build an ODL file...
I send you an example, to give you tips for consulting the MSDN
[
uuid (B3CA0C21-1113-12d7-8493-00D04E9CBA3A) ,
lcid (0x0409) ,
version (1.0)
]
library myproject
{
[
helpstring("Functions exported by myproject.dll"),
version(1.0),
dllname("myproject.dll")
]
module myprojectFunctions
{
[
helpstring("Example function"),
entry("EcampleFunction")
]
void __stdcall ExampleFunction( short a, char b);
}
}