Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 3:39
Iain Clarke, Warrior Programmer13-May-08 3:39 
GeneralRe: Resource ID not found even though exists [modified] Pin
kildareflare13-May-08 4:06
kildareflare13-May-08 4:06 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 4:20
Iain Clarke, Warrior Programmer13-May-08 4:20 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 4:47
kildareflare13-May-08 4:47 
GeneralRe: Resource ID not found even though exists Pin
Iain Clarke, Warrior Programmer13-May-08 5:06
Iain Clarke, Warrior Programmer13-May-08 5:06 
GeneralRe: Resource ID not found even though exists Pin
kildareflare13-May-08 5:12
kildareflare13-May-08 5:12 
GeneralRe: Resource ID not found even though exists -RESOLVED Pin
kildareflare15-May-08 4:58
kildareflare15-May-08 4:58 
Questioncreate bitmap out of bytearray and display it on dialog ??? Pin
cmos12-May-08 23:45
cmos12-May-08 23:45 
Hello,
i have a problem with creating bitmaps out of a bytearray.
At first, I tell you what i'm actually doing.
I have a Camera class and an Imageprocessing class. The imageprocessingclass
is registered as a observer at the camera class. I connect with the Vfw cap drivers
to my webcam. In my Camera class, there is a static method that contains
the LPVIDEOHDR. In this method i call the Process method from Imageprocessing Class
with LPVIDEOHDR as parameter. That means, i can work with the LPVIDEOHDR structure
in my Imageprocessing class. My Dialog is also an observer registered at
Imageprocessing Class. In Imageprocessing Class i do some filter work and so on.
When the filter work is done i call a Update method from my Dialog with
unsigned char* pData as parameter. At the moment, pData contains greyscaled data.
I've already converted the RGB data to greyscale data in my Imageprocessing Class.

In my Dialog i have live view from my cam.

My Question is how to make a Bitmap out of the unsigned char array and display it
in my dialog on a certain position. I want to display it next to my live view.
I've already created a picture control frame next to the live view. so i can get
the coordinates where i want to display the Bitmap. The Imageprocessing Class permanently
calls the Update method from my dialog and gives the unsigned char array.

So, how to make a Bitmap out of this given bytearray and display it on my dialog next to the live view when my update method has been called ?

the Update method doesnt belongs to MFC or WinApi. My dialog derives from my observer interface and
has to implement the virtual Update method.

I hope havnt confused you too much.

greetings,
cmos
AnswerRe: create bitmap out of bytearray and display it on dialog ??? Pin
Rajkumar R13-May-08 0:26
Rajkumar R13-May-08 0:26 
AnswerRe: create bitmap out of bytearray and display it on dialog ??? Pin
Mark Salsbery13-May-08 6:05
Mark Salsbery13-May-08 6:05 
GeneralRe: create bitmap out of bytearray and display it on dialog ??? [modified] Pin
cmos24-May-08 4:18
cmos24-May-08 4:18 
GeneralRe: create bitmap out of bytearray and display it on dialog ??? Pin
Mark Salsbery27-May-08 5:22
Mark Salsbery27-May-08 5:22 
QuestionNeed Help regarding regular expressions in VC 6.0 Pin
Member 372884112-May-08 23:43
Member 372884112-May-08 23:43 
AnswerRe: Need Help regarding regular expressions in VC 6.0 Pin
Rajkumar R12-May-08 23:59
Rajkumar R12-May-08 23:59 
QuestionCan't display dialogbox? Pin
ritz123412-May-08 23:07
ritz123412-May-08 23:07 
AnswerRe: Can't display dialogbox? Pin
ERLN13-May-08 0:15
ERLN13-May-08 0:15 
QuestionRe: Can't display dialogbox? Pin
David Crow13-May-08 2:58
David Crow13-May-08 2:58 
QuestionDoubt in DLL Pin
Hungry Developer12-May-08 22:57
Hungry Developer12-May-08 22:57 
AnswerRe: Doubt in DLL Pin
Cedric Moonen12-May-08 23:09
Cedric Moonen12-May-08 23:09 
AnswerRe: Doubt in DLL Pin
Rajkumar R12-May-08 23:10
Rajkumar R12-May-08 23:10 
GeneralRe: Doubt in DLL Pin
Hungry Developer13-May-08 1:14
Hungry Developer13-May-08 1:14 
AnswerRe: Doubt in DLL Pin
CPallini12-May-08 23:15
mveCPallini12-May-08 23:15 
GeneralRe: Doubt in DLL Pin
Hungry Developer13-May-08 1:15
Hungry Developer13-May-08 1:15 
GeneralYou're welcome Pin
CPallini13-May-08 1:45
mveCPallini13-May-08 1:45 
AnswerRe: Doubt in DLL Pin
toxcct13-May-08 2:12
toxcct13-May-08 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.