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:
00527276
Views:
41
>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?

The answer is "Yes".
By design you cannot directly use any visual interface VFP commands from within the COM objects. But that does not mean that you cannot have a visual interface with your COM objects in indirect way. In fact, you can have WAIT window, messageboxes etc, coming to the client application from the COM/DCOM module.
Find my article "Raise Events From Your Applications" in February 2001 FoxPro Advisor and you will see how to do this. The samples also show how to do this from VB client app.

I will have a session at San Diego DevCon in September which is called "Create a Visual Interface for Visual FoxPro COM/DCOM".

The problem still stays with printing reports from COM DLL, as VFP tries to pop up the "Printing... " message on screen.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform