Import COM exe server
-
: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;
-
: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;
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?