Autor Beitrag
enton
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Di 27.11.07 00:26 
Hallo Leute

Ich hab ein kleines Problem.
Ich wollte ein paar LED's über den Parallel Port leuchten lassen, wie es in
www.codeproject.com/csharp/csppleds.asp
beschrieben ist. Hab eigentlich alles so gemacht, wie es dort beschrieben ist. Hab überprüft, dass mein LTP1 Anschluss an der Adresse 888 ist, und hab die inpout32.dll in meinen Debug Ordner gelegt. In der Beschreibung der .dll steht, dass der hwinterface driver automatisch installiert wird sobald die dll ausgeführt wird( so hab ich es jedenfalls verstanden). Daran sollte es also auch nicht liegen. Aber es tut sich einfach nichts. Die LED's bleiben aus. Die Verkabelung stimmt auch. Ich hab keine Ahnung was ich falsch mache.Ich hab es an 2 Rechnern ausprobiert. Es funktioniert an keinem. Auch das Beispiel, das es auf codeproject zum downloaden gibt, funktioniert nicht. Hab mein komplettes Projekt und die Fehlermeldung zum codeprojekt Programm angehängt. Hier ist mein Code:

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace ParallelPort2
{
    class Program
    {
        [DllImport("inpout32.dll", EntryPoint = "Out32")]
        public static extern void Output(int adress, int value);


        static void Main(string[] args)
        {

            while (true)
            {
                Output(888255);
               
            }

            
    
}
        
    }
}



Hat jemand ne Idee, an was es liegen könnte?

gruß enton

Moderiert von user profile iconChristian S.: C#-Tags hinzugefügt
Einloggen, um Attachments anzusehen!