Delphi Javascript HTML chkdsk C++ Print ShellExecute GetPort SMTP SW_HIDE SendMail SW_SHOW CGI C# CGI Sample C# CGI Example C# CGI QUERY_STRING TOSVERSIONINFO getenv Print Dialog ShowWindow CreateProcess BrowseDialog TPrintDialog ShellAPI Gradient Filled Form GetSystemDefaultLangID available memory size Hide Taskbar How To Install Device Driver? available memory InstallHinfSection InstallHinfSection DefaultInstall 132 InstallINF Animated Application Icon MFC CGI Example Open URL OS OS Version Information Paint Form PC 켜져 있는 시간 알아내는 방법 Point Comma Administrator Privileges Comma DateTimeToSystemTime Decimal Separator Comma Separator Desktop Wallpaper Device Driver Installation Method DISP_CHANGE_FAILED DISP_CHANGE_NOTUPDATED DISP_CHANGE_SUCCESSFUL GetWindowsVersion ChangeDisplaySettings File Type 켜져있는시간 Caption Bar free memory size free memory space available memory space

SHELLEXECUTE.ZIP

Run command with Administrator permission in Delphi on Microsoft Windows   (created at Mar 09, 2024)   51  

In Delphi, you can execute commands with administrator privileges by using the ShellExecute function with the 'runas' verb. However, if you want to execute a specific command with administrator privileges, you can use the CreateProcess function from the Wi...

Run PowerShell Command as Administrator in Delphi   (created at Mar 09, 2024)   24  

To capture the output of the PowerShell command and store it in a string variable, you can modify the RunPowerShellCommandAsAdmin procedure to redirect the output of the PowerShell process and read it into a string. In this modified code:We create a T...

Delphi Program can command level execution program with hidden mode   (updated at Jan 15, 2024)   94  

Below is the example of running command with hidden mode. Actually there lots of command type in Windows like SW_NORMAL, SW_HIDE, ...What I am going to implement is running windows command with hidden mode.Below is the example of windows command execution ...

How to print external document ?   (created at Sep 08, 2009)   43  

Without complex programming, you can print document by ShellExecute function.use ShellAPI;...ShellExecute(Handle, 'print', PChar('c: est est.doc'), nil, nil, SW_SHOW);

How to launch application ?   (created at Sep 08, 2009)   44  

You can launch application on windows by ShellExecute function. Following is the simple example to launch application.use ShellAPI;...ShellExecute(Handle, 'open', PChar('c: estapp.exe'), nil, nil, SW_SHOW);In case of running DOS command application such as...

How to install an INF file using Delphi ?   (created at Sep 19, 2007)   36  

If you need to install an "inf" file using Delphi, you could use the next code: { Usage:   InstallINF('C:XYZ.inf', 0) ; } uses   ShellAPI; function InstallINF(const PathName: string; hParent: HWND): Boolean; var   instance: HINST; begin &nbs...

How to run shell command by MFC ?   (created at Sep 09, 2007)   49  

Followings are the useful example can run shell command./*    Programmed 1998 by Kurapa Chunun Kang (kurapa@kurapa.com)    By below function, you can run shell command easily.*/#include void KShellExecute(HWND handle, LPCTST...

How To Open Url In Default Webbrowser   (created at Aug 25, 2007)   32  

Use this function to open your browser with a given URL.uses    shellapi;  ....  procedure TForm1.Label1Click(Sender:TObject);  begin    shellexecute(handle,'open','http://www.swissdelphicenter.ch', nil,nil,sw_show); ...

Simple CGI Programming in C   (created at Aug 27, 2007)   54  

Here's the simplest C based CGI example. #include #include int main(void){    char *data;    printf("Content-Type:text/html;xdxa"); ");&n...

C++ CGI Example working on Apache   (created at Aug 27, 2007)   49  

In this short howto I will explain how to setup your apache webserver to run any compiled application as an CGI script and show a little example program to explain the main concepts. So why does someone might have the idea to execute an application? There ...

Printing A Page   (created at Aug 26, 2007)   50  

how to print the current page

Get A Print Dialog Box By Clicking A Button   (created at Aug 26, 2007)   34  

In some applications,some times we need a print buttonHere is a sample tip code to get print properties.
    In some applications,some tim...

How Do I Remove The Application Icon From The Taskbar?   (created at Aug 25, 2007)   32  

To remove the icon from the taskbar, you need to call a Windows API call:BOOL ShowWindow(HWND hwnd,int nCmdShow);Delphi makes it very easy to use this command. All you need to do is supply the Application.handle and SW_HIDE to remove the icon from the task...

How To Show The Print Dialog And Print Text Files   (created at Aug 25, 2007)   50  

This code show an example of how to print a text of a RichEdit component.unit Unit1; interface uses   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,   StdCtrls, ComCtrls; type   TForm1 = class(TForm)     ...

