Database

Amazon RDS – PostgreSQL Features

PostgreSQL is a powerful, open source object-relational database system which has earned a strong reputation for reliability, feature robustness, and performance. AWS RDS runs various versions of PostgreSQL. It supports point-in-time restore and backups, creation […]

Database

Amazon RDS – MySQL Features

MySQL is a popular Relational DB which is available in the amazon RDS services with its community edition features. Almost every feature of MYSQL can be leveraged in the RDS platform with only some restrictions […]

Database

Amazon RDS – Multi-AZ Deployments

In a Multi-AZ deployment, Amazon RDS automatically provisions and maintains a synchronous standby replica in a different Availability Zone. The primary DB instance is synchronously replicated across Availability Zones to a standby replica to provide […]

Database

Amazon RDS – DB Snapshots

Amazon RDS creates automated backups of your DB instance during the backup window of your DB instance and stores them as volume snapshots. Automated Backup For Automated backup to work properly, followings are the criteria. […]

Delphi

Strings in C++

Strings are words that are made up of characters, hence they are known as sequence of characters. In C++ we have two ways to create and use strings: 1) By creating char arrays and treat […]

Delphi

C++ ‘this’ Pointer

The this pointer holds the address of current object, in simple words you can say that this pointer points to the current object of the class. Let’s take an example to understand this concept. C++ […]

Delphi

C++ Loop Types

There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by […]

Delphi

Send an email with attachments by shellexecute to outlook express

Shellexecute(Handle,’open’,’mailto:aaaa@bbb.com?subject&body=body text&CC=aaaa&bcc=dddd&attach=FileName’,nil,nil,SW_SHOW) only works with outlook, not for outlook express, but the method below can send attachment to outlook express uses ComObj; procedure SendMail(Subject, Body, RecvAddress : string; Attachs : array of string); var MM, […]

Delphi

Get & Set Audio Volume programmatically

Get & Set Audio Volume programmatically unit uMain; interface uses Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs, ExtCtrls,StdCtrls, mmsystem; //You must add this in the uses line type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); procedure […]

Delphi

How to set the screen resolution programmatically

// How to set the screen resolution. procedure SetResolution(XRes, YRes: DWord); var lpDevMode : TDeviceMode; begin EnumDisplaySettings(nil, 0, lpDevMode); lpDevMode.dmFields := DM_PELSWIDTH or DM_PELSHEIGHT; lpDevMode.dmPelsWidth := XRes; lpDevMode.dmPelsHeight := YRes; ChangeDisplaySettings(lpDevMode, 0); end;

Delphi

Remove Dead Tray Icons

// Remove Dead Tray Icons procedure RemoveDeadIcons(); var TrayWindow : HWnd; WindowRect : TRect; SmallIconWidth : Integer; SmallIconHeight : Integer; CursorPos : TPoint; Row : Integer; Col : Integer; begin // Get tray window handle […]

Delphi

Hide start menu

// Hide start menu procedure HideStartMenu(); begin MoveWindow(FindWindowEx(FindWindow(‘shelltray_wnd’, nil), 0, nil, ‘button’), 0, 100, 10, 10); end;

Delphi

Get Executable Full Name From Window Handle programmatically

(* ——————————————– Get Executable Full Name From Window Handle — Required unit: Tlhelp32 ——————————————– *) function GetExeNameFromWindowHandle(AParent : HWND) : String; var ProcessEntry32 : TProcessEntry32; ProcessId : DWord; SnapshotHandle : Integer; begin Result := ”; […]

Delphi

Check & Register File Association programmatically

Check & Register File Association programmatically unit file_association; interface uses SysUtils, Registry, WinTypes, ShellAPI; function RegisterAssociation(const aExeName, aFileExt, aFileDesc, aFileIcon: string): Boolean; function ShellFindExecutable(const FileName, DefaultDir: string): string; implementation //————————————————————————// function RegisterAssociation(const aExeName, aFileExt, aFileDesc, […]

Delphi

How to Empty Recycle Bin programmatically

How to Empty Recycle Bin programmatically unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, ShellApi,Controls, Forms, Dialogs,StdCtrls, ExtCtrls; type TForm1 = class(TForm) procedure EmptyRecycleBin(); end; var Form1: TForm1; function SHEmptyRecycleBin(Wnd:HWnd; LPCTSTR:PChar; DWORD:Word):Integer; stdcall; const […]