#include "stdafx.h" #include <stdio.h> void print(const char *message) { printf("%s\\n", message); }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace CSharp_CLib { class Class1 { [DllImport("C_API_APP.lib", EntryPoint = "print")] static extern void print(string message); public static void Main(string[] args) { print("Hello World C# => C++"); } } }
DLL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)