Top Delphi Interview Questions :: ALLInterview.com http://www.allinterview.com Top Delphi Interview Questions en-us How to retrieve the position of the cursor? http://www.allinterview.com/showanswers/19450.html Use the Win32 function GetCursorPos() for getting the current (X,Y) position of the mouse cursor How to display the current user name? http://www.allinterview.com/showanswers/19436.html use win32 function getUserName function MyUserFunction : String; var pcUserName : pChar; // temporary storage dwMaxChars : DWORD; // length parameter Const MAXCHARS = 255; // max length begin dwMaxChars := MAXCHARS; pcUse How to Find the column and row of the cursor in a TRichEdit? http://www.allinterview.com/showanswers/19446.html We have to use CaretPos property.By using this we can get X coordinate and Y coordinate position. Thanks Leela How to Get the local internet machine name and IP address? http://www.allinterview.com/showanswers/53996.html function GetIPFromHost (var HostName, IPaddr, WSAErr: string): Boolean; type Name = array[0..100] of Char; PName = ^Name; var HEnt: pHostEnt; HName: PName; WSAData: TWSAData; i: Integer; begin Result := False; What version of Delphi 5 does the Code Explorer come with? http://www.allinterview.com/showanswers/19394.html How to insert an InterBase BLOb in Delphi using LoadFromFile? 2 http://www.allinterview.com/showanswers/19406.html Why Delphi drawing functions draw one pixel short? http://www.allinterview.com/showanswers/19281.html How to Use an instance of TPrinter ? http://www.allinterview.com/showanswers/19240.html How to Extract RGB components of a color? http://www.allinterview.com/showanswers/19323.html what are the uses of Arrow and Function Keys ? http://www.allinterview.com/showanswers/19140.html When I try to execute sql query from delphi7 it throws the following http://www.allinterview.com/showanswers/35429.html Whenever open an connection database fisrt close it fist line of code is close connection. or your database table is open close it from database . How to Display the selected row of a DBGrid in a different color? http://www.allinterview.com/showanswers/19087.html How to draw directly on the Windows Desktop? http://www.allinterview.com/showanswers/19328.html Through some API functions like To draw a text Handle := GetDesktopWindow; Dc := GetWindowDC(Handle) ; ACanvas := TCanvas.Create; try ACanvas.Handle := DC; BeginPath(ACanvas.Handle) ; ACanvas.Font.Color := clRed How to Draw in scale without using Windows Mapping Modes? http://www.allinterview.com/showanswers/19321.html Where is the file dsgnintf.pas? http://www.allinterview.com/showanswers/19429.html Delphi6\source\ ToolsAPI folder