Hello, I have this C++ code, I dunno how it works..
Anyway, I'd like to have it translated to Delphi.
If anyone can help me out, I'd be glad.
typedef void (*t_ChatPrint) ( char * );
t_ChatPrint ChatPrint = (t_ChatPrint)0x0054E410;
void ChatPrintf( const char *format, ... )
{
va_list ap;
char szBuffer[512] = "";
va_start( ap, format );
_vsnprintf_s( szBuffer, 512, 511, format, ap );
va_end( ap );
ChatPrint( szBuffer );
}
We use it like this:
ChatPrintf("Hello my %s.","friend");
Thanks in advance.