Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External COM objects

Status
Not open for further replies.

josh3217

IS-IT--Management
Feb 18, 2004
19
US
I can currently access a DLL i have locally on my machine with the CreateObject command below.

o = CreateObject("Application.Class")

This will only work if that DLL is registered on that local machine.
How would i access a DLL off of a server or centralized machine?
This would allow me to avoid installing software on hundreds of machines, very beneficial!
 
Check CreateObjectEX in help. I never make it works but you can be luckier than me :)

Borislav Borissov
 
it looks like that just might work. however, i too have not had much luck with it.
 

Sorry, but CREATEOBJECTEX() won't work with a DLL.

Josh, can you re-build your class as an EXE? That way, you will be able to instantiate it with CREATEOBJECTEX(). If you can't work out how to do that, come back and I'll try to talk you through it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Well i am getting closer. I was getting no where with the dll, so i rebuilt my class as an exe as MikeLewis suggested. I could successfuly run the exe using CREATEOBJECTEX() in my code from my local machine.

Moved the exe to the server and registered it. Now trying to run my code from my local machine using the exe on the server, getting 'The system cannot find the path specified' error.
 

Josh,

I assume the EXE is registered on both the server and the client machine?

Do you know where the error message is being generated? Is it a VFP error from within your EXE, or an OS-level error, or what? (It doesn't sound like a VFP error.)

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
It is a FoxPro program error, stating exactly:
OLE error code 0x80070003: The system cannot find the path specified.

As far as the exe itself, registering it on every pc in the company would defeat the purpose of running it off of the server. I can run the exe locally from my machine, and locally from the server, because it is registered on both. However, i can not run it on the server from my machine using CREATEOBJECTEX(), i get the error above.

Everything needed to run the program is on the server and functional. I just need to be able to access it remotely.

Thanks,
Josh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top