Christopher,
DECLARE DLL is the way to go, forget the baloney you need to use the LCK. On my website is an example in the spyin.zip, it's got both the needed VFP and VC++ code.
>I am trying to create a .DLL for use with a Visual Foxpro application. I am using Visual C++ 5.0. I have created a Regular MFC DLL but it fails on the SET LIBRARY TO command. I can access individual functions with the DECLARE...DLL function. The other problem is when I try to include the Library Construction Kit capabilities the are shipped with Visual Foxpro. I can create a Windows DLL and include the LCK but when I try to create a MFC DLL and include the LCK I get tons of linker errors.