error c3767

My program was running fine. Suddently i have this error and i dont know how to fix it.Anyone please help me!!! it says candidate function not accessible.

private: System::Void btnPlay_Click(System::Object^ sender, System::EventArgs^ e)
{
String^ name;
String^ accNumber;
accNumber=txtBoxPassword-> Text;
error is here----> Blackjack^ play = gcnew Blackjack;
play->playerName= name;
play->userNumber = accNumber;
play-> Show();

}
I'm very bad with whatever this is called...Microsoft's C++ thingy, but I guess it might be you don't have a default constructor for a Blackjack object?
closed account (z05DSL3A)
Try:
1
2
3
4
5
6
7
8
9
10
private: System::Void btnPlay_Click(System::Object^ sender, System::EventArgs^ e) 
{
    String^ name;
    String^ accNumber;
    accNumber=txtBoxPassword-> Text;
    Blackjack^ play = gcnew Blackjack();
    play->playerName= name;
    play->userNumber = accNumber;
    play-> Show();
}
Topic archived. No new replies allowed.