Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C2512: no appropriate default constructor available Pin
«_Superman_»27-Apr-10 8:55
professional«_Superman_»27-Apr-10 8:55 
GeneralRe: C2512: no appropriate default constructor available [modified] Pin
PIEBALDconsult27-Apr-10 9:15
mvePIEBALDconsult27-Apr-10 9:15 
GeneralRe: C2512: no appropriate default constructor available Pin
Moak27-Apr-10 9:55
Moak27-Apr-10 9:55 
GeneralRe: C2512: no appropriate default constructor available Pin
CPallini27-Apr-10 11:45
mveCPallini27-Apr-10 11:45 
AnswerRe: C2512: no appropriate default constructor available Pin
CPallini27-Apr-10 11:42
mveCPallini27-Apr-10 11:42 
AnswerRe: C2512: no appropriate default constructor available Pin
Nisamudheen27-Apr-10 16:52
Nisamudheen27-Apr-10 16:52 
GeneralRe: C2512: no appropriate default constructor available Pin
Manfr3d28-Apr-10 2:03
Manfr3d28-Apr-10 2:03 
GeneralRe: C2512: no appropriate default constructor available Pin
Nisamudheen5-May-10 16:42
Nisamudheen5-May-10 16:42 
If you can provide a sample code, it will help to understand the problem well.

Hope, your problem might be like the following one.

class CTest
{
public:
CTest( int a ) // since there is a constructor, the compiler won't generate
// the default (no-argument) constructor.
{
}
};
int main()
{
CTest Object; // Here, we are trying to invoke the no-argument constructor.
// So the error C2512 comes.
// To solve the problem, define a no-artument constructor.

// CTest Object( 1 ); Otherwise, you should declare the object like this.
return 0;
}
Questioncustom button or graphic with multi select points Pin
Kyle P27-Apr-10 6:28
Kyle P27-Apr-10 6:28 
AnswerRe: custom button or graphic with multi select points Pin
David Crow27-Apr-10 7:48
David Crow27-Apr-10 7:48 
AnswerRe: custom button or graphic with multi select points [modified] Pin
Rozis28-Apr-10 14:27
Rozis28-Apr-10 14:27 
QuestionUnit testing for GUI(VC++) Pin
Super Hornet27-Apr-10 3:48
Super Hornet27-Apr-10 3:48 
AnswerRe: Unit testing for GUI(VC++) Pin
Tarakeshwar Reddy27-Apr-10 7:31
professionalTarakeshwar Reddy27-Apr-10 7:31 
QuestionDisabling Resizing. Pin
Randal Vance Cunanan27-Apr-10 3:44
Randal Vance Cunanan27-Apr-10 3:44 
AnswerRe: Disabling Resizing. Pin
David Crow27-Apr-10 4:03
David Crow27-Apr-10 4:03 
GeneralRe: Disabling Resizing. Pin
Randal Vance Cunanan27-Apr-10 4:45
Randal Vance Cunanan27-Apr-10 4:45 
QuestionList view column header name Pin
arun_pk27-Apr-10 0:41
arun_pk27-Apr-10 0:41 
AnswerRe: List view column header name Pin
Code-o-mat27-Apr-10 0:46
Code-o-mat27-Apr-10 0:46 
GeneralRe: List view column header name Pin
arun_pk27-Apr-10 1:56
arun_pk27-Apr-10 1:56 
GeneralRe: List view column header name Pin
Code-o-mat27-Apr-10 1:59
Code-o-mat27-Apr-10 1:59 
GeneralRe: List view column header name Pin
arun_pk27-Apr-10 2:51
arun_pk27-Apr-10 2:51 
GeneralRe: List view column header name Pin
Code-o-mat27-Apr-10 2:54
Code-o-mat27-Apr-10 2:54 
QuestionSize of Date/TimePicker Pin
Xerantes26-Apr-10 23:55
Xerantes26-Apr-10 23:55 
QuestionRe: Size of Date/TimePicker Pin
David Crow27-Apr-10 2:51
David Crow27-Apr-10 2:51 
AnswerRe: Size of Date/TimePicker Pin
Xerantes27-Apr-10 3:29
Xerantes27-Apr-10 3:29 

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.