>Hi,
>I have a .prg file which I'd like to be "protected".
>I thought to compile it as a DLL file, so I followed the instructions in the VFP help.
>I declared a custom public class and put my procedure into the class.
>I builded the DLL , but when I try to call the procedure after declaring it I get this error:
>"ENTRY POINT FOR function_name NOT FOUND"
>
>Can anyone help me with this?
>or send me a simple example of how to build and use a dll file from VFP?
>
>thanks
>fabian
Sounds like you're trying to instantiate it as a C DLL. You need to use CREATEOBEJCT. For example, if your automation server is MyDll.Class, then you would use
ox = CREATEOBJECT("MyDll.Class")
There is an article on COM+ on my website that starts out with a simple COM DLL. It may help you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer