You can't do that. The DECLARE function defines a Win32 DLL, which you can't create in VFP.
>I need to create a .DLL file with the purpose of hiding some VFP code.
>
>Most samples into VFP help and MSDN contain confirmation into about creating a .DLL from a OlePublic class, but I need to call a plain function and/or procedure from within this .DLL
>
>I guess it should be possible because I’ve used some .DLL files where after declaring the function with something like this:
>
>Declare integer Myfunction in MyDLLFile
>
>You can call a function or procedure through:
>LnResult = MyFuntion()
>
>
>Thanks in advance for any help.
>
>
>Regards.
>
>
>Oscar Corte
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer