Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class and Object memory layout question Pin
Richard MacCutchan21-Dec-16 5:58
mveRichard MacCutchan21-Dec-16 5:58 
GeneralRe: Class and Object memory layout question Pin
samzcs21-Dec-16 6:23
samzcs21-Dec-16 6:23 
GeneralRe: Class and Object memory layout question Pin
Richard MacCutchan21-Dec-16 6:46
mveRichard MacCutchan21-Dec-16 6:46 
GeneralRe: Class and Object memory layout question Pin
samzcs21-Dec-16 7:26
samzcs21-Dec-16 7:26 
GeneralRe: Class and Object memory layout question Pin
leon de boer21-Dec-16 14:50
leon de boer21-Dec-16 14:50 
GeneralRe: Class and Object memory layout question Pin
CPallini21-Dec-16 9:14
mveCPallini21-Dec-16 9:14 
GeneralRe: Class and Object memory layout question Pin
«_Superman_»1-Jan-17 22:42
professional«_Superman_»1-Jan-17 22:42 
QuestionC2084 FUNCTION ALREADY HAS A BODY Pin
ForNow18-Dec-16 13:08
ForNow18-Dec-16 13:08 
Hi
I am getting the above error, and I know its a programmer trainee error but I can't for the life of me figure it out

I did a find all from Visual Studio (looking in my solution directory) and what found was
the function was defined once

I did declare it ending with ';'

And when I call it or the declaration or the actual routine all have the same parameter list

Here is the result of the find all

line 43 is the declaration line 1606 is the actual function line 1743 is where it actually used

C++
, Subfolders, Find Results 1, "quot;"
  cpu.c(43):void hex_to_ascii(BYTE *ipx, char *str, int num);
  cpu.c(1606): void hex_to_ascii(BYTE *ipx, char *str, int num)
  cpu.c(1743):		         hex_to_ascii(ipx,str,num);
  hmacros.h(182): // extern void hex_to_ascii(BYTE *ipx, char *str, int num);
  hmacros.h(187):// #define HEX_TO_ASCII(_ipx, _str, _num) /  hex_to_ascii(_ipx ,_str,  _num) 
  cpu.c(43) : see previous definition of 'hex_to_ascii'
    Matching files: 3    Total files searched: 764

AnswerRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin18-Dec-16 15:26
professionalAlbert Holguin18-Dec-16 15:26 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
ForNow18-Dec-16 15:52
ForNow18-Dec-16 15:52 
AnswerRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin18-Dec-16 15:59
professionalAlbert Holguin18-Dec-16 15:59 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
ForNow18-Dec-16 16:18
ForNow18-Dec-16 16:18 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin18-Dec-16 16:28
professionalAlbert Holguin18-Dec-16 16:28 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
ForNow18-Dec-16 16:34
ForNow18-Dec-16 16:34 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin18-Dec-16 17:02
professionalAlbert Holguin18-Dec-16 17:02 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
leon de boer18-Dec-16 16:31
leon de boer18-Dec-16 16:31 
AnswerRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Richard MacCutchan18-Dec-16 21:48
mveRichard MacCutchan18-Dec-16 21:48 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Peter_in_278018-Dec-16 23:09
professionalPeter_in_278018-Dec-16 23:09 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Richard MacCutchan19-Dec-16 5:38
mveRichard MacCutchan19-Dec-16 5:38 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
leon de boer19-Dec-16 19:03
leon de boer19-Dec-16 19:03 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin21-Dec-16 10:41
professionalAlbert Holguin21-Dec-16 10:41 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
leon de boer23-Dec-16 6:26
leon de boer23-Dec-16 6:26 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin23-Dec-16 7:25
professionalAlbert Holguin23-Dec-16 7:25 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
leon de boer23-Dec-16 8:37
leon de boer23-Dec-16 8:37 
QuestionMFC code to move a train in two directions Pin
Member 1289526213-Dec-16 19:17
Member 1289526213-Dec-16 19:17 

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.