It is currently Sat May 18, 2013 6:02 pm

All times are UTC - 7 hours [ DST ]




 Page 1 of 1 [ 8 posts ] 
Author Message
 Post subject: Windows Programming with C and Win32 API
PostPosted: Tue Oct 21, 2003 7:59 pm 
Matrix Orbital
Matrix Orbital

Joined: Tue Dec 10, 2002 2:23 pm
Posts: 23
The following link is to download the ConsoleDisplayCommunication.zip file.

http://www.lcdforums.com/download/CodeSamples/ConsoleDisplayCommunication.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
Offline
 Profile  
 
 Post subject: Crash
PostPosted: Wed Jan 14, 2004 7:47 pm 
LCD?

Joined: Wed Jan 14, 2004 7:38 pm
Posts: 2
Whenever I run the C sample and try to connect to COM1, it crashes.

Any ideas?


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Apr 15, 2004 9:20 am 
LCD?

Joined: Tue Apr 13, 2004 12:44 pm
Posts: 6
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.


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Apr 15, 2004 11:07 am 
LCD?

Joined: Tue Apr 13, 2004 12:44 pm
Posts: 6
...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.....


Offline
 Profile  
 
 Post subject: Re: Windows Programming with C and Win32 API
PostPosted: Tue Apr 27, 2004 2:03 pm 
LCD?

Joined: Tue Apr 13, 2004 12:44 pm
Posts: 6
Hi,

Johnny wrote:
The following link is to download the ConsoleDisplayCommunication.zip file.

http://www.lcdforums.com/download/CodeSamples/ConsoleDisplayCommunication.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.


Offline
 Profile  
 
 Post subject: Re: Windows Programming with C and Win32 API
PostPosted: Wed Aug 09, 2006 7:39 am 
LCD?

Joined: Tue Aug 08, 2006 3:09 pm
Posts: 4
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/CodeSamples/ConsoleDisplayCommunication.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.


Offline
 Profile  
 
 Post subject:
PostPosted: Sun Nov 05, 2006 9:47 pm 
LCD?

Joined: Sun Nov 05, 2006 9:43 pm
Posts: 8
Location: Huntsville, AL
Does anybody have this? The link seems to be dead.


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 12:24 am 
LCD!

Joined: Thu Feb 08, 2007 4:47 pm
Posts: 15
Location: Washington
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


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 8 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron