Skip to content

Instantly share code, notes, and snippets.

View DDzia's full-sized avatar
:octocat:

Dziarkach Dzianis DDzia

:octocat:
  • Social Discovery Ventures
  • Belarus, Minsk
View GitHub Profile
static class PInvoke
{
private const string ModuleLocation = "Unmanaged/PInvokeInterop.dll";
[DllImport(ModuleLocation, SetLastError = true)]
public static extern void PrintToDo();
}
<PlatformTarget>x64</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
#pragma once
#define DLLEXPORT extern "C" __declspec(dllexport)