>I would like to expand the potential market for a fox application I've developed over several years. I created a COM/DLL using VFP 6 which contained several procedures from my application.. When I creatobject() and call a funtions in the DLL I get the following error if I try to display ANY messages, forms or print from inside the DLL
>
>"OLE IDispatch exception code 1031 user interface not allowed at this time"
>
>Is there a way arround this?
Yes. Make a COM EXE and you can use any UI you want. The OLEPUBLIC classes are still available in an EXE. To register the EXE, simply issue:
MyCOMExe /regserver
The regserver parameter tells the VFP application to write the necessary registry entries.
One issue to contend with:
1. In order to make Normal forms visible, you need to either make _Screen.Visible = .T. or make the forms Top-level. If you make them Top-level, you lose the ability for modal forms.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao