Information générale
Catégorie:
Gestionnaire de projet
OK, you do call form from exe! And therefore you get an error. Because exe use a class, then exe can see objects belong to the class. You do not have form as class object or property, I believe. In this case you may need to create a class from the form and include it as object into APP class.
>I call the .APP from the .EXE. The exe calls the form by using a custom method that I created in my main application object (goApp). The application object is a .VCX which is included in the .EXE. I instantiate the application object in my .EXE with the following code:
>
>SET CLASSLIB TO uapp ADDITIVE
>goApp = CREATEOBJECT("Application")
>
>Where goApp is a public variable and uapp is a .VCX with my application code in it. I know that my custom method in goApp works when I include the source code for the forms with my distribution. But, if I don't include the .SCX form files with my distribution than I get the error message that the .SCX file does not exist. But, I shouldn't need it since it should be included in the compiled .APP file.
>
>I thought maybe it would help if I included the uapp.vcx file in my project for the .APP, but that didn't seem to help anyway because it is instantiated from the .EXE so it shouldn't matter.
>
>Thanks again for your help.
>
>Sincerely,
>Don
>
Précédent
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