Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet service Name Pin
sunit55-Aug-08 3:50
sunit55-Aug-08 3:50 
AnswerRe: Get service Name Pin
Randor 5-Aug-08 7:19
professional Randor 5-Aug-08 7:19 
GeneralRe: Get service Name Pin
sunit55-Aug-08 18:35
sunit55-Aug-08 18:35 
AnswerRe: Get service Name Pin
Hamid_RT5-Aug-08 20:29
Hamid_RT5-Aug-08 20:29 
QuestionRequested registry access is not allowed! Pin
Member 46617085-Aug-08 3:22
Member 46617085-Aug-08 3:22 
QuestionRe: Requested registry access is not allowed! Pin
David Crow5-Aug-08 3:26
David Crow5-Aug-08 3:26 
AnswerRe: Requested registry access is not allowed! Pin
Member 46617085-Aug-08 3:42
Member 46617085-Aug-08 3:42 
QuestionBitmap mystery: vanishing pixel array Pin
Anthony Appleyard5-Aug-08 3:16
Anthony Appleyard5-Aug-08 3:16 
Thanks for putting up with my many queries.
I have reached this stage:

// wn = the handle of the current window
#define OUCH MB_ICONEXCLAMATION
HDC dc=GetDC(wn); HDC dc2=CreateCompatibleDC(dc);
char t[256]; BITMAP bm;
.... // Here I set the elements of bm
sprintf(t,"%d: %d * %d, width = %d, %d planes, bpp = %d, pixels at %d",
bm.bmType,bm.bmWidth,bm.bmHeight,bm.bmWidthBytes,bm.bmPlanes,bm.bmBitsPixel,int(bm.bmBits));
MessageBox(0,t,"set up hbm",OUCH);
// This displays 0, 600, 600, 1800, 1, 24, 28180544 :: all correct as far as I can see;
// here 28180544 pointed to the pixel array of a valid image (a CGI image of two frogmen)
HBITMAP hbm=CreateBitmapIndirect(&bm);
BITMAP bm3; GetObject(hbm,sizeof(BITMAP),(void*)(&bm3));
sprintf(t,"bm3 is type %d, %d * %d, each row %d bytes, %d planes, bpp=%d, pixels at %d",
bm3.bmType,bm3.bmWidth,bm3.bmHeight,bm3.bmWidthBytes,bm3.bmPlanes,bm3.bmBitsPixel,int(bm3.bmBits)); MessageBox(0,t,"size",OUCH);
// This displays 0, 600, 600, 1800, 1, 24, 0

Please, what happened to my image's pixel array or its address?
AnswerRe: Bitmap mystery: vanishing pixel array Pin
Mark Salsbery5-Aug-08 5:16
Mark Salsbery5-Aug-08 5:16 
GeneralRe: Bitmap mystery: vanishing pixel array Pin
Anthony Appleyard5-Aug-08 5:51
Anthony Appleyard5-Aug-08 5:51 
QuestionCopying icon data from HICON to be used later Pin
__DanC__5-Aug-08 3:16
__DanC__5-Aug-08 3:16 
AnswerRe: Copying icon data from HICON to be used later Pin
__DanC__5-Aug-08 3:22
__DanC__5-Aug-08 3:22 
QuestionProblem in using CString in Win32 dynamic library Pin
vinay_K5-Aug-08 2:58
vinay_K5-Aug-08 2:58 
AnswerRe: Problem in using CString in Win32 dynamic library Pin
_AnsHUMAN_ 5-Aug-08 3:15
_AnsHUMAN_ 5-Aug-08 3:15 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
vinay_K5-Aug-08 3:46
vinay_K5-Aug-08 3:46 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
_AnsHUMAN_ 5-Aug-08 3:56
_AnsHUMAN_ 5-Aug-08 3:56 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
nisha000005-Aug-08 4:16
nisha000005-Aug-08 4:16 
AnswerRe: Problem in using CString in Win32 dynamic library Pin
Mark Salsbery5-Aug-08 5:35
Mark Salsbery5-Aug-08 5:35 
QuestionAn unhandled exception of type 'System.AccessViolationException' occurred in Test.exe [modified] Pin
Le@rner5-Aug-08 2:37
Le@rner5-Aug-08 2:37 
AnswerRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 2:44
Cedric Moonen5-Aug-08 2:44 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Le@rner5-Aug-08 18:12
Le@rner5-Aug-08 18:12 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 21:08
Cedric Moonen5-Aug-08 21:08 
QuestionSearching for C++ classes (MFC) gathering media infos Pin
Ralf Lohmueller5-Aug-08 2:10
Ralf Lohmueller5-Aug-08 2:10 
QuestionCDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 1:53
bxveer5-Aug-08 1:53 
AnswerRe: CDialog wipes out when switching to a different application Pin
sudhir_Kumar5-Aug-08 2:08
sudhir_Kumar5-Aug-08 2:08 

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.