Error: Undeclared identifier: 'OutputDebugString'

7.3k Views Asked by At

I use OutputDebugString in my Delphi Code, but I receive the error:

Error: Undeclared identifier: 'OutputDebugString'

Which package is this OutputDebugString in?

2

There are 2 best solutions below

0
On BEST ANSWER

It's declared in the Windows unit.

0
On

In windows unit in Winapi namespace:

uses
   Winapi.Windows;

How to find the unit of a specific command:

  • Through Find Definition command in the context menu
  • Through Help Insight information invoked by hovering the mouse
  • Or just use Windows Search or a popular search tool