Thread: Accessing varibles in a DLL from VB in run-time.

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    11

    Accessing varibles in a DLL from VB in run-time.

    I am in the process of creating an ATL COM Dll that I call from VB.

    The DLL sets up Windows Sockets, and processes messages received. I'm receiving from a constant data source, so I'm not interested in exiting from the DLL quickly.

    I am interested in viewing variables as the DLL is running - like a counter value.

    I'm in the process of introducing threading, or wrapping the DLL in an ActiveX exe so that control returns to the VB Gui immediately, but I still want to keep tabs on the DLL, and I'm not sure how.

    Any ideas? I'm not having much luck with MSDN.
    Smell my cheese you Mother

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Assuming the com dll is able to report almost constant data, you might want to look at implementing IConnectionPoint & IConnectionPointContainer.

    That way the component has an interface from the client that it uses to report events......so instead of the client controling the server to obtain data, the server reports changes to the client as and when nessasary.

    Not usre if you can implement this in VB though...but if you are happy with ATL, why the hell dont you just use MFC?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detect if a DLL is load time or run time
    By Ktulu in forum Windows Programming
    Replies: 3
    Last Post: 12-17-2006, 04:11 PM
  2. Run DLL on networked machine
    By drb2k2 in forum C++ Programming
    Replies: 2
    Last Post: 06-23-2005, 03:17 AM
  3. c++ ISAPI fails to call VB dll
    By froque in forum Windows Programming
    Replies: 0
    Last Post: 08-22-2003, 02:06 AM
  4. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 04:36 PM
  5. Calling C++ DLL from Excel VB...!
    By Tony in forum Windows Programming
    Replies: 0
    Last Post: 06-26-2002, 08:07 AM