Skip to content

Instantly share code, notes, and snippets.

@baobao

baobao/TestDll.cpp

Created Mar 19, 2019
Embed
What would you like to do?
#include "stdafx.h"
#include <iostream>
// C#から呼ばれる関数の定義
DllExport void Test(const char* str);
void Test(const char* str)
{
if (str == NULL) {
std::cout << "str is null." << std::endl;
return;
}
std::cout << str << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment