Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM/DLL Can I display Fox Screens from a VFP DLL?
Message
 
 
To
05/07/2001 17:19:32
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00527213
Message ID:
00527447
Views:
21
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform