Created
February 17, 2017 09:10
-
-
Save dander/a02c8837e12e70ec24396da3a18b1168 to your computer and use it in GitHub Desktop.
LINQPad "hello libRed" script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\System.Runtime.InteropServices.dll</Reference> | |
<Namespace>System.Runtime.InteropServices</Namespace> | |
</Query> | |
void Main() | |
{ | |
redOpen(); | |
redDo("view [text {hello, libRed!}]"); | |
} | |
[DllImport(@"C:\red\libRed.dll", CallingConvention = CallingConvention.Cdecl)] | |
public static extern void redOpen(); | |
[DllImport(@"C:\red\libRed.dll", CallingConvention = CallingConvention.Cdecl)] | |
public static extern void redDo(string redcode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment