Page 1 of 1
Windows Programming with C and Win32 API
Posted: Tue Oct 21, 2003 7:59 pm
by Johnny1
The following link is to download the ConsoleDisplayCommunication.zip file.
http://www.lcdforums.com/download/CodeS ... cation.zip
Inside of it are two files:
1. ConsoleDisplayCommunication.exe // Executable
2. ConsoleDisplayCommunication.c // Source code
This sample program shows how you may use the win32 API to write C programs that communicate with our displays. With this program you may read and write to our displays, as well as send commands to them. This program should work on Win9x and WinNT(2000/XP).
I tried to keep it very simple and document it as much as possible. You may use the code or parts of it if you want, but it's meant more of a guide than anything else.
Hope this helps, and good luck with your own customized display applications.
Crash
Posted: Wed Jan 14, 2004 6:47 pm
by nickc1998
Whenever I run the C sample and try to connect to COM1, it crashes.
Any ideas?
Posted: Thu Apr 15, 2004 9:20 am
by Sidereal
running the .exe on my W98 system...
i specify com3 - it opens the port, displays the help text, then promplty closes the port right away.
...before i can do anything....
yes, the LK202-24-USB is plugged in, and i can see it as COM3 under the device manager.
Posted: Thu Apr 15, 2004 11:07 am
by Sidereal
...more info about the above complaint:
it dies in the first line of communicateWithDisplay - in particular:
hWriteThread = CreateThread(NULL, 0, writeToDisplayThread, NULL, 0, NULL); // executes the writeToDisplayThread
NULL status is returned, program exits.
(which is different behavior from another program i'm trying to get to work which give me an INVALID_HANDLE when i try to touch COM3)
....in the computer industry 20 years, and STILL wrestling with COM Ports.....
Re: Windows Programming with C and Win32 API
Posted: Tue Apr 27, 2004 2:03 pm
by Sidereal
Hi,
Johnny wrote:The following link is to download the ConsoleDisplayCommunication.zip file.
http://www.lcdforums.com/download/CodeS ... cation.zip
Inside of it are two files:
1. ConsoleDisplayCommunication.exe // Executable
2. ConsoleDisplayCommunication.c // Source code
This sample program shows how you may use the win32 API to write C programs that communicate with our displays. With this program you may read and write to our displays, as well as send commands to them.
This program should work on Win9x and WinNT(2000/XP).
I tried to keep it very simple and document it as much as possible. You may use the code or parts of it if you want, but it's meant more of a guide than anything else.
Hope this helps, and good luck with your own customized display applications.
Johnny - could you double-check if this runs on Win98?
i ran your executable unchanged on my W98 machine, and it does not work.
it
does run fine on my XP system.
Thanks in advance.
Re: Windows Programming with C and Win32 API
Posted: Wed Aug 09, 2006 7:39 am
by sang@ibexpayroll.com
i cant seem to download the zip file, IE seems to be telling me the file does not exist
Johnny wrote:The following link is to download the ConsoleDisplayCommunication.zip file.
http://www.lcdforums.com/download/CodeS ... cation.zip
Inside of it are two files:
1. ConsoleDisplayCommunication.exe // Executable
2. ConsoleDisplayCommunication.c // Source code
This sample program shows how you may use the win32 API to write C programs that communicate with our displays. With this program you may read and write to our displays, as well as send commands to them. This program should work on Win9x and WinNT(2000/XP).
I tried to keep it very simple and document it as much as possible. You may use the code or parts of it if you want, but it's meant more of a guide than anything else.
Hope this helps, and good luck with your own customized display applications.
Posted: Sun Nov 05, 2006 8:47 pm
by MarkuzLS1
Does anybody have this? The link seems to be dead.
Posted: Thu Feb 08, 2007 11:24 pm
by yakpimp
I have a c++ class going that I think i probably should have posted in development instead of software, but here is the topic.
http://www.lcdforums.com/forums/viewtop ... php?t=3666