Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DCOM vc COM pathing snafu
Message
De
20/07/2000 13:32:38
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
DCOM vc COM pathing snafu
Divers
Thread ID:
00395007
Message ID:
00395007
Vues:
45
I want to use a working fox COM object as a DCOM object, but the pathing seems to be different! All the NON pathed functions are working 100% .

For security and maintenance reasons, I want the object to reside on my data server, not on my WEB CONNECT server or clients' systems.

Here's the rub

The COM server code has lines like

mydrive="C:" && the real values are actually in a table
mypath="\data\"
myfile="test.dbf"
tfile=mydrive+mypath+myfile
IF FILE(tfile)
tc_message="Loaded " + tfile
USE &tfile
ELSE
tc_message= "ERROR -unable to locate " + tfile
ENDIF
RETURN tc_message

tfile loads in both createobject() AND createobjectEX()

Changing to mydrive="\\myOtherServer" the COM works, the DCOM fails to locate the file and returns the error message!

This does NOT seem to be a network permission issue, because it fails
with createObjectEX() when I am testing with all files and code actually at myOtherServer.


If this belongs on another thread, please move it, but I really don't know if the problem is VFP or Winapi or OLE or ??
ANy ideas out there?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform