Windows学习旅程(一)
昨天在调用
BOOL WriteFile(
API的时候,我想把不同类型的数据一下写入到Buffer里去,比如说我有个类如下:
HANDLE hFile, // handle to file to write to
LPCVOID lpBuffer, // pointer to data to write to file
DWORD nNumberOfBytesToWrite, // number of bytes to write
LPDWORD lpNumberOfBytesWritten, // pointer to number of bytes written
LPOVERLAPPED lpOverlapped // pointer to structure for overlapped I/O
);
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
哎,我想这个肯定能一下子把一个不同的类型写入到一个Buffer里去,然后再重这个Buffer里写入到File里面去,想不出其它办法,于是找部门经理求救,他给我说了一下,我也没听懂,郁闷啊,本来想再问,想一想算了吧,还是自己解决吧,不然要被他说我不动脑筋了,结果还是没有按照我的方式解决问题。。。
![](/CuteSoft_Client/CuteEditor/images/emsad.gif)
昨晚回家后,好好反思了一下,自重海兵走了以后,每天都给女朋友打电话,一打就是30分钟~2小时,电话费也打出了天文数字,好久没有看书了啊。。。
![](/CuteSoft_Client/CuteEditor/images/face21.gif)
![](/CuteSoft_Client/CuteEditor/images/face23.gif)
posted on 2007-11-16 09:30 john.huang 阅读(210) 评论(0) 编辑 收藏 举报