View Single Post
  #6   Spotlight this post!  
Unread 17-03-2004, 23:44
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: stdlib.h for Dashboard Program

Quote:
Originally Posted by Neal Turett
Assuming you're using Windows, you could use API calls as an alternate to fstream. Fstream is probably simpler, this is just in case you can't use fstream for some strange reason.

The relevant functions are CreateFile, SetFilePointerEx, WriteFile, and CloseFile. All of these are in kernel32.lib and defined in winbase.h. To access them, simply include windows.h.
I can use fstream, I had just redone my program to get rid of it cause it was acting funny, but by rewriting all of that code it fixed whatever problems I was having. Plus, I have about 9 or 10 hours till I have to use the program, so simpler is better :-).
__________________
AIM --> Woloi
Email --> ian@woloschin.com