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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with CreateFile function

Status
Not open for further replies.

fogelda

Programmer
Jun 20, 2001
13
0
0
IL
I'm using CreateFile function for opening files (in matter of fact devices, but I tried to ope a fle and I had the same problem).
When I devug the application, CreateFile function succeeds, but when I compile it and run as an exe file, it doesn't work (I'm getting handle=-1).
Anyone has an idea how to cope with this?

Thank you in advance
Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top