Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL Question
Message
From
10/06/1999 05:08:44
 
 
To
09/06/1999 21:31:32
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00227742
Message ID:
00228276
Views:
17
>>>If I add a method to a DLL to open a table and
>>>return a value, the table is closed automatically
>>>when I come back out of the DLL, even though the
>>>DLL was instantiated in the same datasession.
>>>
>>>If I open the table before I go into the DLL and
>>>pass in the alias, I get an 'alias not found' OLE
>>>error from the dll.
>>>
>>
>>
>>It sounds like your in-process server is based on a form class with a private datasession. If this is the case, then the form is instantiating it's own DE with its own datasession just like any other form with a private datasession...
>>
>
>Ed- even a custom class specified as OLE public will not make open tables available to the calling program. And a custom class has no private datasession.

I know you can create an OLEPUBLIC class based on a form with a private datasession; passing in an alias from another datasession creates the error as noted.
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