DIB & DDB

This is a discussion on DIB & DDB within the Windows Programming forums, part of the Platform Specific Boards category; Hi; If im making an application for my self on my own system and dont plan to share it with ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    20

    Question DIB & DDB

    Hi;

    If im making an application for my self on my own system and dont plan to share it with other computers wouldnt it be a better idea to use DDB than DIB because it seems DIB for a little advantage of "interchangability" makes you write a huge amount of code compare to DDB and at times my own computer doesnt find the bit header and my program exe cant execute outside the debuger environment eventhough i had compiled it fine in VIS++
    and ran it fine.

    please can u tell me the cons and pros of DDB&DIB and whats the fuss , because i keep mixing their concepts.

    when do we need to use a DDB?
    when do we need to use a DIB?

    Thank you!

  2. #2
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    By the way i forgot to ask when should we use;

    CreateBitmap & when should we use CreateCompatibleBitmap

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    CreateCompatibleBitmap() creates a bitmap which is compatible with the supplied device context. As such, selecting such a bitmap into the device context is faster.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    is the created bitmap a DIB then adrian?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DDB vs. DIB (Clarification needed)
    By Kurisu33 in forum Windows Programming
    Replies: 2
    Last Post: 08-27-2006, 07:22 PM
  2. [VC++/WinAPI] DDB to DIB
    By jagi in forum Windows Programming
    Replies: 19
    Last Post: 03-26-2005, 11:27 AM
  3. DIB masking
    By SAMSAM in forum Windows Programming
    Replies: 1
    Last Post: 02-03-2003, 09:22 AM
  4. DIB compression
    By SAMSAM in forum Windows Programming
    Replies: 2
    Last Post: 01-26-2003, 01:40 PM
  5. How can I do the following..
    By Dual-Catfish in forum C++ Programming
    Replies: 14
    Last Post: 05-01-2002, 03:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21