HANDLE hFile = CreateFile(_T("C:\\1.txt"),
         GENERIC_WRITE, FILE_SHARE_READ,
         NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);   if (hFile == INVALID_HANDLE_VALUE)
      AfxMessageBox(_T("Couldn't create the file!"));
   else
   {
      // Attach a CFile object to the handle we have.
      CFile myFile(hFile);}这是MSDN的代码,偶编译出错,CFile myFile(hFile),就是这句。
cannot convert parameter 1 from 'void *' to 'int'#include <afx.h>加了也没有用 ,  从MSDN  COPY下来的, 偶都没有改变。
它为什么不能自动转换?先去睡觉咯  明天再来看看 GG们帮帮忙啊