CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Location
    VA USA
    Posts
    7

    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

  2. #2
    Join Date
    Mar 2006
    Posts
    15

    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
    );

  3. #3
    Join Date
    Jun 2005
    Location
    Tirunelveli-Tamil Nadu-India
    Posts
    354

    Smile Re: a problem with BMP

    Quote 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

  4. #4
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Re: a problem with BMP

    Quote 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!!

  5. #5
    Join Date
    Oct 2005
    Posts
    526

    Re: a problem with BMP

    Quote 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
  •  





Click Here to Expand Forum to Full Width

Featured