Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpen button in MS office file Open dialog Pin
Nitheesh George17-Mar-08 20:27
Nitheesh George17-Mar-08 20:27 
GeneralLocal Variable Address off by 4 bytes Pin
ForNow17-Mar-08 20:18
ForNow17-Mar-08 20:18 
QuestionRe: Local Variable Address off by 4 bytes Pin
Maxwell Chen17-Mar-08 20:56
Maxwell Chen17-Mar-08 20:56 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow17-Mar-08 21:54
ForNow17-Mar-08 21:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 8:21
Mark Salsbery18-Mar-08 8:21 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 12:40
ForNow18-Mar-08 12:40 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 13:07
Mark Salsbery18-Mar-08 13:07 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 14:59
ForNow18-Mar-08 14:59 
This only happens... the bug in my release version of the the DLL when I run my debug thru VS its fine

Just so I understand the ESP or Stack pointer points to the Top of the Stack which has the paramters

to the functions afterwards are the Local Varibles of the Function

Global Variables are pointed to by the data segment register

(I am a Mainframe Assembler programmer by trade) knowing Assebmler or X6 Masm I guess helps especially when

There is a bug only in release version of the app as that seems to be the only way to see the values of the

Variables

Below is the Function.... This the fuction definition --> int make_num(char *&);


int make_num(char *& str)
{
char holdstr[255]; // allocate a large buffer
int i =0, number;
for (; *str != ','; str++)
{
if((char) *str >= 0x30 || (char) *str <= 39)
{
holdstr[i] = (char) *str;
i++;
}
}
holdstr[i] = NULL;
number = atoi((const char *)&holdstr[0]);
return number;
}

Thanks much
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 15:54
ForNow18-Mar-08 15:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 16:13
Mark Salsbery18-Mar-08 16:13 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 18:32
ForNow18-Mar-08 18:32 
QuestionRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 19:40
Mark Salsbery18-Mar-08 19:40 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery19-Mar-08 4:39
Mark Salsbery19-Mar-08 4:39 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow19-Mar-08 14:39
ForNow19-Mar-08 14:39 
GeneralYou were right !!!!! Pin
ForNow19-Mar-08 17:35
ForNow19-Mar-08 17:35 
Generalurgent Pin
john563217-Mar-08 20:00
john563217-Mar-08 20:00 
GeneralRe: urgent Pin
rp_suman17-Mar-08 20:39
rp_suman17-Mar-08 20:39 
GeneralRe: urgent Pin
john563217-Mar-08 20:42
john563217-Mar-08 20:42 
GeneralRe: urgent Pin
rp_suman17-Mar-08 21:55
rp_suman17-Mar-08 21:55 
GeneralRe: urgent Pin
David Crow18-Mar-08 3:55
David Crow18-Mar-08 3:55 
GeneralRe: urgent Pin
Naveen17-Mar-08 21:21
Naveen17-Mar-08 21:21 
GeneralRe: urgent Pin
john563217-Mar-08 22:50
john563217-Mar-08 22:50 
GeneralRe: urgent Pin
Naveen17-Mar-08 23:29
Naveen17-Mar-08 23:29 
GeneralRe: urgent Pin
john563218-Mar-08 0:08
john563218-Mar-08 0:08 
GeneralRe: urgent Pin
Naveen18-Mar-08 0:19
Naveen18-Mar-08 0:19 

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.