nein du kannsz die dll benutzen das ist schon das richtige
jetzt müssen wir erst mal die dll in ein programm von dir ein binden.

Code:
     typedef short _stdcall (*inpfuncPtr)(short portaddr);
     typedef void _stdcall (*oupfuncPtr)(short portaddr, short datum);
das sind die funktions typen in der dll

Code:
     HINSTANCE hLib;
     inpfuncPtr inp32;
     oupfuncPtr oup32;

/* Load the library */
     hLib = LoadLibrary("inpout32.dll");

     if (hLib == NULL) {
          printf("LoadLibrary Failed.\n");
          return -1;
     }

     /* get the address of the function */

     inp32 = (inpfuncPtr) GetProcAddress(hLib, "Inp32");

     if (inp32 == NULL) {
          printf("GetProcAddress for Inp32 Failed.\n");
          return -1;
     }


     oup32 = (oupfuncPtr) GetProcAddress(hLib, "Out32");

     if (oup32 == NULL) {
          printf("GetProcAddress for Oup32 Failed.\n");
          return -1;
     }
laden der dll und zu weisen der funktions pointer

Code:
     i=0x378;
     x=0xFF;

     (oup32)(i,x);
wenn du diesen code aus führst sollten alle LED'S an deinen Test teil an gegen. wenn du mit LPT1 arbeites wo von ich jetzt aus gehe.

I ist die Adresse des Datenregisters des LPT1 ports und x der wert den du da rein schreibst. also müsse bei 0 alle LED's aus sein.

Sorry konnte nicht früher antworte habe gerade auch stress hilft die das weiter ?

Gruß