/**
作者: 流水-
时间: 2005/08/01
**/
////////////
Win32DLL Proc Note
1. MyDll.cpp
// MyDLL.cpp 主要的CPP文件:
// ----------------------------------------------------------
#include "stdafx.h"
BOOL WINAPI DllMain(HANDLE handle,DWORD dwReason,LPVOID lpReserved)
{
return true;
}
bool __stdcall fun()
{
return true;
}
bool __stdcall fun2()
{
return false;
}
// ----------------------------------------------------------
2. MyDll.h 相应的CPP头文件,要为VC静态链接,这里要声明相应的接口函数:
// ----------------------------------------------------------
// MyDLL.h
#pragma once
#include "stdafx.h"
// ----------------------------------------------------------
3. MyDll.def 导出函数文件
// ----------------------------------------------------------
LIBRARY MyDll
EXPORTS
; 导出函数
fun @1
fun2 @2
// ----------------------------------------------------------
4. stdafx.h 必要的相应引用文件
// stdafx.h
#pragma once
#define WIN32_LEAN_AND_MEAN
// windows header files
#include <windows.h>
//-------------------------------------------------------