Click here to Skip to main content
15,905,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Code efficiency Pin
Mark Salsbery1-Sep-08 7:58
Mark Salsbery1-Sep-08 7:58 
Questionc++ function help Pin
anjoz96631-Aug-08 4:07
anjoz96631-Aug-08 4:07 
AnswerRe: c++ function help Pin
Cedric Moonen31-Aug-08 5:42
Cedric Moonen31-Aug-08 5:42 
QuestionSTL exception Pin
followait30-Aug-08 23:04
followait30-Aug-08 23:04 
AnswerRe: STL exception Pin
Mark Salsbery31-Aug-08 7:47
Mark Salsbery31-Aug-08 7:47 
GeneralRe: STL exception Pin
followait31-Aug-08 18:00
followait31-Aug-08 18:00 
Questionifstream question Pin
followait30-Aug-08 16:40
followait30-Aug-08 16:40 
QuestionInvert ARGB [modified] Pin
bob1697230-Aug-08 7:12
bob1697230-Aug-08 7:12 
What is the most efficient way to invert the RGB portion of an ARGB without effecting the alpha byte?

For simplicity, I'm assuming the alpha byte is the most significant byte, followed by the Red, Green, and Blue (at least for the sake of discussion)

My best guess at this point is something like...
color ^= 0x00FFFFFF;

modified on Saturday, August 30, 2008 1:41 PM

AnswerRe: Invert ARGB Pin
Mark Salsbery30-Aug-08 8:04
Mark Salsbery30-Aug-08 8:04 
GeneralRe: Invert ARGB Pin
bob1697230-Aug-08 11:52
bob1697230-Aug-08 11:52 
GeneralRe: Invert ARGB Pin
Mark Salsbery30-Aug-08 11:58
Mark Salsbery30-Aug-08 11:58 
QuestionLooking for C++ CWnd equivalent of C#'s Control.Invoke, Control.IsInvokeRequired Pin
Ohad Maishar30-Aug-08 6:13
Ohad Maishar30-Aug-08 6:13 
AnswerRe: Looking for C++ CWnd equivalent of C#'s Control.Invoke, Control.IsInvokeRequired Pin
Mark Salsbery30-Aug-08 6:46
Mark Salsbery30-Aug-08 6:46 
Questionopening network connections Pin
VCProgrammer30-Aug-08 1:50
VCProgrammer30-Aug-08 1:50 
AnswerRe: opening network connections Pin
Dr. Emmett Brown30-Aug-08 3:34
Dr. Emmett Brown30-Aug-08 3:34 
QuestionRe: opening network connections Pin
David Crow30-Aug-08 4:30
David Crow30-Aug-08 4:30 
AnswerRe: opening network connections Pin
Mark Salsbery30-Aug-08 6:41
Mark Salsbery30-Aug-08 6:41 
GeneralRe: opening network connections Pin
VCProgrammer31-Aug-08 20:16
VCProgrammer31-Aug-08 20:16 
GeneralRe: opening network connections Pin
VCProgrammer31-Aug-08 20:41
VCProgrammer31-Aug-08 20:41 
QuestionCreate folders in VC++ Pin
AnithaSubramani30-Aug-08 0:14
AnithaSubramani30-Aug-08 0:14 
AnswerRe: Create folders in VC++ Pin
Rane30-Aug-08 0:31
Rane30-Aug-08 0:31 
GeneralRe: Create folders in VC++ Pin
AnithaSubramani30-Aug-08 0:35
AnithaSubramani30-Aug-08 0:35 
GeneralRe: Create folders in VC++ Pin
santhoshv8430-Aug-08 1:30
santhoshv8430-Aug-08 1:30 
GeneralRe: Create folders in VC++ Pin
zafersavas30-Aug-08 5:13
zafersavas30-Aug-08 5:13 
QuestionRegEnumValue : Not able to retreive registry value for Date format.. Pin
Supriya Tonape29-Aug-08 23:56
Supriya Tonape29-Aug-08 23:56 

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.