Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIP address of the computer using VC++ Pin
mailsafe28-Feb-06 22:51
mailsafe28-Feb-06 22:51 
AnswerRe: IP address of the computer using VC++ Pin
khan++1-Mar-06 0:36
khan++1-Mar-06 0:36 
AnswerRe: IP address of the computer using VC++ Pin
vivek.s.vivek1-Mar-06 0:43
vivek.s.vivek1-Mar-06 0:43 
AnswerRe: IP address of the computer using VC++ Pin
ThatsAlok1-Mar-06 2:45
ThatsAlok1-Mar-06 2:45 
Questionto link MDI interface to a dialog Pin
mailsafe28-Feb-06 22:41
mailsafe28-Feb-06 22:41 
QuestionRe: to link MDI interface to a dialog Pin
Nibu babu thomas1-Mar-06 16:49
Nibu babu thomas1-Mar-06 16:49 
QuestionUsing Sockets in Win32 DLL Pin
castratroi28-Feb-06 21:03
castratroi28-Feb-06 21:03 
Questionvirtual function declarations Pin
lastgen28-Feb-06 20:45
lastgen28-Feb-06 20:45 
I have some code that was generating compile errors. I have found the solution to fix the problem, I'm just not 100% sure I understand what the problem actually is. The (much simplified)code below should help explain the issue. I have created a decendant object from ABC that contains the implementation of function FOO

<br />
<br />
 // This version gives me an unresolved external error<br />
<br />
  class ABC<br />
  {<br />
    public:<br />
      virtual void FOO(BAR& foo);<br />
  };<br />
<br />
 // This version is fine<br />
<br />
  class ABC<br />
  {<br />
    public:<br />
      virtual void FOO(BAR& foo) = 0;<br />
  };<br />


My question is this,
What does the "= 0" indicate?
Why is it needed?

When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!
AnswerRe: virtual function declarations Pin
lastgen28-Feb-06 20:55
lastgen28-Feb-06 20:55 
GeneralRe: virtual function declarations Pin
Cedric Moonen28-Feb-06 20:58
Cedric Moonen28-Feb-06 20:58 
AnswerRe: virtual function declarations Pin
Cedric Moonen28-Feb-06 20:57
Cedric Moonen28-Feb-06 20:57 
AnswerRe: virtual function declarations Pin
Nibu babu thomas28-Feb-06 20:57
Nibu babu thomas28-Feb-06 20:57 
AnswerRe: virtual function declarations Pin
John R. Shaw28-Feb-06 23:03
John R. Shaw28-Feb-06 23:03 
QuestionC++ Pin
yaaqub28-Feb-06 20:04
yaaqub28-Feb-06 20:04 
AnswerRe: C++ Pin
Nibu babu thomas28-Feb-06 20:10
Nibu babu thomas28-Feb-06 20:10 
AnswerRe: C++ Pin
Ryan Binns28-Feb-06 20:11
Ryan Binns28-Feb-06 20:11 
AnswerRe: C++ Pin
_AnsHUMAN_ 28-Feb-06 21:25
_AnsHUMAN_ 28-Feb-06 21:25 
GeneralRe: C++ Pin
David Crow1-Mar-06 3:18
David Crow1-Mar-06 3:18 
GeneralRe: C++ Pin
_AnsHUMAN_ 1-Mar-06 5:03
_AnsHUMAN_ 1-Mar-06 5:03 
GeneralRe: C++ Pin
David Crow1-Mar-06 6:39
David Crow1-Mar-06 6:39 
QuestionIncremental backup of a disk. Pin
ashtwin28-Feb-06 19:36
ashtwin28-Feb-06 19:36 
AnswerRe: Incremental backup of a disk. Pin
David Crow1-Mar-06 3:20
David Crow1-Mar-06 3:20 
Questioncopy file to URL Pin
Anilkumar K V28-Feb-06 19:19
Anilkumar K V28-Feb-06 19:19 
AnswerRe: copy file to URL Pin
vivek.s.vivek28-Feb-06 20:10
vivek.s.vivek28-Feb-06 20:10 
AnswerRe: copy file to URL Pin
David Crow1-Mar-06 3:22
David Crow1-Mar-06 3:22 

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.