C++导出类的小Demo
首先是通用头文件DllClass.h
#pragma once
#include <windows.h>
__declspec(dllexport) class DllClass
{
public:
void show();
};
然后将具体功能放入dllmain.cpp中
// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "DllClass.h"
#include "stdio.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul