init
This commit is contained in:
26
dynamiclib/dynamiclib.cpp
Normal file
26
dynamiclib/dynamiclib.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user