Error 1 error C2121: '#': invalid character: may be the result of macro expansion e: \ dosbox_ykhwong \ src \ dos \ dos_network2.h 114 1 dosbox
Error 2 error C3861: 'L': Can not find identifier e: \ dosbox_ykhwong \ src \ dos \ dos_network2.h 114 1 dosbox
Any help would be greatly appreciated!Code:extern "C" int _nhandle; bool Network_CloseFile(Bit16u entry) { Bit32u handle=RealHandle(entry); int _Expr_val=!!((handle >= 0 && (unsigned)handle < (unsigned)_nhandle)); _ASSERT_EXPR( ( _Expr_val ), _CRT_WIDE(#(handle >= 0 && (unsigned)handle < (unsigned)_nhandle)) ); <<<<<<<<<<<< the pound sign generates this error if ( !( _Expr_val ) ) { _doserrno = 0L; errno = EBADF; dos.errorcode=(Bit16u)_doserrno; return false; } if(close(handle)==0) { NetworkHandleList[entry]=0; DOS_PSP psp(dos.psp()); psp.SetFileHandle(entry,0xff); return true; } else { dos.errorcode=(Bit16u)_doserrno; return false; } }//bool Network_CloseFile(Bit16u entry)
Thanks
Jack


Reply With Quote
Bookmarks