dynlink2.cpp

来自「是一本很经典的书」· C++ 代码 · 共 39 行

CPP
39 行
字号
///////////////////////////////////////////////////////////////////
//  Module   : DYNLINK2.CPP
//
//  Purpose  : Implementation of the DYNLINK2.DLL.
//
//  Comments : This DLL has one exported function that simply 
//             displays a dialog box.
//
//  Author   : Rob McGregor, rob_mcgregor@compuserve.com
//        
//  Date     : 06-02-96
///////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "resource.h"	// main symbols
#include "dynlink2.h"

///////////////////////////////////////////////////////////////////
// CDynLink2App::CDynLink2App() - constructor

CDynLink2App::CDynLink2App()
{
}

///////////////////////////////////////////////////////////////////
// Multiply2Floats()

extern "C" DllExport FLOAT Multiply2Floats(FLOAT f1, FLOAT f2)
{
   return f1 * f2;
}

///////////////////////////////////////////////////////////////////
// CDynLink2App object

CDynLink2App MyDll;

///////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?