Thread: Windows 7 Machine: Convert Simple "C" Program to Windows "Threaded" Program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2022
    Posts
    9

    Windows 7 Machine: Convert Simple "C" Program to Windows "Threaded" Program

    Had started this thread to create a simple "C" Program to emulate a (European) proprietary "graphics box" keyboard(s) that had either completely or partially failed (and nobody could fix them):

    Windows 7 Machine: Simple "C" Program to Read Keyboard Input and Write To Serial Port

    ... and it's working fine ... but it's a "Console Program". Is there a quick way to convert it to a Windows program so that I can read the Mouse input (instead of using the arrow keys)? Also found out the status of the SHIFT key apparently needs to be read via a Windows-type program because for many of the programmable keys on the LOGIC CONTROLS LK1800 keyboard I'm using, SHIFT-[KEY] produces the same keycode as just pressing [KEY] itself (example: SHIFT-[ARROWUP]) And even though the LK1800 claims you can program in your own keycodes ... it doesn't work! I ended up using either CTRL-[KEY] or ALT-[KEY] instead, but this deviates from the proprietary keyboard, which I'd rather not do (since another OPERATOR-ONLY/NO GRAPHICAL DESIGN emulator in the Plant implements SHIFT-[ARROWKEYS] the same way as the proprietary system did ... and we're used to it working that way).

    Can I just take the "C" code and cut/paste it into a Windows Template "program"? Is that the proper way to do it, or is that a kludge?
    Last edited by Colt Hero; 05-05-2022 at 12:47 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 03-20-2022, 12:20 PM
  2. Replies: 6
    Last Post: 04-20-2015, 12:29 PM
  3. Replies: 18
    Last Post: 05-26-2008, 11:23 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM

Tags for this Thread