Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-03

Animals game - exception: Failed to create win32 control, error: 1407 : Cannot find window class.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Williams

Hi All,
I have a Lazarus project which is a legacy game project from Delphi 7. It works fine in D7 and I used the tools menus to convert it to Lazarus. It compiles fine and when I run it it immediately gives this exception: Debugger Exception Notification
Project ANIMALS.exe raised exception class 'Exception' with message:Failed to create win32 control, error: 1407 : Cannot find window class. I did a search on this error and only found a few C language references to it. Here is the project download link: http://hotfile.com/dl/111641603/97e0137/animals_001.zip.html

The game is a simple single form application with 5 x tButtons, each with their own modal codes, a tEdit and a tMemo... and that's about it. The form is called from it's own unit with a form1.showmodal command (e.g. showing it's own form). I am hoping that someone can look at this and tell me what I am doing wrong. I think possibly I may need to separate out Animals.pas as a unit and make it's form a separate form and create it from my Animals.pas unit. Would this fix this problem? Best Regards,Peter / pew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110325/c2c4edde/attachment.html>

Reply by email