Thread: Run DLL on networked machine

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    27

    Question Run DLL on networked machine

    Hi guys,
    I have a difficult problem here that I can't solve.

    I have written a dll in C++ that is called from a java program.
    The java program runs on Computer A,
    The DLL is stored on Computer B.

    The dll provides access to a USB device plugged into Computer B.

    What I would like to happen is that when I call the DLL from Computer A, the DLL checks computer B for the USB device.

    What IS happening is that when Computer A calls the DLL it checks Computer A for the USB device, and so never finds it.

    Does anyone know if there is a solution to this problem?

    Many thanks
    DRB2k2

  2. #2
    Registered User mitakeet's Avatar
    Join Date
    Jun 2005
    Location
    Maryland, USA
    Posts
    212
    You need to create, run and access a program running on computer B. You can't use a DLL to do that, DLLs always reside in the same memory space (hence machine) as the program that is linked to it.

    Free code: http://sol-biotech.com/code/.

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    27
    Yes it looks like i'll have to use remoting to achieve the goal.
    Thanks though

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. How to Free a Load-Time DLL?
    By Ktulu in forum Windows Programming
    Replies: 7
    Last Post: 11-16-2006, 05:43 PM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Internal Exceptions in a BCB DLL?
    By andy668 in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2002, 10:50 AM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM