473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

char * to HBITMAP

Hello!

what i use:
wince .net 4.20
evC4
MFC / WINAPI

what i have:
a char* Buffer with Imagedata. I can define how this image data looks
like as long as it is 24bits. (RGBRGBRGB, BGRBGRBGR, RRRRGGGGBBBB,
whatever, also can make it word aligned or wharever)

what i need:
a HBITMAP which actually USES my buffer and not create a new one and
copy the image from my buffer to these. i dont have memory for creating
a copy of the buffer on anytime.

help is needed! any constructive comment is useful!

thank you!

Marcel
Jul 27 '06 #1
3 5576
adsci wrote:
what i use:
wince .net 4.20
evC4
MFC / WINAPI

what i have:
a char* Buffer with Imagedata. I can define how this image data looks
like as long as it is 24bits. (RGBRGBRGB, BGRBGRBGR, RRRRGGGGBBBB,
whatever, also can make it word aligned or wharever)

what i need:
a HBITMAP which actually USES my buffer and not create a new one and
copy the image from my buffer to these. i dont have memory for
creating a copy of the buffer on anytime.

help is needed! any constructive comment is useful!
Here is one for you: please choose a different newsgroup for this inquiry.
C++ *language* has no definition of "HBITMAP". That's a *MS Windows* thing
so you're off-topic here. I suggest comp.os.ms-windows.programmer.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 27 '06 #2


Victor Bazarov schrieb:
adsci wrote:
>what i use:
wince .net 4.20
evC4
MFC / WINAPI

what i have:
a char* Buffer with Imagedata. I can define how this image data looks
like as long as it is 24bits. (RGBRGBRGB, BGRBGRBGR, RRRRGGGGBBBB,
whatever, also can make it word aligned or wharever)

what i need:
a HBITMAP which actually USES my buffer and not create a new one and
copy the image from my buffer to these. i dont have memory for
creating a copy of the buffer on anytime.

help is needed! any constructive comment is useful!

Here is one for you: please choose a different newsgroup for this inquiry.
C++ *language* has no definition of "HBITMAP". That's a *MS Windows* thing
so you're off-topic here. I suggest comp.os.ms-windows.programmer.

V
thanks. ive searched for a better newsgroup, but i only found newsgroup
which had nothing but spam in it. but you're right, the newsgroup you
named is better, thanks.
Jul 27 '06 #3
adsci wrote:
Victor Bazarov schrieb:
>>[..] I suggest
comp.os.ms-windows.programmer. V

thanks. ive searched for a better newsgroup, but i only found
newsgroup which had nothing but spam in it. but you're right, the
newsgroup you named is better, thanks.
Also check out 'microsoft.public.*' hierarchy. It's probably newer
and more up-to-date with information than 'comp.os.ms-windows.*'.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AD | last post by:
Hey, I have a problem with getting a bitmap (HBITMAP) from Device Context using Graphics object. Let's say I draw something : CDC ndc; HBITMAP hb; ndc.CreateCompatibleDC(dc);
9
by: Christopher Benson-Manica | last post by:
I need a smart char * class, that acts like a char * in all cases, but lets you do some std::string-type stuff with it. (Please don't say to use std::string - it's not an option...). This is my...
5
by: Alex Vinokur | last post by:
"Richard Bos" <rlb@hoekstra-uitgeverij.nl> wrote in message news:4180f756.197032434@news.individual.net... to news:comp.lang.c > ben19777@hotmail.com (Ben) wrote: > > 2) Structure casted into an...
5
by: Sona | last post by:
I understand the problem I'm having but am not sure how to fix it. My code passes two char* to a function which reads in some strings from a file and copies the contents into the two char*s. Now...
2
by: Peter Nilsson | last post by:
In a post regarding toupper(), Richard Heathfield once asked me to think about what the conversion of a char to unsigned char would mean, and whether it was sensible to actually do so. And pete has...
5
by: jab3 | last post by:
(again :)) Hello everyone. I'll ask this even at risk of being accused of not researching adequately. My question (before longer reasoning) is: How does declaring (or defining, whatever) a...
2
by: Rasheed | last post by:
Hi, i have a char pointer buffer which will hold the bitmap buffer, So i need to convert char *buffer as a bitmap. becuase when i draw on the Dialog using char *buffer. Nothing will be dispalyed....
4
by: Paul Brettschneider | last post by:
Hello all, consider the following code: typedef char T; class test { T *data; public: void f(T, T, T); void f2(T, T, T);
29
by: Kenzogio | last post by:
Hi, I have a struct "allmsg" and him member : unsigned char card_number; //16 allmsg.card_number
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.