In C++Builder, a class methods such as TIdSMTP.QuickSend require an extra parameter.  What parameter should I pass?

Previous  Top  Next

C++Builder requires that you pass the TMetaClass as the first parameter even if the actual code ignores that parameter.  Thus, Delphi code such as:

 

TIdSMTP.QuickSend('Host','Subject','Recipient','From','Message');

 

in C++Builder is:

 

TIdSMTP::QuickSend(__classid(TIdSMTP), "Host", "Subject", "Recipient", "From", "Message");