Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active March 19, 2019 14:05
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/87e28dce0934338ff1ec930824fbe7fd to your computer and use it in GitHub Desktop.
Save baobao/87e28dce0934338ff1ec930824fbe7fd to your computer and use it in GitHub Desktop.
#include "stdafx.h"
#include <iostream>
// C#から配列と要素数を渡す関数を定義
DllExport void TestIntArray(int* array, int length);
void TestIntArray(int* array, int length)
{
for (int i = 0; i < length; i++)
{
std::cout << array[i] << std::endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment