Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Ahmed Charfeddine19-Jan-09 4:47
Ahmed Charfeddine19-Jan-09 4:47 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Luc Pattyn19-Jan-09 5:19
sitebuilderLuc Pattyn19-Jan-09 5:19 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Stuart Dootson19-Jan-09 6:48
professionalStuart Dootson19-Jan-09 6:48 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Stuart Dootson19-Jan-09 6:54
professionalStuart Dootson19-Jan-09 6:54 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Ahmed Charfeddine19-Jan-09 22:14
Ahmed Charfeddine19-Jan-09 22:14 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Luc Pattyn19-Jan-09 4:40
sitebuilderLuc Pattyn19-Jan-09 4:40 
AnswerRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
«_Superman_»19-Jan-09 16:05
professional«_Superman_»19-Jan-09 16:05 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
ThatsAlok19-Jan-09 21:52
ThatsAlok19-Jan-09 21:52 
«_Superman_» wrote:
void main(){ A* pA = (A*)malloc(sizeof(A)); pA->A::A();}


You can’t allocate memory for Class through C malloc, because it just allocate the memory, but will not do any class object initialisation task like call for constructor/destructor.

Problem with malloc is now resolved in STL std::malloc, which provide support for allocating memory to class object and do starting and cleanup work

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Stuart Dootson19-Jan-09 22:11
professionalStuart Dootson19-Jan-09 22:11 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
«_Superman_»19-Jan-09 23:36
professional«_Superman_»19-Jan-09 23:36 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Ahmed Charfeddine19-Jan-09 22:13
Ahmed Charfeddine19-Jan-09 22:13 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? [modified] Pin
Stuart Dootson19-Jan-09 22:36
professionalStuart Dootson19-Jan-09 22:36 
QuestionMFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
RedSonja19-Jan-09 3:42
RedSonja19-Jan-09 3:42 
AnswerRe: MFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
Stuart Dootson19-Jan-09 4:00
professionalStuart Dootson19-Jan-09 4:00 
GeneralRe: MFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
RedSonja19-Jan-09 4:33
RedSonja19-Jan-09 4:33 
QuestionMFC DLL Pin
bhanu_850919-Jan-09 2:46
bhanu_850919-Jan-09 2:46 
AnswerRe: MFC DLL Pin
Cedric Moonen19-Jan-09 3:33
Cedric Moonen19-Jan-09 3:33 
GeneralRe: MFC DLL Pin
bhanu_850919-Jan-09 5:24
bhanu_850919-Jan-09 5:24 
GeneralRe: MFC DLL Pin
Cedric Moonen19-Jan-09 7:53
Cedric Moonen19-Jan-09 7:53 
GeneralRe: MFC DLL Pin
bhanu_850919-Jan-09 20:22
bhanu_850919-Jan-09 20:22 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 2:32
Cedric Moonen20-Jan-09 2:32 
GeneralRe: MFC DLL Pin
bhanu_850920-Jan-09 2:45
bhanu_850920-Jan-09 2:45 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 2:51
Cedric Moonen20-Jan-09 2:51 
GeneralRe: MFC DLL Pin
bhanu_850920-Jan-09 3:08
bhanu_850920-Jan-09 3:08 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 4:25
Cedric Moonen20-Jan-09 4: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.