Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data paths in COM
Message
From
05/04/2000 14:11:50
 
 
To
05/04/2000 09:55:15
Scott Knight
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00355583
Message ID:
00355816
Views:
27
>>How about setting the datapath in an application registry entry? Using the Registry class in the FFC, or any one of several registry classes found here in the files section, it would take only two lines of code.
>
>How does the component know which application it is currently working for and registerd to in that case? Just to add some more detail: I have an object that gets used by several applications. One second it could be instantiated doing work for WEBFAX and ConForm the next, both having different data paths. I am trying find a way that the COM object can set its own property based on something in the enviroment with out hard coding or passing paramters unless I have to. I hopeing for maybe some IIS object or something that would know what application it is corrently working with. I may be totally out to lunch as well...If I am what would you suggest. I started with Rick Strahl's WebTools::Init which sorta did the same thing except Application.Servername pointed to the directory to which my DLL had been built in not to the application I am Using.
>

Presumably, your client identifies itself to the server, which can use the registry as a persistent store to associate paths with valid clients, and derive the registry keys on that basis.
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