Results 1 to 3 of 3

Thread: How to use an event which is declared in a type library in Delphi

  1. #1
    Newbie
    Join Date
    Jun 2010
    Posts
    2

    How to use an event which is declared in a type library in Delphi

    Hi everyone ,
    I have a C#.dll which I've add it to Delphi 7 (with type library import). I can use all the precedures and functions and properties of this type library successfully .
    my problem is that I have a public event in this dll which I want to use it in Delphi but I don't know how to reach this event.

    this is how I declare a variable as my dll class and use its properties and procedures :

    procedure TForm1.Button1Click(Sender: TObject);
    var
    intrf : ISalesService;
    begin

    intrf := CreateComObject(CLASS_SalesService) as ISalesService;
    intrf.Start(9000,'COM1',4000); //use a procedure
    ShowMessage('end');

    end;

    I can see all the public procedures like Start in the intrf. list ,but I couldn't see any of its public events .

    I'll appretiate any help
    Best Regards
    Shilan

  2. #2
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    796
    Normally, I'd answer this since Delphi is my *****. But this is hardly the place to ask a question like this as your first post. Why wouldn't you go over to experts-exchange or something? I know the answer is on Google also because I was looking for it a week ago!

  3. #3
    Newbie
    Join Date
    Jun 2010
    Posts
    2
    Quote Originally Posted by colin View Post
    Normally, I'd answer this since Delphi is my *****. But this is hardly the place to ask a question like this as your first post. Why wouldn't you go over to experts-exchange or something? I know the answer is on Google also because I was looking for it a week ago!
    I've googled this but I didn't find any answers that I could work with .
    I'm a beginner in Delphi programming so may be that's why I couldn't make them work !!
    I've written this C# dll which another company must use it in their Delphi application . I used it in VB6 and C++ before but I really have problem using COM events in Delphi Client application . And I'm really in lack of time and my deadline is almost over so I really appreciate it if you could give me any hints or links
    Best Regards

Similar Threads

  1. Fusion Brain program for Linux
    By malcom2073 in forum Fusion Brain
    Replies: 75
    Last Post: 07-16-2013, 04:46 PM
  2. HQCT Module (new thread following HU RDS/RDBS)
    By racemier in forum Hardware Development
    Replies: 1271
    Last Post: 12-15-2011, 03:14 PM
  3. v1 support in Linux
    By tripzero in forum Linux
    Replies: 25
    Last Post: 02-16-2010, 12:22 AM
  4. Bug Reports
    By frodobaggins in forum FrodoPlayer
    Replies: 168
    Last Post: 10-16-2004, 01:25 AM
  5. Trying to arrange a MP3 Car show type event
    By datadrz in forum General MP3Car Discussion
    Replies: 43
    Last Post: 01-19-2002, 01:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •