Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnewbie question about staticly linked exe's Pin
RobJones29-Jan-02 12:04
RobJones29-Jan-02 12:04 
GeneralRe: newbie question about staticly linked exe's Pin
Ravi Bhavnani29-Jan-02 12:20
professionalRavi Bhavnani29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Simon Walton29-Jan-02 12:20
Simon Walton29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Tim Smith29-Jan-02 12:20
Tim Smith29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Joaquín M López Muñoz29-Jan-02 12:27
Joaquín M López Muñoz29-Jan-02 12:27 
GeneralDamned ActiveX control Pin
29-Jan-02 11:14
suss29-Jan-02 11:14 
GeneralRe: Damned ActiveX control Pin
Joaquín M López Muñoz29-Jan-02 12:52
Joaquín M López Muñoz29-Jan-02 12:52 
GeneralCopyImage with NT/W2K Pin
PJ Arends29-Jan-02 10:28
professionalPJ Arends29-Jan-02 10:28 
Hi all,
I have a question regarding the use of the CopyImage API function to create a DIBSection from a DDB by specifying the LR_CREATEDIBSECTION flag.
HBITMAP hDib = (HBITMAP)::CopyImage(TheBitmap, IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG | LR_CREATEDIBSECTION);
// hDib should be a DIBSection copy of TheBitmap while leaving TheBitmap valid and untouched
This works great with Win98. I have been using this method for quite a while now. But I recently posted two articles here on CP (http://www.codeproject.com/useritems/imageviewer.asp and http://www.codeproject.com/useritems/pjaimage.asp) and both articles I have reports back of the code not working properly on NT/W2K.

Is this a valid way of creating a DIBSection and the error is elsewhere? or is this method the cause of the errors?

any comments appreciatedSmile | :)

I only have access to Win98, so I can not test this myselfCry | :(( Cry | :((

---
Sonork 100.11743 Chicken Little

It may be that your sole purpose in life is simply to serve as a warning to others.
GeneralWinsock problem!! Pin
Rickard Andersson2029-Jan-02 10:01
Rickard Andersson2029-Jan-02 10:01 
GeneralRe: Winsock problem!! Pin
Joaquín M López Muñoz29-Jan-02 10:32
Joaquín M López Muñoz29-Jan-02 10:32 
GeneralRe: Winsock problem!! Pin
Nish Nishant29-Jan-02 20:19
sitebuilderNish Nishant29-Jan-02 20:19 
GeneralRe: Winsock problem!! Pin
Rickard Andersson2029-Jan-02 21:41
Rickard Andersson2029-Jan-02 21:41 
GeneralRe: Winsock problem!! Pin
Joaquín M López Muñoz29-Jan-02 23:13
Joaquín M López Muñoz29-Jan-02 23:13 
GeneralRe: Winsock problem!! Pin
Rüpel30-Jan-02 3:14
Rüpel30-Jan-02 3:14 
GeneralCustom draw CListView SDI Pin
RobJones29-Jan-02 8:55
RobJones29-Jan-02 8:55 
GeneralRe: Custom draw CListView SDI Pin
Joaquín M López Muñoz29-Jan-02 9:39
Joaquín M López Muñoz29-Jan-02 9:39 
GeneralRe: Custom draw CListView SDI Pin
RobJones29-Jan-02 12:07
RobJones29-Jan-02 12:07 
GeneralMemory detection tools Pin
gh29-Jan-02 7:31
gh29-Jan-02 7:31 
GeneralRe: Memory detection tools Pin
Brian V Shifrin29-Jan-02 8:38
Brian V Shifrin29-Jan-02 8:38 
GeneralRe: Memory detection tools Pin
gh29-Jan-02 9:06
gh29-Jan-02 9:06 
Questionsomething wrong with faxcomex.h ??? Pin
nvhoang29-Jan-02 6:38
nvhoang29-Jan-02 6:38 
AnswerRe: something wrong with faxcomex.h ??? Pin
Joaquín M López Muñoz29-Jan-02 12:30
Joaquín M López Muñoz29-Jan-02 12:30 
Generalreading data from bitmaps Pin
Rajveer29-Jan-02 6:21
Rajveer29-Jan-02 6:21 
GeneralRe: reading data from bitmaps Pin
Michael A. Barnhart29-Jan-02 16:26
Michael A. Barnhart29-Jan-02 16:26 
GeneralDynamic/Custom arrays, filestorage (databases) Pin
Peter Pearson29-Jan-02 6:12
Peter Pearson29-Jan-02 6: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.