locked
COM Interoperability RRS feed

  • Question

  • Hi,

    how to code a type library in VS.NET 2005 beta 2 in C++? I wanna put some automation functionality into my app.
    In other words i wanna the possibility that other COM capable applications like Office can use some automation functionality of my app i.e. through VBA or so.
    A COM capable language.

    This was in Delphi really simple with the type library editor.

    I'm only developing 64 Bit applications now in C/C++ and ASM.


    thx in advance

    Sunday, July 3, 2005 7:57 PM

Answers

  • I'm not sure I understand your question but I'll spout off anyway.  

    Typically in C/C++ projects the type library comes about as a conseqence of compiling the project's IDL file and typically much of the IDL is generated by the ATL wizard as you add interfaces, methods and properties to your project.  Of course you can hand-edit the IDL if you want to.

    Starting with Visual Studio 2003, you can use the new attributed ATL to specify the data that used to go in the IDL as attributes within the C/C++ itself.  You still have an IDL but now the C/C++ build generates the IDL file from the attribute values and then compiles that IDL file into a type library.
    Monday, July 11, 2005 6:28 AM
    Moderator