ViaThinkSoft Currency Converter - DLL specification

Table of Contents

These methods are exported by CurConv.dll:

DeleteAPIKey

Syntax

Delphi

function DeleteAPIKey(UserMode: BOOL; DontShowErrors: BOOL): HRESULT; stdcall;

C

HRESULT __stdcall DeleteAPIKey(BOOL UserMode, BOOL DontShowErrors);

Description

Deletes the API key from the registry.

Parameters

Returns

WriteAPIKey

Syntax

Delphi

function WriteAPIKey(key: LPCTSTR; UserMode: BOOL; DontShowErrors: BOOL): HRESULT; stdcall;
function WriteAPIKeyW(key: LPCWSTR; UserMode: BOOL; DontShowErrors: BOOL): HRESULT; stdcall;
function WriteAPIKeyA(key: LPCSTR; UserMode: BOOL; DontShowErrors: BOOL): HRESULT; stdcall;

C

HRESULT __stdcall WriteAPIKeyW(LPCWSTR key, BOOL UserMode, BOOL DontShowErrors);
HRESULT __stdcall WriteAPIKeyA(LPCSTR key, BOOL UserMode, BOOL DontShowErrors);

Description

Writes the API key into the registry. This is usually not necessary, since the Convert() method is able to query the key from the user using the GUI.

Parameters

Returns

ReadAPIKey

Syntax

Delphi

function ReadAPIKey(key: LPTSTR; DontShowErrors: BOOL): HRESULT; stdcall;
function ReadAPIKeyW(key: LPWSTR; DontShowErrors: BOOL): HRESULT; stdcall;
function ReadAPIKeyA(key: LPSTR; DontShowErrors: BOOL): HRESULT; stdcall;

C

HRESULT __stdcall ReadAPIKeyW(LPWSTR key, BOOL DontShowErrors);
HRESULT __stdcall ReadAPIKeyA(LPSTR key, BOOL DontShowErrors);

Description

Reads the API key from the registry.

Parameters

Returns

Convert

Syntax

Delphi

function Convert(Value: Double; CurFrom, CurTo: LPCTSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Double; stdcall;
function ConvertW(Value: Double; CurFrom, CurTo: LPCWSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Double; stdcall;
function ConvertA(Value: Double; CurFrom, CurTo: LPCSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Double; stdcall;

C

double __stdcall ConvertW(double Value, LPCWSTR CurFrom, LPCWSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate);
double __stdcall ConvertA(double Value, LPCSTR CurFrom, LPCSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate);

Description

Converts into a differnt currency.

Parameters

Returns

AcceptedCurrencies

Syntax

Delphi

function AcceptedCurrencies(WriteTo: LPTSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Integer; stdcall;
function AcceptedCurrenciesW(WriteTo: LPWSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Integer; stdcall;
function AcceptedCurrenciesA(WriteTo: LPSTR; MaxAge: integer; Flags: TVtsCurConvFlags; HistoricDate: TDate): Integer; stdcall;

C

int __stdcall AcceptedCurrenciesW(LPWSTR WriteTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate);
int __stdcall AcceptedCurrenciesA(LPSTR WriteTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate);

Description

Shows a list of available currencies.

Parameters

Returns

DownloadNow

Syntax

Delphi

function DownloadNow(Flags: TVtsCurConvFlags; HistoricDate: TDate): HRESULT; stdcall;

C

HRESULT __stdcall DownloadNow(CURCONV_FLAGS Flags, DATE HistoricDate);

Description

Forces the framework to download the currency table.

Parameters

Returns


Last change: 27 Aug 2017