Skip to content

Instantly share code, notes, and snippets.

@baobao
Created March 19, 2019 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/ed5b8f2c2cbcf0bbbee0fcc273bdb87c to your computer and use it in GitHub Desktop.
Save baobao/ed5b8f2c2cbcf0bbbee0fcc273bdb87c to your computer and use it in GitHub Desktop.
#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