Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Create DLL called from VB showing a form
I have a requirement to generate data from VFP for a scheduling process written in VB. The VFP program must ask the user for some information to determine the type of information to send back. The VFP program needs to be a .DLL rather than an .EXE so that the VB program will wait for the VFP process to complete before resuming execution.
I have written the data collection logic, can call it from the VB routine and can get data back, but... I can not figure out how to communicate with the user from the VFP program to get the selection criteria.
The program that I have written creates a class based on custom and is OLEPublic. I attempted to add a form to the class and added the form objects in code, which seem to have been created but it will not show. I get an error if I try to use the Show method and simply making it visible doesn't do anything.
I then tried to use a messagebox but it errors on "User Interface option not allowed at this time."
I know this can be done, but I can't figure out how.
Thank you in advance for any help you can provide.
Pamela.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement