aboutsummaryrefslogtreecommitdiff
path: root/NvBlast/samples/SampleBase/utils/Utils.cpp
blob: a271137dc8ae8b0a7eece6a2a1b6d08ba4778b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "Utils.h"

#include <string>
#include <cstdarg>

HRESULT messagebox_printf(const char* caption, UINT mb_type, const char* format, ...)
{
	va_list args;
	va_start(args, format);
	char formatted_text[512];
	_vsnprintf(formatted_text, 512, format, args);
	return MessageBoxA(nullptr, formatted_text, caption, mb_type);
}