Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: managing objects derived from the same base class using a container Pin
Greg Utas10-Aug-22 3:56
professionalGreg Utas10-Aug-22 3:56 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 6:34
Calin Negru10-Aug-22 6:34 
AnswerRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 4:01
mveRichard MacCutchan10-Aug-22 4:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 6:33
Calin Negru10-Aug-22 6:33 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 6:40
mveRichard MacCutchan10-Aug-22 6:40 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 11:14
Calin Negru10-Aug-22 11:14 
GeneralRe: managing objects derived from the same base class using a container Pin
k505410-Aug-22 13:01
mvek505410-Aug-22 13:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 21:25
Calin Negru10-Aug-22 21:25 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 21:10
mveRichard MacCutchan10-Aug-22 21:10 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru11-Aug-22 0:38
Calin Negru11-Aug-22 0:38 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan11-Aug-22 0:39
mveRichard MacCutchan11-Aug-22 0:39 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru11-Aug-22 0:57
Calin Negru11-Aug-22 0:57 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru12-Aug-22 18:58
Calin Negru12-Aug-22 18:58 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan12-Aug-22 21:55
mveRichard MacCutchan12-Aug-22 21:55 
Questionmoving graphics in a win32 c++ window Pin
Calin Negru9-Aug-22 8:25
Calin Negru9-Aug-22 8:25 
AnswerRe: moving graphics in a win32 c++ window Pin
Gerry Schmitz9-Aug-22 9:15
mveGerry Schmitz9-Aug-22 9:15 
AnswerRe: moving graphics in a win32 c++ window Pin
Graham Breach9-Aug-22 20:54
Graham Breach9-Aug-22 20:54 
AnswerRe: moving graphics in a win32 c++ window Pin
Richard MacCutchan9-Aug-22 20:57
mveRichard MacCutchan9-Aug-22 20:57 
GeneralRe: moving graphics in a win32 c++ window Pin
Calin Negru10-Aug-22 1:58
Calin Negru10-Aug-22 1:58 
GeneralRe: moving graphics in a win32 c++ window Pin
Richard MacCutchan10-Aug-22 2:01
mveRichard MacCutchan10-Aug-22 2:01 
QuestionFileMapping book exmple goes in loop Pin
coco2438-Aug-22 8:48
coco2438-Aug-22 8:48 
AnswerRe: FileMapping book exmple goes in loop Pin
Mircea Neacsu8-Aug-22 10:35
Mircea Neacsu8-Aug-22 10:35 
GeneralRe: FileMapping book exmple goes in loop Pin
coco2438-Aug-22 11:45
coco2438-Aug-22 11:45 
GeneralRe: FileMapping book exmple goes in loop Pin
Mircea Neacsu8-Aug-22 11:47
Mircea Neacsu8-Aug-22 11:47 
Questiondefining a function with #define Pin
coco24330-Jul-22 9:03
coco24330-Jul-22 9:03 
Hi,

Please help me understanding the following declaration:

C++
#define EVENBYTE( i )  ((i+7)/8*8)


It represents the definition of function?

If for example I call EVENBYTE( 1 ), the result will be ((1+7)/8*8)?

From where I have extracted de code, the EVENBYTE was called in that way:

C++
int    nIconBytes = (EVENBYTE(nWidth)/8)*nHeight;


I don't understand what this kind of declaring is and why to do it in that mode?

Thank you in advance.

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.