salve a tutti mi stavo dilettando un pò sulle dll ma non ho trovato molto in giro per la rete!
Allora io uso dev c++ come ambiente di sviluppo faccio un nuovo proggetto e metto dll,ora lui mi crea 2 file uno dllmain.cpp
Codice PHP:
/* Replace "dll.h" with the name of your header */
#include "dll.h"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

DLLIMPORT void HelloWorld ()
{
    
MessageBox (0"Hello World from DLL!\n""Hi"MB_ICONINFORMATION);
}


BOOL APIENTRY DllMain (HINSTANCE hInst     /* Library instance handle. */ ,
                       
DWORD reason        /* Reason this function is being called. */ ,
                       
LPVOID reserved     /* Not used. */ )
{
    switch (
reason)
    {
      case 
DLL_PROCESS_ATTACH:
        break;

      case 
DLL_PROCESS_DETACH:
        break;

      case 
DLL_THREAD_ATTACH:
        break;

      case 
DLL_THREAD_DETACH:
        break;
    }

    
/* Returns TRUE on success, FALSE on failure */
    
return TRUE;

ed un altro dll.h

Codice PHP:
#ifndef _DLL_H_
#define _DLL_H_

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */


DLLIMPORT void HelloWorld (void);


#endif /* _DLL_H_ */ 
ora io mi stavo chiedendo dove devo scrivere le mie funzioni e che funzione usare per esportarle infine mi servirebbe sapere anche come poi usare le mie dll in altre applicazioni!