Windows 7 CreateFile failing on Com ports greater than 9

Discussion in 'Programming and Scripting' started by CarzKaan, May 29, 2009.

  1. CarzKaan

    CarzKaan New Member

    Joined:
    May 29, 2009
    Messages:
    2
    Likes Received:
    0
    Hi ALl,

    Searching the forum didn't turn up anything relevant, so here goes.

    I've got an MFC C++ application that uses CreateFile() to open a bluetooth device mapped to a virtual com port, and it isn't working on Windows 7 for com ports greater than 9. In fact, specifying the com port as "\\.\\Comx", causes an access violation on a different thread than what's calling CreateFile().

    Anyway, has anyone else run into this, and also if there's a fix or workaround. FWIW, the app runs fine on W2k, XP & Vista.

    Thanks,

    --Carz
     
  2. reghakr

    reghakr Excellent Member

    Joined:
    Jan 26, 2009
    Messages:
    14,220
    Likes Received:
    180

Share This Page

Loading...