c언어
#include
using namespace std;
extern "C"{
__declspec(dllexport) void cc(){
cout<< "HAHA"<
}
c#소스
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace cshop
{
class Program
{
[DllImport("test3.dll")]
public static extern void cc();
static void Main(string[] args)
{
cc();
}
}
}

댓글 없음:
댓글 쓰기