Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wintypes.dcu not found and code completion stops working

I'm getting the error: wintypes.dcu not found several times a day in the Delphi 2009 IDE, after this error code completion stops working, also I can't open any unit's source code with Ctrl + Click, then I have to reopen the IDE to fix it.

Anyone has a clue about what can be causing this?

The only IDE extension I have installed is GExperts.

like image 268
Fabio Gomes Avatar asked Nov 12 '08 14:11

Fabio Gomes


3 Answers

wintypes.pas and winprocs.pas has been replaced with windows.pas (since a long time). You should use Unit Aliases to replace all wintypes with windows.

like image 185
Örjan Jämte Avatar answered Nov 16 '22 21:11

Örjan Jämte


You must be still using the ancient (pre-Delphi 2) names for what is now the Windows unit. I recommend that you search and replace all your uses lists and replace WinTypes and WinProcs with Windows.

Alternatively, you can make sure you have "WinTypes=Windows" and "WinProcs=Windows" in the Unit Aliases section of your project options, but still, after all these decades, I'd move on to the 32-bit world! (16-bit being the prime limitation that meant WinTypes and WinProcs were two separate units.)

like image 30
Barry Kelly Avatar answered Nov 16 '22 20:11

Barry Kelly


Open Project - Options, Delphi Compiler ,into Unit aliases insert:

WinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE

like image 2
Ruslan Avatar answered Nov 16 '22 21:11

Ruslan