How would I convert this to C++ code?? (I'm using visual C++)
Code:type header namefile as string * 16 filesize as long 'size of file fileoffset as long 'Byte where the file's data starts from end type dim head as header open "C:\file.xxx" for binary access read lock write as #1 get #1, 1, head dim filedata(head.filesize - 1) get #1,head.fileoffset,filedata open "C:\blah.bmp" for binary access write lock write as #2 put #2,1,filedata close #2 close #1




Reply With Quote