after i want to creat a new bimap with code
CBitmap *p_Bit = new CBitmap();
p_Bit->CreateBitmap( 640, 480 , 3, 24, NULL );
p_Bit->SetBitmapBits(Taille, m_pBuffer);
m_Static.SetBitmap((HBITMAP)*p_Bit);
m_Static.UpdateWindow();
BUT THE BITMAP ISN'T DISPLAYED.... WHY ???????
PLEASE HELP ME ....................
You need help from the experts in a platform specific newsgroup. The
STANDARD C++ language has no facilities for bitmaps or windows and does
not require implementations to support them. For example, our embedded
tape drive system doesn't have a screen and doesn't do Windows95; and
yet we can compile C++ on this platform.
Not all the world uses a Microsoft Windows platform.
Read on.
See http://members.xoom.com/jshiva/welcome.txt
A list of some Newsgroups :
Languages and Programming
-------------------------
comp.lang.c The C Programming Language
comp.lang.asm.x86 x86 assembly language programming
comp.programming Non-language specific programming
comp.graphics.algorithms Issues of computer graphics
Operating Systems
-----------------
comp.os.msdos.programmer DOS, BIOS, Memory Models,
interrupts,
screen handling, hardware
comp.os.ms-windows.programmer.win32 MS/Windows: Mice, DLLs, hardware
comp.os.os2.programmer.misc OS/2 Programming
comp.sys.mac.programmer.misc Macintosh Programming
comp.unix.programmer General Unix: processes, pipes,
POSIX,
curses, sockets
comp.unix.[vendor]Various Unix vendors
Microsoft VC++
-------------
microsoft.public.vc.language VC++ issues
microsoft.public.vc.mfc MFC Issues
Borland C++ Builder
-------------------
borland.public.cppbuilder.language Borland C++ Builder
borland.public.cpp.language
Other useful newsgroups
-------------------------------------------------------
news:sci.math.num-analysis Numerical Analysis
news:comp.object Object-Oriented (OO) discussion
news:comp.arch.embedded Embedded systems
news:comp.software-eng Software Engineering (Development
Process)
FAQs:
-----
http://www.cerfnet.com/~mpcline/c++-faq-lite/
http://www.eskimo.com/~scs/C-faq/top.html
Useful websites:
----------------
http://www.wotsit.org File formats include JPEG
and TIFF
http://www.sgi.com/Technology/STL/index.html STL library
http://www.iro.umontreal.ca/~ratib/code/ Code warehouse
http://www.codeguru.com/ MS Windows help
Books:
------
"The C++ Programming Language", Bjarne Stroustrup
"Algorithms + Data Structures = Programs", Wirth
"The Art Of Computer Programming", Knuth
"Design Patterns", Gamma, Helm, Johnson, Vlissides
"Object-Oriented Modeling And Design", Rumbaugh, Blaha, Premerlani, Eddy
& Lorensen
"Object-oriented Software Construction", Bertand Meyer
"Effective C++", Scott Meyers
"More Effective C++", Scott Meyers
"Programming Windows95", Petzold
Compilers:
----------
http://sourceware.cygnus.com Free: Cygnus port of GNU
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/gcc-2.95 Free:
Mingw compiler
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/ports --
makefile
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
> TC wrote:
> >
> > I get a buffer with GetBimapBits() fonction fron a Cbitmap 640*480*3
> >
> > after i want to creat a new bimap with code
> > CBitmap *p_Bit = new CBitmap();
> > p_Bit->CreateBitmap( 640, 480 , 3, 24, NULL );
> > p_Bit->SetBitmapBits(Taille, m_pBuffer);
> > m_Static.SetBitmap((HBITMAP)*p_Bit);
> > m_Static.UpdateWindow();
> >
> > BUT THE BITMAP ISN'T DISPLAYED.... WHY ???????
> >
> > PLEASE HELP ME ....................
>
> CreateBitmap creates a device dependant bitmap. This means you have 2
> choices (if you want the bitmap to display).
> 1) stick with monochrome (bad, but replace 3 and 24 with 1 and 1).
> 2) Select the same settings as your current display when calling Create
> bitmap - I'm not sure about planes as I've only messed with 1 plane, but
> changing the number of bits to the same as your current display should
> do the trick. i.e. replace 24 with 16 if you are using a 16-bit display.
> 3) Investigate the mind-numbing use of CreateDIBitmap() if 1) or 2) is
> unacceptable!
> Good luck!
Please trim newsgroups next time. This is not related to C++.