-
February 24th, 2003, 11:27 AM
#1
How to get VC6 to generate .tlb
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
-
February 24th, 2003, 11:34 AM
#2
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.
Caronte
Si tiene solución... ¿por qué te preocupas?
Si no tiene solución... ¿por qué te preocupas?
-
February 24th, 2003, 11:38 AM
#3
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
Cheers,
Alex
Please rate this post if you find it helpful
-
February 24th, 2003, 12:12 PM
#4
How do I create a .ODL 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?
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.
-
February 24th, 2003, 12:19 PM
#5
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);
}
}
Caronte
Si tiene solución... ¿por qué te preocupas?
Si no tiene solución... ¿por qué te preocupas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|