General information
Category:
Object Oriented Programming
>Hi All,
>
> I have created the Server executable DLL as follows
>
>DEFINE class DateResult AS CUSTOM OLEPUBLIC
> Function DateResult
> lParameter ppDate
> If ppDate < Date()
> Return -1
> EndIf
> If ppDate = Date()
> Return 0
> EndIf
> If ppDate > Date()
> Return 1
> EndIf
> EndFunction
>ENDDEFINE
>
>
>After writing this, I build a DLL, with all setting in Project Information as server options. and it creates dll successfully. But i dont know how to execute this. And also how to Install at server end and cliend end. as how to execute at server end.
>
>thanks in advance for your time.
>
>Amit
Ok... you didn't say what your DLL name is... but you will have to register the .DLL on any machine you want to run this on. That machine will also require the VFP runtime file.
Ok... so, how do you use it... well, this is VFP code, but it can be used by basically anything that supports COM. Lets say your file is MyDLL.
oMyDLL = createobj('MyDll.DateResult')
lResult = oMyDll.DateResult( dDateVar )
*************
So, basically you use it that same as a VFP class.. but, in the create object you have to specify the ServerName (.DLL name).
BOb
Previous
Next
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