Emiliano Posted May 18, 2014 Posted May 18, 2014 Hi the undeclared identifier happens after this steps: a) i open the demo screensize included a new button c) INCLUDED the new form in the USES section d) the code is just the show command, so main form can call the second form when i try to run happens the error undeclared identifier informing that the second unit is not declared! any ideas? thanks Emiliano Quote
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Posted May 18, 2014 Show unit1.pas please. Quote
Emiliano Posted May 18, 2014 Author Posted May 18, 2014 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm;type TUniForm1 = class(TUniForm) private { Private declarations } public { Public declarations } end;implementationuses uniGUIApplication;{$R *.dfm}end. Quote
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Posted May 18, 2014 You have created a free form. You need an application form. Quote
Emiliano Posted May 18, 2014 Author Posted May 18, 2014 but when i create an application this the wisard starts a new project! Quote
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Posted May 18, 2014 Unit1 is what you added from ide. Delete it and add again but this time select application form. Quote
Emiliano Posted May 18, 2014 Author Posted May 18, 2014 ok, now the project is running but when i click the button e receive the error Project Sceensize.exe raised exception class EidSocketError !Socket Error # 10054 connection reset by peer .'. the code is just: Uniform2.show; thanks Quote
Emiliano Posted May 18, 2014 Author Posted May 18, 2014 the error message i mantion above happens when i run the app inside the ide but when i run the executable from the windows explorer it works fine thanks Quote
Administrators Farshad Mohajeri Posted May 19, 2014 Administrators Posted May 19, 2014 That's an Indy error which may occasionally occur. You can ignore it. Quote
Emiliano Posted May 20, 2014 Author Posted May 20, 2014 That's an Indy error which may occasionally occur. You can ignore it. Thanks ! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.