locked
Use tlb type library developed in c# DotNet in delphi5 application RRS feed

  • Question

  • I imported the tlb type library (developed in C# DotNet) from Delphi5, but the component only have the class BUT without any method. Plz help.

    RS

    Sunday, May 12, 2013 2:45 PM

Answers

  • Actually the problem was I missed to declare the methods in the Interface. Now its working fine. Anyways thanks for a response.

    RS

    • Marked as answer by Mike Feng Tuesday, May 14, 2013 10:55 AM
    Tuesday, May 14, 2013 2:38 AM

All replies

  • Hi Rs,

    Please regenerate the type library again. If the tlb file is correct, it should contains the type information and also the method information. 

    In case, to export a tlb file, you need the tool http://msdn.microsoft.com/en-us/library/hfzzah2c(v=vs.110).aspx 

    And I recommend you to register this assembly first: http://msdn.microsoft.com/en-us/library/tzat5yw6(v=vs.110).aspx with the /tlb switch. The switch will generate the related tlb file. So you can try this file to check it contains method or not.

    I hope this will be helpful.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 13, 2013 1:04 PM
  • Actually the problem was I missed to declare the methods in the Interface. Now its working fine. Anyways thanks for a response.

    RS

    • Marked as answer by Mike Feng Tuesday, May 14, 2013 10:55 AM
    Tuesday, May 14, 2013 2:38 AM
  • Hi, could you be more specific?

    I have the same problem with C++and Visual Studio.

    I have to replace a C++ ActiveX with one developed in C#. 

    C# ActiveX is working fine with InternetExplorere but I'm not able to import it within a MFC C++ project.

    Any idea?

    Wednesday, July 10, 2013 2:42 PM