The DLL's VFP - and VB for that matter - creates are Automation Server DLL's. A dll is a package consisting of 1 or more public classes. So, lets say your dll is named foo and you have a class in the dll called fooclass. To use the DLL, you would issue code like this:
o = createobject("foo.fooclass")
You need the runtime components for the langauge in which the dll is created.
So, to use a VFP or VB DLL, the client application must be able to host COM Servers.
>How can I create a DLL to be used by other languages, ie delphi.
>
>I have a project with an class, and a program as main module. The module defines a subclass with the olepublic statment. and I can do dll1.dll from foxpro and I get my messagebox, but if I run:
>
>rundll32.exe c:\test\dll1.dll
>
>From the command line I don't get anything. I also need to know how to create a function for my DLL. I've been experimenting myself but I can't accomplish what I want.
>
>PS: Is this the easyist way to create a small FXP a standalone executable program? Thats what I'm trying to do.
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