>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only