Top Delphi Interview Questions :: ALLInterview.com http://www.allinterview.com Top Delphi Interview Questions en-us 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 'Missing Data Provider or Data Packet' . what does this err http://www.allinterview.com/showanswers/53966.html When a Datasetprovider is assigned to a ClientDataset the developer should explicitly specify the name of the Datasetprovider as follows DatasetProvider.Name := 'my_Provider'; ClientDataSet.ProviderName := DatasetProvider.Name; I 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; 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 can i add 2 numbers using delphi console application and also wi http://www.allinterview.com/showanswers/74203.html program Project1; {$APPTYPE CONSOLE} uses SysUtils; var f1, f2: integer; s: string; begin { TODO -oUser -cConsole Main : Insert code here } try; f1:=0; f2:=0; write('Enter first integer: '); readl How to Use an instance of TPrinter ? http://www.allinterview.com/showanswers/19240.html var p:Tprinter; begin p:=Printers.Printer; p.begindoc p.textout(0,0,'Testing'); p.enddoc; 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 Why you want to join IBM only not others like, TCS Infosys, Satyam & http://www.allinterview.com/showanswers/59053.html i hav heard a lot about ur company u peaple have fame n i know workin with u peaple i get my carrier in high position i can grow myself n my experience Why Delphi drawing functions draw one pixel short? http://www.allinterview.com/showanswers/19281.html 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 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 Where is the file dsgnintf.pas? http://www.allinterview.com/showanswers/19429.html Delphi6\source\ ToolsAPI folder 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 Extract RGB components of a color? http://www.allinterview.com/showanswers/19323.html