Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress During COM Call
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01140886
Message ID:
01141341
Views:
18
>Hi Paul,
>
>I was pretty excited about your suggestion. However, when I built the COM object and tested it in the IDE, I got an error that user interface was not allowed. I followed your steps saving the form as a class and marking it OLE Public and compiling it into a MTDLL. I was able to instantiate it, but when I called the Show() method is when the error appeared. I made sure that the form was modeless and ran it from the compiled EXE and got the same error returned under the OLE error 1429. It occurred to me that I didn't think COM objects could show user interface by definition. Maybe I've missed something in implementing your suggestion?
>
>Thanks,
>Tim

In-process (DLL) COM components can't have any UI. Out of process (EXE) based ones can. You can actually just add your form class to your existing project, mark it as OLEPUBLIC, then instanciate it from your current EXE (e.g. you don't even have to build another project for it).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform