CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 1999
    Posts
    33

    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

  2. #2
    Join Date
    Feb 2003
    Location
    Bilbao
    Posts
    513
    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?

  3. #3
    Join Date
    Jan 2003
    Location
    Cambridge, UK
    Posts
    752
    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

  4. #4
    Join Date
    Aug 1999
    Posts
    33

    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.

  5. #5
    Join Date
    Feb 2003
    Location
    Bilbao
    Posts
    513
    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
  •  





Click Here to Expand Forum to Full Width

Featured