Click here to Skip to main content
15,798,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: moving graphics in a win32 c++ window Pin
Richard MacCutchan9-Aug-22 21:57
mveRichard MacCutchan9-Aug-22 21:57 
GeneralRe: moving graphics in a win32 c++ window Pin
Calin Negru10-Aug-22 2:58
Calin Negru10-Aug-22 2:58 
GeneralRe: moving graphics in a win32 c++ window Pin
Richard MacCutchan10-Aug-22 3:01
mveRichard MacCutchan10-Aug-22 3:01 
QuestionFileMapping book exmple goes in loop Pin
coco2438-Aug-22 9:48
coco2438-Aug-22 9:48 
AnswerRe: FileMapping book exmple goes in loop Pin
Mircea Neacsu8-Aug-22 11:35
Mircea Neacsu8-Aug-22 11:35 
GeneralRe: FileMapping book exmple goes in loop Pin
coco2438-Aug-22 12:45
coco2438-Aug-22 12:45 
GeneralRe: FileMapping book exmple goes in loop Pin
Mircea Neacsu8-Aug-22 12:47
Mircea Neacsu8-Aug-22 12:47 
Questiondefining a function with #define Pin
coco24330-Jul-22 10:03
coco24330-Jul-22 10: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.
AnswerRe: defining a function with #define Pin
Mircea Neacsu30-Jul-22 10:54
Mircea Neacsu30-Jul-22 10:54 
GeneralRe: defining a function with #define Pin
trønderen30-Jul-22 13:46
trønderen30-Jul-22 13:46 
GeneralRe: defining a function with #define Pin
Greg Utas30-Jul-22 14:58
mveGreg Utas30-Jul-22 14:58 
AnswerRe: defining a function with #define Pin
Randor 30-Jul-22 10:55
professional Randor 30-Jul-22 10:55 
GeneralRe: defining a function with #define Pin
coco2433-Aug-22 10:01
coco2433-Aug-22 10:01 
QuestionHow to read an xlsx file using CDatabase Pin
Sampath57927-Jul-22 20:54
Sampath57927-Jul-22 20:54 
AnswerRe: How to read an xlsx file using CDatabase Pin
Victor Nijegorodov27-Jul-22 21:07
Victor Nijegorodov27-Jul-22 21:07 
GeneralRe: How to read an xlsx file using CDatabase Pin
Sampath5791-Aug-22 0:27
Sampath5791-Aug-22 0:27 
GeneralRe: How to read an xlsx file using CDatabase Pin
Richard MacCutchan1-Aug-22 0:38
mveRichard MacCutchan1-Aug-22 0:38 
AnswerMessage Closed Pin
31-Jul-22 18:19
Sampath57931-Jul-22 18:19 
GeneralRe: How to read an xlsx file using CDatabase Pin
Dave Kreskowiak31-Jul-22 18:30
mveDave Kreskowiak31-Jul-22 18:30 
GeneralRe: How to read an xlsx file using CDatabase Pin
Sampath5791-Aug-22 0:40
Sampath5791-Aug-22 0:40 
GeneralRe: How to read an xlsx file using CDatabase Pin
Sampath5792-Aug-22 0:21
Sampath5792-Aug-22 0:21 
QuestionHow to use UTF8 characters in C++ Pin
JohnCodding27-Jul-22 4:00
JohnCodding27-Jul-22 4:00 
AnswerRe: How to use UTF8 characters in C++ Pin
Mircea Neacsu27-Jul-22 4:54
Mircea Neacsu27-Jul-22 4:54 
GeneralRe: How to use UTF8 characters in C++ Pin
JohnCodding27-Jul-22 20:40
JohnCodding27-Jul-22 20:40 
AnswerRe: How to use UTF8 characters in C++ Pin
Richard MacCutchan27-Jul-22 5:40
mveRichard MacCutchan27-Jul-22 5:40 

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.