How To Make An Animated Application Icon   (created at Aug 25, 2007)   52  

Show how to create an animated icon in your programvar  icon1:Boolean; ... procedure TForm1.Timer1Timer(Sender: TObject); begin   if icon1=false then   begin     Application.icon:=Image1.Picture.Icon;      icon1:=tru...

How To Pass The Focus To The Next/prior Control   (created at Aug 25, 2007)   54  

Shows how to activate the next or prior control in a formnext control: SendMessage(Form1.Handle, WM_NEXTDLGCTL, 0, 0); prior control: SendMessage(Handle, WM_NEXTDLGCTL, 1, 0);

How To Make Rounded Windows   (created at Aug 25, 2007)   34  

Create a different form in your application...procedure TForm1.FormCreate(Sender:TObject);  var    region: HRgn;  begin    region:=CreateEllipticRgn(1,1,200,200);    SetWindowRgn(handle, region, true);  end;

How To Get Windows Uptime   (created at Aug 25, 2007)   37  

Find how long Windows has been working...function UpTime: string; const ticksperday : integer = 1000 * 60 * 60 * 24; ticksperhour : integer = 1000 * 60 * 60; ticksperminute : integer = 1000 * 60; tickspersecond : integer = 1000; var  t : longword; &nb...

How To Find Out Total And Available Memory   (created at Aug 25, 2007)   33  

Get the total and available memory in your system. (Total free memory space in your system)procedure TForm1.Button1Click(Sender: TObject); var   memory:TMemoryStatus; begin   memory.dwLength:=sizeof(memory);   GlobalMemoryStatus(memory); &nb...

How To Change The System Time   (created at Aug 25, 2007)   33  

This code shows how to set the system time to another value.procedure TForm1.Button1Click(Sender: TObject); var    systemtime : TSystemTime;    NewTime:string; begin    NewTime:='13:58:00';    DateTimeToSystemTime( D...

How To Get The Windows OS Version   (created at Aug 25, 2007)   47  

 Identify the Windows version of your systemfunction GetWindowsVersion : string;  var    OsVinfo   : TOSVERSIONINFO;    HelpStr   : array[0..50] of char;  begin    ZeroMemory(@OsVinfo,sizeOf(OsVinfo));...

How To Change The Desktop Wallpaper   (created at Aug 25, 2007)   35  

Change the wallpaper of your system by codeuses    Registry, WinProcs;  procedure SetWallpaper(               sWallpaperBMPPath : String;               bTile : boolean );&...

How To Get The Windows Language   (created at Aug 25, 2007)   32  

Obtains the language that Windows is using.function Language:string;  var    sLangID:LangID;    sLanguage: array [0..100] of char;  begin    sLangID:=GetSystemDefaultLangID;    VerLanguageName(sLangID,sLang...

How To Make A Gradient Filled Form   (created at Aug 25, 2007)   29  

Show how to paint a form in a different way...procedure TForm1.FormPaint(Sender: TObject); var   Row, Ht: Word;   IX: Integer; begin   iX :=200 ;   Ht:=(ClientHeight + 512) div 256;   for Row := 0 to 512 do   begin   &nbs...

How can I hide the caption bar on a form?   (created at Aug 25, 2007)   31  

To hide the caption bar you need to override on of the default form methods CreateParams (this also exists for other objects).The CreateParams method initializes a window-creation parameter record passed in the Params parameter (ref:Delphi Help).Go to the ...

How To Send An E-mail By Code   (created at Aug 25, 2007)   29  

Use this function to send an e-mail through your program. You must have the component TNMSMTP from FastNet tools. This component is included in Delphi 4-5 Professional and Enterpriseprocedure TForm1.Button1Click(Sender: TObject); begin   NMSMTP1.Host ...

How To Check If A Soundcard Is Installed   (created at Aug 25, 2007)   42  

Use this code to verify if a soundcard is installed in your systemuses mmsystem;  ...  function Soundkarte:Boolean;  begin    Result := WaveOutGetNumDevs >0;  end;

How To Change Screen Resolution   (created at Aug 25, 2007)   57  

Change the resolution of your screen.Actually I've ever used this function for TV-based software development, because of TV-resolution.{ The function NewRes can have the following result: DISP_CHANGE_SUCCESSFUL The settings change was successful. DISP_CHAN...

How To Force The Correct Decimal Separator   (created at Aug 25, 2007)   30  

Some English speaking countries use the "point" as decimal separator, while the rest of the world is using the "comma". How can you make sure that the user will press the correct key when entering a number with a decimal fraction? With the code in this exa...

How To Register Own File Types   (created at Aug 25, 2007)   56  

Use the registry to register your own filetypeuses registry; procedure TForm1.RegisterFileType(prefix:String; exepfad:String); var   reg:TRegistry; begin   reg:=TRegistry.Create;   reg.RootKey:=HKEY_CLASSES_ROOT;  


Page: 1  2