Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VCX PRG COM confusion...
Message
From
04/08/2000 10:04:46
 
 
To
04/08/2000 09:26:13
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00400573
Message ID:
00401020
Views:
31
>>I create the same class up above but in a PRG file instead of VCX. Same code and everything. And the class works. However when I define the class public and add it to a project and compile to a com server, the same code(that works in the VCX, and works as a regular VFP6sp4 object now generates an error. The 'load_data' method calls "open database f:\wrs\data\wrs.dbc shared" will throw an error. No where else does it throw an error but from the PRG file compiled into a COM server.
>
>Have you compiled the vcx into a COM server? Have you been playing around with DCOMCNFG?

The other thing is the reference to the F: drive - is this a mapped drive? If so, the instance of the COM server might not have the same drive mappings available to it, based on the context of execution; if this is the case, maybe using a UNC would be a workaround.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform