Hi, I have an VFP 6.0 application that I would like to compile into a DLL for client access using VB and/or C++. My feeble first attempt was to create a new Custom class qualified as OLEPUBLIC that contained one property, that is what will be used as the parameter being passed to the application. The Prg file that was marked as the main program in the project, I made it into a procedure.
The external application would then to a CreateObject on my OLEPUBLIC class. Set the property to whatever they want to pass into the application, then call a method I created in the class that would issue a DO
, where the procedure called would be the old main program for the Exe. I hoped it would be that easy, but I am getting OLE Dispatch errors when the DO command is executed.
Am I even close? Or do I need to do much more to the application to make it work as a COM object?
Thanks,
John
John L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845