Click here to Skip to main content
15,882,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: control RESOURCE definition Pin
Victor Nijegorodov26-Jan-22 2:20
Victor Nijegorodov26-Jan-22 2:20 
GeneralRe: control RESOURCE definition Pin
ForNow26-Jan-22 2:24
ForNow26-Jan-22 2:24 
QuestionHow to sign pdf and verify the signature using a C++ open source library Pin
Member 1114733825-Jan-22 16:45
Member 1114733825-Jan-22 16:45 
AnswerRe: How to sign pdf and verify the signature using a C++ open source library Pin
Richard MacCutchan25-Jan-22 21:53
mveRichard MacCutchan25-Jan-22 21:53 
QuestionStack Overflow exeception Pin
ForNow25-Jan-22 1:41
ForNow25-Jan-22 1:41 
AnswerRe: Stack Overflow exeception Pin
Greg Utas25-Jan-22 1:58
professionalGreg Utas25-Jan-22 1:58 
GeneralRe: Stack Overflow exeception Pin
ForNow25-Jan-22 2:14
ForNow25-Jan-22 2:14 
GeneralRe: Stack Overflow exeception Pin
Greg Utas25-Jan-22 2:32
professionalGreg Utas25-Jan-22 2:32 
If there's a compiler option to generate a listing file, that might contain the information. I've never done this in Windows C++, so you'd have to look into it.

Another way would be to do this at the top of your function:
C++
int first;
// rest of local variables
int last;

int size = &last - &first;  // distance from first to last local variable
if(size < 0) size = -size;  // depends on how compiler lays out memory
size -= sizeof(int);        // the real size after removing FIRST and LAST

cout << "This function's locals use " << size << " bytes." << std::endl;

Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: Stack Overflow exeception Pin
ForNow25-Jan-22 2:46
ForNow25-Jan-22 2:46 
GeneralRe: Stack Overflow exeception Pin
Graham Breach25-Jan-22 7:47
Graham Breach25-Jan-22 7:47 
AnswerRe: Stack Overflow exeception Pin
Mircea Neacsu25-Jan-22 2:11
Mircea Neacsu25-Jan-22 2:11 
GeneralRe: Stack Overflow exeception Pin
ForNow25-Jan-22 2:20
ForNow25-Jan-22 2:20 
Questionfunction translated to ASM Pin
Calin Negru24-Jan-22 23:42
Calin Negru24-Jan-22 23:42 
AnswerRe: function translated to ASM Pin
CPallini25-Jan-22 0:10
mveCPallini25-Jan-22 0:10 
GeneralRe: function translated to ASM Pin
Calin Negru25-Jan-22 11:24
Calin Negru25-Jan-22 11:24 
GeneralRe: function translated to ASM Pin
CPallini25-Jan-22 20:00
mveCPallini25-Jan-22 20:00 
AnswerRe: function translated to ASM Pin
trønderen25-Jan-22 0:51
trønderen25-Jan-22 0:51 
GeneralRe: function translated to ASM Pin
Fly Gheorghe25-Jan-22 8:59
Fly Gheorghe25-Jan-22 8:59 
GeneralRe: function translated to ASM Pin
trønderen25-Jan-22 23:23
trønderen25-Jan-22 23:23 
GeneralRe: function translated to ASM Pin
Fly Gheorghe28-Jan-22 3:39
Fly Gheorghe28-Jan-22 3:39 
GeneralRe: function translated to ASM Pin
Richard Andrew x6430-Jan-22 4:48
professionalRichard Andrew x6430-Jan-22 4:48 
AnswerRe: function translated to ASM Pin
k505430-Jan-22 5:11
mvek505430-Jan-22 5:11 
GeneralRe: function translated to ASM Pin
Richard Andrew x6430-Jan-22 11:29
professionalRichard Andrew x6430-Jan-22 11:29 
GeneralRe: function translated to ASM Pin
Calin Negru31-Jan-22 6:49
Calin Negru31-Jan-22 6:49 
QuestionVS2019 - missing dialog editor? Pin
charlieg23-Jan-22 11:15
charlieg23-Jan-22 11:15 

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.