Wednesday, May 30, 2007

C++: convert managed clr System::String^ to std::string

#include vcclr.h

System::String^ line = "a managed string";
pin_ptr wch = PtrToStringChars( line );
int len = (( line->Length+1) * 2);
char *ch = new char[ len ];
wcstombs( ch, wch, len );
string lineStr = ch;
delete ch;

Comparison of UK bank fees for receiving international payments

HSBC Receiving Euros from the EEA: no fee Receiving Less than £100 from outside the EEA: £5 Receiving More than £100 in another currency, ...