Click here to Skip to main content
15,898,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to display a specifique layer from a photoshop file ? Pin
Dani10000126-Dec-04 15:26
Dani10000126-Dec-04 15:26 
Questionwhat's the unit of the return value of GetTextExtent()? Pin
Fei Xu26-Dec-04 15:14
Fei Xu26-Dec-04 15:14 
QuestionHow to change the button's text color? Pin
chenbuaa26-Dec-04 14:02
chenbuaa26-Dec-04 14:02 
GeneralEnums alignment Pin
TheSharkOfDil26-Dec-04 8:57
sussTheSharkOfDil26-Dec-04 8:57 
GeneralRe: Enums alignment Pin
John R. Shaw26-Dec-04 12:04
John R. Shaw26-Dec-04 12:04 
GeneralProblem with changing color of a pixel in a bitmap! Pin
Dani10000126-Dec-04 7:29
Dani10000126-Dec-04 7:29 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw26-Dec-04 12:35
John R. Shaw26-Dec-04 12:35 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
Dani10000126-Dec-04 15:16
Dani10000126-Dec-04 15:16 
Thanks,for your reply.

I get an error

cannot convert from 'void *' to 'unsigned long'

when using :

DWORD *pLine=lpBits;

So I tried to use: pLine=(DWORD*)lpBits;
instead.

But I get an exception somewhere in the for loop!

So the code has to access something outside the pixelbits area?

I dont know what might be wrong, do I have to use another cast from the void* pointer?

Regards, Dani


GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw27-Dec-04 6:04
John R. Shaw27-Dec-04 6:04 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
PJ Arends26-Dec-04 22:06
professionalPJ Arends26-Dec-04 22:06 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw27-Dec-04 6:16
John R. Shaw27-Dec-04 6:16 
Generalquestion Pin
gamitech26-Dec-04 6:14
gamitech26-Dec-04 6:14 
GeneralRe: question Pin
Yulianto.26-Dec-04 13:54
Yulianto.26-Dec-04 13:54 
GeneralRe: question Pin
PJ Arends26-Dec-04 22:27
professionalPJ Arends26-Dec-04 22:27 
GeneralReplacing the mmemory allocator for "CoGetMalloc" function Pin
impeham26-Dec-04 5:34
impeham26-Dec-04 5:34 
GeneralHelp in Editing Icon Pin
Azghar Hussain26-Dec-04 4:07
professionalAzghar Hussain26-Dec-04 4:07 
GeneralNeed a fancy name for a 'combined' variable Pin
TrueTom26-Dec-04 2:42
TrueTom26-Dec-04 2:42 
GeneralRe: Need a fancy name for a 'combined' variable Pin
User 665826-Dec-04 7:52
User 665826-Dec-04 7:52 
GeneralRe: Need a fancy name for a 'combined' variable Pin
TrueTom27-Dec-04 1:35
TrueTom27-Dec-04 1:35 
GeneralRe: Need a fancy name for a 'combined' variable Pin
TrueTom27-Dec-04 2:16
TrueTom27-Dec-04 2:16 
Generalupload files Pin
StoreErin26-Dec-04 1:26
StoreErin26-Dec-04 1:26 
GeneralRe: upload files Pin
Neville Franks26-Dec-04 9:56
Neville Franks26-Dec-04 9:56 
GeneralRe: upload files Pin
StoreErin26-Dec-04 13:26
StoreErin26-Dec-04 13:26 
GeneralpictureBox question. Pin
Link260025-Dec-04 22:31
Link260025-Dec-04 22:31 
QuestionHow to use message handler in MFC regular Dll? Pin
tttyip25-Dec-04 20:25
tttyip25-Dec-04 20:25 

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.