Hi all!
I am working on something that is new to me, i.e. I am working on a component in VFP 5.0a that will read data from a SQL server, and write an ASCII file. I designed it to be an InProcessServer, and it's going to be used with Internet Information Server 4.0 under WindowsNT server 4.0.
We want to instantiate the object via an Active Server Page, using the syntax:
SET object = server.createobject("dllname.classname")
object.pnSomeproperty = somevalue
object.mlwrite()
My OLEpublic class looks like:
DEFINE CLASS myclass AS somesuperclass OLEPUBLIC
pnSomeproperty = 0
PROTECTED PROCEDURE INIT()
SET EXCLUSIVE OFF
ENDPROC
PROCEDURE mlWrite ()
set a path
open a database
do stuff
ENDPROC
ENDDEFINE
The code uses several foxpro tables, that reside in a dir of my choice, and to which i set the current dir (but not during instantiation).
I compile this project (which includes a dummy main.prg), and set the server to "multi use". Then i copy the DLL,TLB,VBR to the winnt system dir and I regsvr32 the DLL. As far as i know (and according to all i've read) i should now be able to at least instantiate this object. But it won't work, even when not using NTFS security (FAT). For some reason, the object can not be created (even though the init() does nothing but SET some VFP things)
I tested this dll on several W95 machines, both from VFP5 and VB5, and it worked fine...
I am hoping anyone out there has some experience with this.
with regards,
derk schutte
Derk Schutte