Windows Programming with C and Win32 API

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
Johnny1
Matrix Orbital
Matrix Orbital
Posts: 23
Joined: Tue Dec 10, 2002 1:23 pm
Contact:

Windows Programming with C and Win32 API

Post 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.
Johnny Patino
Software Developer
Matrix Orbital

nickc1998
LCD?
Posts: 2
Joined: Wed Jan 14, 2004 6:38 pm

Crash

Post by nickc1998 »

Whenever I run the C sample and try to connect to COM1, it crashes.

Any ideas?

Sidereal
LCD?
Posts: 6
Joined: Tue Apr 13, 2004 12:44 pm

Post 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.

Sidereal
LCD?
Posts: 6
Joined: Tue Apr 13, 2004 12:44 pm

Post 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.....

Sidereal
LCD?
Posts: 6
Joined: Tue Apr 13, 2004 12:44 pm

Re: Windows Programming with C and Win32 API

Post 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.

sang@ibexpayroll.com
LCD?
Posts: 4
Joined: Tue Aug 08, 2006 3:09 pm

Re: Windows Programming with C and Win32 API

Post 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.

MarkuzLS1
LCD?
Posts: 8
Joined: Sun Nov 05, 2006 8:43 pm
Location: Huntsville, AL

Post by MarkuzLS1 »

Does anybody have this? The link seems to be dead.

yakpimp
LCD!
Posts: 15
Joined: Thu Feb 08, 2007 3:47 pm
Location: Washington
Contact:

Post 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

Post Reply