//Boby Thomas - march 2006
// plat_ind.cpp : Definiert den Einstiegspunkt f�r die Konsolenanwendung.
using namespace std;
typedef int (*AddFnPtr)(int,int);
int main(int argc, char* argv)
//do not add extension. It is hndled by LoadSharedLibrary.
hDLL = LoadSharedLibrary("add");
if(hDLL == 0)
AddFn = (AddFnPtr)GetFunction(hDLL,"fnAdd");
int iTmp = AddFn(8,5);
cout<<"8 + 5 = "<<iTmp;
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)