OutputDebugStringに書式指定版を作る

ヘッダで以下を定義

#ifdef OutputDebugString
#undef OutputDebugString
#endif
#ifdef UNICODE
#define OutputDebugString  OutputDebugStringFW
#define OutputDebugStringV OutputDebugStringFVW
#else
#define OutputDebugString  OutputDebugStringFA
#define OutputDebugStringV OutputDebugStringFVA
#endif // !UNICODE
void OutputDebugStringFA(const char *format, ...);
void OutputDebugStringFW(const wchar_t *format, ...);

どこかのcppコードに以下を実装

void OutputDebugStringFVA(const char *format, va_list args)
{
	int len = _vscprintf(format, args) + 1;
	char * buffer = new char[len];
	vsprintf_s(buffer, len, format, args);
	OutputDebugStringA(buffer);
	delete[] buffer;
}
void OutputDebugStringFVW(const wchar_t *format, va_list args)
{
	int len = _vscwprintf(format, args) + 1;
	wchar_t * buffer = new wchar_t[len];
	vswprintf_s(buffer, len, format, args);
	OutputDebugStringW(buffer);
	delete[] buffer;
}
void OutputDebugStringFA(const char *format, ...)
{
	va_list args;
	va_start(args, format);
	OutputDebugStringFVA(format, args);
	va_end(args);
}
void OutputDebugStringFW(const wchar_t *format, ...)
{
	va_list args;
	va_start(args, format);
	OutputDebugStringFVW(format, args);
	va_end(args);
}

wordpressで固定ページで使うテンプレートを作成する

/wp-content/themes/テーマのフォルダ
に名前は自由にphpファイルをつくって
その中身は先頭に

<?php
/*
Template Name: テンプレートの名前
*/
?>

を記述しておく。
あとは自由。

<head>

だけ特別なページを作りたい場合は、
page.phpをコピーして↑のようにテンプレートとして作成。
続いてheader.phpをコピーしてheader-hogehoge.phpといった名前に変更。
page.phpをコピーして作ったphpの中で

<?php get_header(); ?>

があるので

<?php get_header('hogehoge'); ?>

とすると
header-hogehoge.phpが読み込まれたテンプレートになる。