Files
cppLearnings/dynamiclib/dynamiclib.cpp
Tommy Parnell 567ab26f02 init
2015-10-03 10:51:05 -04:00

26 lines
525 B
C++

// dynamiclib.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "dynamiclib.h"
// This is an example of an exported variable
DYNAMICLIB_API int ndynamiclib = 0;
// This is an example of an exported function.
DYNAMICLIB_API int fndynamiclib(void)
{
return 42;
}
// This is the constructor of a class that has been exported.
// see dynamiclib.h for the class definition
Cdynamiclib::Cdynamiclib()
{
return;
}
DYNAMICLIB_API int multiply(int a, int b)
{
return a*b;
}