L
liu_sir
Unregistered / Unconfirmed
GUEST, unregistred user!
内容: <br>HANDLE s_hFileMap; <br> LPVOID lpView; <br>1。打开 <br> s_hFileMap = OpenFileMapping(FILE_MAP_READ | FILE_MAP_WRITE, <br> FALSE,"xmldkd"); <br> if(s_hFileMap != 0) <br> { <br> lpView = MapViewOfFile(s_hFileMap, <br> FILE_MAP_READ | FILE_MAP_WRITE,0,0,0); <br> if (lpView == NULL) <br> { <br> ShowMessage("Can not open file mapping."); <br> return; <br> } <br> } <br> else <br> { <br> ShowMessage("不能打开实时库"); <br><br> } <br><br>2。请问如何读取(用delphi) <br><br>a=((PFLOAT)lpView)[n];n字节数,如何转化??? <br>读取内存文件的n个字节起的float量(4字节)?<br><br>