Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Forms be built into VFP 5.0 DLL ?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00046143
Message ID:
00046198
Views:
16
>I have built a project into a DLL. The DLL includes a form. When I create the object and use it it runs well until the call is made to the form. When a call to the form is made the program hangs indefinitely until I Kill the process. If I create the object and use it without making any calls to a form then the DLL runs great.
>
>Is it possible to include a form in a DLL? The reason I want to create a DLL rather then an exe is to make it an in-process server.
>
>If it is possible to create a DLL with a form in it, how do I make the call to the form?
>
>Thanks for the input.
>Michael

i don't think you can have a user interface ( ie forms ) in foxpro's ole dlls. at least i wasn't able to and that was the reason i was given.
the solution i came up with was to put the forms in a class library and compile them into an app.
then in my exe i was able to SET CLASSLIB TO classlibraryname IN appname.app ADDITIVE.
at that point i could create any object within that class library. it works pretty well. it will of course only work with VFP calling VFP.
Previous
Reply
Map
View

Click here to load this message in the networking platform