how can I open a 200M bmp ?
I can not use new to get such a huge heap.
please help me! thanks
Printable View
how can I open a 200M bmp ?
I can not use new to get such a huge heap.
please help me! thanks
I think you could open the bmp with memorymap file
function:
HANDLE CreateFileMapping(
HANDLE hFile, // handle to file to map
LPSECURITY_ATTRIBUTES lpFileMappingAttributes,
// optional security attributes
DWORD flProtect, // protection for mapping object
DWORD dwMaximumSizeHigh, // high-order 32 bits of object size
DWORD dwMaximumSizeLow, // low-order 32 bits of object size
LPCTSTR lpName // name of file-mapping object
);
is it sure ? ur bmp image size is 200mb?Quote:
Originally Posted by pengsenl
Make sure your file read routine require a large value passed as the size of the buffer.Quote:
Originally Posted by pengsenl
only read the bmp data need to show in the client view,Quote:
Originally Posted by pengsenl
and client view as well derives from CView as it can be well controled .