Click here to Skip to main content
15,929,429 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Data Parsers Pin
led mike24-Oct-07 5:16
led mike24-Oct-07 5:16 
QuestionVC++6 to VC++.NET conversion Pin
Sumanta Rout24-Oct-07 4:02
Sumanta Rout24-Oct-07 4:02 
AnswerRe: VC++6 to VC++.NET conversion Pin
Mark Salsbery24-Oct-07 6:14
Mark Salsbery24-Oct-07 6:14 
QuestionCommunication between forms Pin
UnHolyKnight55524-Oct-07 1:52
UnHolyKnight55524-Oct-07 1:52 
AnswerRe: Communication between forms [modified] Pin
Luc Pattyn24-Oct-07 2:06
sitebuilderLuc Pattyn24-Oct-07 2:06 
GeneralRe: Communication between forms Pin
led mike25-Oct-07 4:31
led mike25-Oct-07 4:31 
Questionerror C4430 Pin
Sumanta Rout24-Oct-07 1:03
Sumanta Rout24-Oct-07 1:03 
Questiona link error Pin
richardye23-Oct-07 22:19
richardye23-Oct-07 22:19 
I create an abstract class and a class derived from it. I know that an abstract class's object cannot be created until all its pure virtual functions are redefined within their derived class. However, How about the constructor and destructor functions? As they are special class functions, they can not be redefined within their derived class.
class Abstract_base {
public:
virtual ~Abstract_base()=0;
virtual void interface1() const = 0;
virtual const char* mumber() const
{
return _mumble;
};
protected:
char *_mumble;
};

class Concrete_derived : public Abstract_base {
public:
Concrete_derived()
{

};
virtual void interface1() const {};
};

int main
{
Concrete_derived trouble;
return 0;
}

The code above has link eror.(error LNK2019)
If I change "virtual ~Abstract_base()=0;" to "virtual ~Abstract_base()=0; {}", the link error disappeared. Why shall we add "virtual" to the destructor function?
Can you give me some explanation?

My thanks
AnswerRe: a link error Pin
Christian Graus23-Oct-07 22:56
protectorChristian Graus23-Oct-07 22:56 
GeneralRe: a link error Pin
richardye24-Oct-07 1:08
richardye24-Oct-07 1:08 
QuestionUnhandled Exception in the console window Pin
staticplus23-Oct-07 2:54
staticplus23-Oct-07 2:54 
AnswerRe: Unhandled Exception in the console window Pin
Mark Salsbery23-Oct-07 8:17
Mark Salsbery23-Oct-07 8:17 
GeneralRe: Unhandled Exception in the console window Pin
staticplus23-Oct-07 10:27
staticplus23-Oct-07 10:27 
QuestionODBC Error Pin
Sumanta Rout22-Oct-07 1:30
Sumanta Rout22-Oct-07 1:30 
AnswerRe: ODBC Error Pin
George L. Jackson22-Oct-07 8:33
George L. Jackson22-Oct-07 8:33 
QuestionOdbcConnection / SQLConnect Pin
slimtim19-Oct-07 1:02
slimtim19-Oct-07 1:02 
QuestionDetermining if a DLL is a managed class library Pin
Kosomot19-Oct-07 0:24
Kosomot19-Oct-07 0:24 
AnswerRe: Determining if a DLL is a managed class library Pin
Giorgi Dalakishvili19-Oct-07 1:31
mentorGiorgi Dalakishvili19-Oct-07 1:31 
GeneralRe: Determining if a DLL is a managed class library Pin
Kosomot19-Oct-07 1:33
Kosomot19-Oct-07 1:33 
GeneralRe: Determining if a DLL is a managed class library Pin
Giorgi Dalakishvili19-Oct-07 1:35
mentorGiorgi Dalakishvili19-Oct-07 1:35 
Questionneed an approach Pin
narayanagvs18-Oct-07 21:46
narayanagvs18-Oct-07 21:46 
AnswerRe: need an approach Pin
Giorgi Dalakishvili18-Oct-07 23:33
mentorGiorgi Dalakishvili18-Oct-07 23:33 
Questionhelp Pin
maybe?18-Oct-07 21:28
maybe?18-Oct-07 21:28 
AnswerRe: help Pin
led mike19-Oct-07 4:25
led mike19-Oct-07 4:25 
Questionnegative binary number Pin
maybe?18-Oct-07 21:25
maybe?18-Oct-07 21:25 

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.