Hello,
Is there a function that gets system currency?.
Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Hello,
Is there a function that gets system currency?.
Thanks.
...
MsgInfo( "The local currency is: '" + GETSCURRENCY() + "'!" )
...
#pragma BEGINDUMP
#include "windows.h"
#include "hbapi.h"
HB_FUNC( GETSCURRENCY )
{
LCID lcid = GetThreadLocale();
LPSTR value;
GetLocaleInfo(lcid, LOCALE_SCURRENCY, ( LPSTR )&value, sizeof(value) / sizeof(TCHAR) );
hb_retc( ( LPSTR )&value );
}
#pragma ENDDUMPThanks.
It works perfect.