Hello!
I made a dll :

PHP Code:
#include "MYDLL.h"
__declspecdllexport int doubleInt(int iNumber)
{
    return (
iNumber 2);

and a .DEF
Code:
LIBRARY        MYDLL
   DESCRIPTION    "Simply double an integer"
   EXPORTS
            doubleInt  @1
but now that's what I just found in some thread here but that doesn't work and I know that I miss something but I really do not have a clue how to call my DLL in an other C++ project

Here is what I got :
PHP Code:
#include <iostream>

//Prototype
void LoadDll(void);

void main(void)
{
    
LoadDll();
}
//End main

void LoadDll(void)
{
    
HMODULE hDLL LoadLibrary("MYDLL");
    if (
hDLL)
        
MYFUNC function = (MYFUNC)GetProcAddress(hDLL"MyFunction");
    else
        
std::cout << "Error loading DLL";
}
//End LoadDll 

Any one can help me ?