Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a class into a DLL
Message
From
07/04/2003 20:22:09
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00774935
Message ID:
00774960
Views:
21
Hi Rick

Thanks for your reply.
I've seen some dclare statements like this:
declare integer myfunction in MydDllLibraryWithpath

Where once declared, you only need to make a function call.
? myFunction()

This does not match with the syntax used with oClase = CreateObject()
since a method should be called through oClase.HelloWorld()

I'm confused about how to create a dll where you only make a declare statemente and next a function call.

vfp seem to let you create a dll only if you have a OlePublic class but then the previous sintax:
? myFunction
does not apply, but the one you provided: o.HelloWorld()
once the object has been created.

What am I missunderstanding?

Regards

Oscar


>>I’ve created a .dll from a custom class (olepublic). What are the exact step to call this class and its methods?
>>
>>Is it possible to do this with a .PRG only?
>>
>>Thanks in advance
>>
>>Oscar Corte
>
>What do you mean exactly?
>
>The following will create the object and call it:
>
>
>o = CREATEOBJECT("YourProject.YourClass")
>o.HelloWorld()
>
>
>In a VBA type language you'd add this the DLL or EXE to the project references and then declare the object as the ProgId (YourProject.YourClass).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform