Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Import COM exe server

Import COM exe server

Scheduled Pinned Locked Moved COM
c++comsysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RevathiRamakumar
    wrote on last edited by
    #1

    :confused:I have COM exe server and a dialog based MFC client..The code works well on the same machine..But ,when I copiede exe of the server to the remote machine and registered it and tried to call the server I'm getting Library not found error...This is my import statement.. #import "\\Remoteservername\FileServer.exe" using namespace FILESERVERLib;

    J 1 Reply Last reply
    0
    • R RevathiRamakumar

      :confused:I have COM exe server and a dialog based MFC client..The code works well on the same machine..But ,when I copiede exe of the server to the remote machine and registered it and tried to call the server I'm getting Library not found error...This is my import statement.. #import "\\Remoteservername\FileServer.exe" using namespace FILESERVERLib;

      J Offline
      J Offline
      Jonathan Davies
      wrote on last edited by
      #2

      I'ts a while since I've done any MFC COM, but I'm pretty sure the location of the target of the #import statement is independant of any calls to the actual server. That is, you could have used #import FileServer.exe if a copy of the .exe is in your local directory - it won't have any effect on whether you make a call the server on your machine or another. It's the code creating and calling the COM object you should be showing. Have you got the registry settings on the calling machine right so that the system knows which server to call? If you set your client to use a local server (in the same machine) and then run it on the remove machine does that work? What about the proxy/stub?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups