All,
Does anyone on here have any experience of calling a VFP DLL from a C# application?
I've developed a VFP Multi-threaded COM server DLL, that simply accesses various Opera 3 VFP database tables.
I've written a VFP test harness that references the DLL, and calls various of its methods. It works successfully.
However, I want to write a C# test harness to do the same thing (i.e. reference the DLL, and call various of its methods).
I created a simple C# Console application, and referenced the VFP DLL.
I then thought, probably rather naively, that the C# code would be something like:
myVFPClass myObject = new myVFPClass
However, i get error "myVFPClass is a namespace but is used like a type".
I've Googled it, until I'm Blue in the face, but can't see what I'm doing wrong.
Does anyone have any experience of doing the above and, if so, can advise as to how I can resolve the above error?
Many thanks
Steve