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/a54e6a6dfb42473382166f1846d84e91 to your computer and use it in GitHub Desktop.
Save baobao/a54e6a6dfb42473382166f1846d84e91 to your computer and use it in GitHub Desktop.
[DllImport("TestDll.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void Test(string str);
static void Main()
{
// DLLのTestを呼ぶ
Test("hogehoge");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment