Results 1 to 18 of 18

Thread: Windows programming in Qt (serial communication)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Windows programming in Qt (serial communication)

    Hello!

    I want to write a Qt application that will use serial communication on WinXP hardware.
    Qt is cross-platform while serial communication programming is not.
    I have VERY little knowledge about Windows programming in general, while I have made som working stuff for Mac and WinXP using Qt, where you never see the platform specific calls.

    I have written a serial "driver" a long time ago using another cross-platform framework, but it does of course not compile in Qt, but I have the basic functionality. I was using Codewarrior and CPLAT, which are both more or less dead nowadays. Qt seems to be a worthy successor, I like it very much.

    Now, how do I write a Windows-specific class inside a Qt project?
    What headers should I include to have access to HANDLE and DCB structures, hComPort, etc? What Windows libraries do I need?

    Any help is appreciated.

    BN
    Last edited by bnilsson; 28th June 2008 at 17:32.
    MacOSX user dabbling with Linux and Windows.

Similar Threads

  1. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 17:32
  2. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  3. Experience using KDevelop with Cygwin under windows
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 11th September 2006, 16:50
  4. Programming in Windows
    By kroenecker in forum General Programming
    Replies: 9
    Last Post: 4th July 2006, 18:49
  5. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 17:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.