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

This is a discussion on Accessing varibles in a DLL from VB in run-time. within the Windows Programming forums, part of the Platform Specific Boards category; I am in the process of creating an ATL COM Dll that I call from VB . The DLL sets ...

  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,786
    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, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21