Hello
I programming a proyect type Console Application, in the source I need call GUI Form, but when execute code show the following error in runtime:
Failed to create win32 control, error: 1407 : No se ha encontrado la clase de ventana.
[FORMS.PP] ExceptionOccurred
Sender=Exception
Exception=Failed to create win32 control, error: 1407 : No se ha encontrado la clase de ventana.
Stack trace:
$000000010016FF14 line 243 of win32wscontrols.pp
$0000000100185DC6 line 441 of win32wsforms.pp
$0000000100127D11 line 7455 of include/wincontrol.inc
$000000010003B6E3 line 23 of include/scrollingwincontrol.inc
$000000010004261D line 2592 of include/customform.inc
$0000000100043785 line 3058 of include/customform.inc
$0000000100127390 line 7365 of include/wincontrol.inc
$0000000100128A78 line 7811 of include/wincontrol.inc
$000000010011FB07 line 3455 of include/wincontrol.inc
$000000010011F79F line 3506 of include/wincontrol.inc
$0000000100136DA3 line 5463 of include/control.inc
$0000000100134AA5 line 4299 of include/control.inc
$0000000100134BE5 line 4273 of include/control.inc
$000000010003D72A line 487 of include/customform.inc
$0000000100041D27 line 2206 of include/customform.inc
$000000010000300A line 80 of project1.lpr
I use the lazarus 1.6 with FPC 3.0 in x64bits.
My code for calling is:
...
var
Application: LAppConsolev1;
objForm : TForm1;
begin
Application:=LAppConsolev1.Create(nil);
Application.Title:='LAppConsolev1';
Application.Initialize;
objForm := TForm1.Create(nil);
objForm.Show;
end.
Where TForm1 is defined in another file, and is a simple form with a label, textfield and one button.
I search in internet by I can not resolve the execution problem. The compilation is ok but not execute.
¿Could someone please help me to solve the problem?
Thank you.