Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

com3: vs \\.\com3:

Status
Not open for further replies.

HyperEngineer

Programmer
May 8, 2002
190
US
If I use "com3:" for the filename in CreateFile() I get a legitimate handle. If I use "\\.\com3" for the filename in CreateFile() I get an invalid handle value. I'm using VC2008 Standard edition. I thought I could use either one of these filenames.

HyperEngineer
If it ain't broke, it probably needs improvement.
 
Try to get error code after failed attempt to open COM3 via UNC name. May be the reason is in usufficient rights to access network shares (UNC is a name of network objects).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top