LPT1 and access to it

K

KS

What is wrong with the login procedure in the community forums in DOT.net C#
??????

I have tried the trick with deleting coockis 3 or 4 times but STILL I have
problems with the login procedure !

Every time I will check my quistion status I'm told that I'm logged out
properly - when I click on "Return home" to login again I se a button to
"Sign out" !!!!!!!!!! and no login button !!!!!!!!!!!!!!

What is wrong with that crab product ?????

Best regards
KSor, Denmark
 
K

KS

My original problem is that I can't get access to LPT1 - every time I try I
get an exception.

The LPT1 is enabled in bios and I can see it in device management and I have
installed the DLL that enables IO.

I'm using Vista Home Premium - is something restricted here or what can be
wrong ?

Best regards
KSor, Denmark
 
K

KS

Peter Duniho said:
What exception? What is your C# code?
I'm studying this project:

http://www.thaiio.com/prog-cgi/CshapeParallelPort.htm

When I try to run the sample code you referes to I do get an exeption:

System.Runtime.InteropServices.SEHException was unhandled
Message="En ekstern komponent har udløst en undtagelse."
Source="WindowsApplication3"
ErrorCode=-2147467259
StackTrace:
ved PortAccess.Output(Int32 adress, Int32 value)
ved Led.Form1.Reset_LEDs() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 416
ved Led.Form1..ctor() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 67
ved Led.Form1.Main() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 411
ved System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()

Why ?

Best regards
KSor, Denmark
 
W

Willy Denoyette [MVP]

KS [email protected]> said:
Peter Duniho said:
What exception? What is your C# code?
I'm studying this project:

http://www.thaiio.com/prog-cgi/CshapeParallelPort.htm

When I try to run the sample code you referes to I do get an exeption:

System.Runtime.InteropServices.SEHException was unhandled
Message="En ekstern komponent har udløst en undtagelse."
Source="WindowsApplication3"
ErrorCode=-2147467259
StackTrace:
ved PortAccess.Output(Int32 adress, Int32 value)
ved Led.Form1.Reset_LEDs() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 416
ved Led.Form1..ctor() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 67
ved Led.Form1.Main() i C:\Users\ksor\Documents\Visual Studio
2005\Projects\ParallelPortInterfacing\Form1.cs:linje 411
ved System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
ved
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()

Why ?

The answer is in the "project" document (near the bottom) you are referring
to:
<snip
Every thing is ok. But as you know, this program will run only in win9x. If
your program is needed to run in windows xp and higher versions, you need to
write a kernel mode device driver.
Talking about crap, well .... this is crap...

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top