Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Undeclared identifier: 'OutputDebugString'

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

Error: Undeclared identifier: 'OutputDebugString'

Which package is this OutputDebugString in?

like image 575
spspli Avatar asked Aug 11 '11 22:08

spspli


2 Answers

It's declared in the Windows unit.

like image 81
Mason Wheeler Avatar answered Oct 31 '22 19:10

Mason Wheeler


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
like image 1
Charlie Avatar answered Oct 31 '22 17:10

Charlie