#include "stdio.h" #include "header.h" #include <string.h> extern "C" __declspec(dllexport) int __stdcall dllFunc(PFN_CALLBACK1 callback1) { // the write to console won't handle the unicode printf("you are inside the dll, こんにちは\n"); // these will work callback1(L"hello 한국\n"); callback1(L"and hi hi 中国\n"); return 0; }