Click here to Skip to main content
15,889,876 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: STL Pin
Jonas Larsson24-Feb-04 0:44
Jonas Larsson24-Feb-04 0:44 
GeneralRe: STL Pin
João Paulo Figueira24-Feb-04 1:59
professionalJoão Paulo Figueira24-Feb-04 1:59 
GeneralRe: STL Pin
Jonas Larsson24-Feb-04 2:06
Jonas Larsson24-Feb-04 2:06 
QuestionIs it possible to read the phone book of a mobile phone by using kjava? Pin
mizimizi23-Feb-04 11:54
mizimizi23-Feb-04 11:54 
GeneralStart a dialog hidden Pin
annum23-Feb-04 11:26
annum23-Feb-04 11:26 
Questionwhere is JpgLib.lib???? Pin
rodneyk123-Feb-04 9:06
rodneyk123-Feb-04 9:06 
Generalon VC++. net Pin
ppp00123-Feb-04 0:38
ppp00123-Feb-04 0:38 
GeneralProblems with drawing a DIB section to screen Pin
hammock22-Feb-04 14:49
hammock22-Feb-04 14:49 
Hello,

I have an algorithm which fills a BITMAPINFO structure's RGBQUAD with
values. It's supposed to contain a frame of a video. I would now like to
output this to the screen. Currently, I'm only able to display a black
square. Here's what I'm trying to do:

HDC hdc, hdcMem;
HDC pBmp;
BITMAPINFO bmpInfo; // i set this accordingly
HBITMAP defaultObject, currentFrame;

// create a device context
hdc = GetDC(hWnd);
// create a memory device context
hdcMem = CreateCompatibleDC(hdc);

// now i am trying to create the DIB section
currentFrame = CreateDIBSection(hdc,
(BITMAPINFO*) &bmpInfo,
DIB_RGB_COLORS,
&pBmp,
NULL, 0);

// i am selecting the current frame that i got from createdibsection and
placing it in the memory device context
defaultObject = SelectObject(hdcMem, currentFrame);

// here I am attempting to display the frame to the screen
BitBlt(hdc, 30, 60, 176, 144, hdcMem, 0, 0, SRCCOPY);

// now i'm cleaning up ...
SelectObject(hdcMem, defaultObject);
DeleteObject(currentFrame);
DeleteDC(hdcMem);

does anyone see the error in this code? i have no prior experience coding in
windows whatsoever, let alone CE... This has been a crash course for me; i
have scoured most of the web for related material, tutorials, examples, and
i've gotten to this point.

thanks much for your time
Mike


GeneralRe: Problems with drawing a DIB section to screen Pin
Jonas Larsson23-Feb-04 1:40
Jonas Larsson23-Feb-04 1:40 
GeneralRadio problems Pin
misha_grewal20-Feb-04 9:43
misha_grewal20-Feb-04 9:43 
Generalwhere is wceres.rc. Pin
rodneyk120-Feb-04 6:38
rodneyk120-Feb-04 6:38 
GeneralRe: where is wceres.rc. Pin
João Paulo Figueira22-Feb-04 11:22
professionalJoão Paulo Figueira22-Feb-04 11:22 
GeneralI new at this and need help Pin
rodneyk119-Feb-04 11:10
rodneyk119-Feb-04 11:10 
GeneralRe: I new at this and need help Pin
Ian Darling19-Feb-04 11:46
Ian Darling19-Feb-04 11:46 
GeneralRe: I new at this and need help Pin
rodneyk120-Feb-04 5:42
rodneyk120-Feb-04 5:42 
GeneralBest Data Storage solution Pin
Adam Durity18-Feb-04 7:59
Adam Durity18-Feb-04 7:59 
QuestionHow to retrieve information about currently running programs Pin
AEbert18-Feb-04 1:30
AEbert18-Feb-04 1:30 
AnswerRe: How to retrieve information about currently running programs Pin
Jonas Larsson19-Feb-04 2:02
Jonas Larsson19-Feb-04 2:02 
GeneralRe: How to retrieve information about currently running programs Pin
AEbert22-Feb-04 3:09
AEbert22-Feb-04 3:09 
GeneralRe: How to retrieve information about currently running programs Pin
Ian Darling22-Feb-04 3:40
Ian Darling22-Feb-04 3:40 
GeneralRe: How to retrieve information about currently running programs Pin
AEbert24-Feb-04 3:00
AEbert24-Feb-04 3:00 
Generalwince with LAN connectivity Pin
mjramesh_cse17-Feb-04 21:46
mjramesh_cse17-Feb-04 21:46 
GeneralReceive File using WInsock Pin
psyclope17-Feb-04 18:59
psyclope17-Feb-04 18:59 
GeneralDialog Boxes Pin
camasmartin16-Feb-04 16:20
camasmartin16-Feb-04 16:20 
GeneralRe: Dialog Boxes - Solved Pin
camasmartin17-Feb-04 6:40
camasmartin17-Feb-04 6:40 

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.