General information
Category:
Internet applications
Thanx Rick,
You are the best. See you at devcon.
Dr. G. (Neil)
>A COM object is like a new instance of Visual FoxPro. So you need to set the environment in the INIT of the server.
>
>I always do at least the following in any COM object:
>
>SET EXCLUSIVE OFF
>SET REPROCESS TO 2 SECONDS
>
>*** Find the startup path
>THIS.cAppStartPath = ADDBS(JUSTPATH(Application.ServerName))
>
>SET PATH TO (THIS.cAppStartPath)
>
>If the object is used in VFP and COM you'll want to look at the Application.Startmode property to do this stuff only in COM.
>
>+++ Rick ---
>
>
>>Hi UTer's
>>
>> I have a vfp application called myapp.exe that uses data tables in a dbc called mydata.dbc. I have made a multi-threaded com server, myapp.dll,that also uses the tables in mydata.dbc. I use some of the objects in the automation server in WORD, EXCEL and even on Active Server Pages. I get an "access denied" error in vfp when I launch myapp.dll and then myapp.exe. The .exe and the .dll work with the data tables individually but not together. They don't share well.
>>
>>Neil
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only