Emiliano Posted May 18, 2014 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Share Posted May 18, 2014 Show unit1.pas please. Quote Link to comment Share on other sites More sharing options...
Emiliano Posted May 18, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Share Posted May 18, 2014 You have created a free form. You need an application form. Quote Link to comment Share on other sites More sharing options...
Emiliano Posted May 18, 2014 Author Share Posted May 18, 2014 but when i create an application this the wisard starts a new project! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 18, 2014 Administrators Share Posted May 18, 2014 Unit1 is what you added from ide. Delete it and add again but this time select application form. Quote Link to comment Share on other sites More sharing options...
Emiliano Posted May 18, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Emiliano Posted May 18, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 19, 2014 Administrators Share Posted May 19, 2014 That's an Indy error which may occasionally occur. You can ignore it. Quote Link to comment Share on other sites More sharing options...
Emiliano Posted May 20, 2014 Author Share Posted May 20, 2014 That's an Indy error which may occasionally occur. You can ignore it. Thanks ! Quote Link to comment Share on other sites More sharing options...
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.