-
March 29th, 2006, 09:27 PM
#1
a problem with BMP
how can I open a 200M bmp ?
I can not use new to get such a huge heap.
please help me! thanks
-
March 29th, 2006, 11:06 PM
#2
Re: a problem with BMP
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
);
-
March 29th, 2006, 11:35 PM
#3
Re: a problem with BMP
Originally Posted by pengsenl
how can I open a 200M bmp ?
is it sure ? ur bmp image size is 200mb?
If I Helped You, "Rate This Post"
Thanks
Guna
-
March 29th, 2006, 11:59 PM
#4
Re: a problem with BMP
Originally Posted by pengsenl
how can I open a 200M bmp ?
I can not use new to get such a huge heap.
please help me! thanks
Make sure your file read routine require a large value passed as the size of the buffer.
It takes seconds for rating…that actually compensates the minutes taken for giving answers
The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
Regards, Be generous->Rate people
Jayender!!
-
March 30th, 2006, 12:17 AM
#5
Re: a problem with BMP
Originally Posted by pengsenl
how can I open a 200M bmp ?
I can not use new to get such a huge heap.
please help me! thanks
only read the bmp data need to show in the client view,
and client view as well derives from CView as it can be well controled .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|