Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled Project to .APP doesn't seem to include forms?
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00745080
Message ID:
00745421
Views:
28
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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform