Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing COM
Message
From
21/04/1999 09:40:49
 
 
To
21/04/1999 00:08:16
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00210402
Message ID:
00210507
Views:
26
>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
Map
View

Click here to load this message in the networking platform