Results 1 to 2 of 2

Thread: event notification DLL to GUI Application

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    india
    Posts
    108

    event notification DLL to GUI Application

    event notification DLL to GUI Application
    I m working on a event notification application.. i have made a publisher DLL with event class and registered at COM+ services and also a subscriber DLL which are implementing the publisher' event..(like loosly couple example in msdn).. after a subscription the subscriber DLL is getting the notification.

    Now i have added subscriber DLL in my GUI exe application...but when the event occur or when the event notification is generated my application didnt get any response from subscriber DLL...WHY?

    how my appication will get response from subscriber DLL, that when event occur....i have already used "withevents" but nothing happened?

    anand


    __________________
    Anand Thakur

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    I see that you are trying to do this for 15 days (your first post asking about this)

    Well, I say, forget about the COM+ thing your trying to do.

    Here's the way I would do it...

    If the sender app and receiver app for the messages are on the same computer I would use the SendMessage API and RegisterWindowMessage API to register that message. To receive the message just subclass the main form of the receiving application.

    If the sender app and receiver app are on diferent computers (and on a network) then just use Winsock. Have the winsock on the server listen on a port that is not used by other apps, and just make the client applications connect to that port. That way both client and server can send/receive data in both ways.
    Last edited by CVMichael; May 30th, 2003 at 04:45 PM.

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