Article ID: 191327
Article Last Modified on 5/12/2003
//test2.cpp
#include <windows.h>
BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_to_call, LPVOID
lpReserved)
{
return TRUE;
UNREFERENCED_PARAMETER(hInst);
UNREFERENCED_PARAMETER(ul_reason_to_call);
UNREFERENCED_PARAMETER(lpReserved);
};
double APIENTRY test(double p1, double p2)
{
return p1 * p2;
};
; test2.def : Declares the module parameters for the DLL.
LIBRARY "Test2"
DESCRIPTION 'Test2 Dynamic Link Library'
EXPORTS
test @4
DECLARE DOUBLE test IN test2.dll DOUBLE, DOUBLE
? test(1.5, 1.5)
? test(2.5, 2.5)
You will get return values of:
2.00
6.00
Additional query words: kbVFp500abug kbVFp300bbug kbVFp600fix kbInterOp kbfvp600fix
Keywords: kbbug kbfix kbcode KB191327