Progamming a graphical with C++

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

Moderators: Henry, Mods

Post Reply
Dexter
LCD Geek
Posts: 49
Joined: Wed Aug 15, 2001 6:00 pm
Location: Chicago
Contact:

Post by Dexter »

GODDAMN took me FOREVER to find that "New Topic" button in the top right side...was
going crazy :smile:
anyways, i see all these codes in the manual for my 12232 graphical LCD and i was just wondering how i send the bytes to the com port with C++
i know i need to use OpenFile() and write it but im not sure how. thanks

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

hehehehehehe... you should have seen it yesterday, it was even smaller :smile:

What Program are you using? Visual C++?

Dexter
LCD Geek
Posts: 49
Joined: Wed Aug 15, 2001 6:00 pm
Location: Chicago
Contact:

Post by Dexter »

On 2001-08-17 00:56, Henry wrote:
hehehehehehe... you should have seen it yesterday, it was even smaller :smile:

What Program are you using? Visual C++?
yes.

Aniso
-=Beloved by all=-
-=Beloved by all=-
Posts: 286
Joined: Tue Aug 14, 2001 6:00 pm
Location: ...I could tell you my velocity...

Post by Aniso »

File streaming to the Comm port is the easiest way to do this under Win32, except that it does not work under NT derivatives. I would declare that using file streaming is a dead method.

I am by no means a guru, so I don't truly understand what it is that is different about 3rd party libraries, but that is the way to go. NT is real picky about who gets to talk to the hardware, and these communcations "libraries" get around it somehow.

Under VB, and maybe VC++, there might be built it in functions - I don't know. Even if there is, you could still use one of my favorite libraries.

http://www.medasis.com/tools has the zComm library. This is for Borland C++ Builder (A vastly superior tool) :smile:

http://www.marshallsoft.com has the marshallsoft library for Borland or MS. We have used this one alot. If you have used almost any of our demo programs, this is the cause of the popup windows. Getting rid of that popup costs 50 bucks or something.

The difference between using a library like this and using file streaming is that you don't have to get into all the arcane coding. You just instantiate a class and call a function like:

MyCommPort->Send("Hello World");

I like that a lot better. More so since I never really learned how to do file streaming properly - and it works under Win2K

Minus pictures, I think I am now the holder of the "longest post" award :smile:
anis- or aniso- combining form [NL, fr. Gk, fr. anisos, fr. a- + isos equal]
: unequal <anisotropic>

BlownAway
LCD?
Posts: 6
Joined: Wed Oct 24, 2001 6:00 pm

Post by BlownAway »

You know... they send me to college... AND I FORGET HOW O DO EVERYTHING I LEARNED!

Seriously. My Senior Project was writing a Paint program that communicated with the robotic arm controller connected to the SERIAL PORT. It repoduced your drawing that you did on the screen.

I forgot it all! and I was responsible for the translation and communications modules!!!! ARRRGHHH I never thought I was gonna need that... so did I keep it? Noooooo... I am a complete idiot.

relix
Uber Slave
Uber Slave
Posts: 222
Joined: Wed Nov 14, 2001 4:00 pm
Location: Knokke, Belgium
Contact:

Post by relix »

yes you are, yes you are ...

I would recommend http://www.programmersheaven.com to get a unit file or include or something, just search a bit round on this site.

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Dexter, you alive? How is the graphic plug in coming along? I was at virtul-hideout and stumbled on your site again and saw some new pics... it's looking great! Let me know if you need a beta tester :grin:

http://www.smokinmhz.com/
Henry J.
President
Matrix Orbital

Dexter
LCD Geek
Posts: 49
Joined: Wed Aug 15, 2001 6:00 pm
Location: Chicago
Contact:

Post by Dexter »

On 2001-12-03 18:56, Henry wrote:
Dexter, you alive? How is the graphic plug in coming along? I was at virtul-hideout and stumbled on your site again and saw some new pics... it's looking great! Let me know if you need a beta tester :grin:

http://www.smokinmhz.com/
whoa....lol. people check out the site? :razz:

I'm uh....still writing it...I guess I'm a real slow poke about it...im just playing more with the hardware for the project again...it goes in cycles :wink:
hardware then software then nothing for weeks, then it starts all over :grin:

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

On 2002-01-10 22:50, Dexter wrote:
On 2001-12-03 18:56, Henry wrote:
Dexter, you alive? How is the graphic plug in coming along? I was at virtul-hideout and stumbled on your site again and saw some new pics... it's looking great! Let me know if you need a beta tester :grin:

http://www.smokinmhz.com/
whoa....lol. people check out the site? :razz:

I'm uh....still writing it...I guess I'm a real slow poke about it...im just playing more with the hardware for the project again...it goes in cycles :wink:
hardware then software then nothing for weeks, then it starts all over :grin:
LOL... yup, sounds about right... it's like you never know what to do next, or just get bored with it... nasty cycle I tell you...

Keep us informed though...
Henry J.
President
Matrix Orbital

Post Reply