Click here to Skip to main content
15,920,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Key Logger Pin
ThatsAlok16-May-07 20:53
ThatsAlok16-May-07 20:53 
QuestionInteresting run-time error in a simple class definition Pin
sawerr9-May-07 2:31
sawerr9-May-07 2:31 
AnswerRe: Interesting run-time error in a simple class definition Pin
toxcct9-May-07 2:43
toxcct9-May-07 2:43 
GeneralRe: Interesting run-time error in a simple class definition Pin
sawerr9-May-07 2:56
sawerr9-May-07 2:56 
GeneralRe: Interesting run-time error in a simple class definition Pin
toxcct9-May-07 3:19
toxcct9-May-07 3:19 
GeneralRe: Interesting run-time error in a simple class definition Pin
sawerr9-May-07 3:14
sawerr9-May-07 3:14 
GeneralRe: Interesting run-time error in a simple class definition Pin
Nelek9-May-07 4:12
protectorNelek9-May-07 4:12 
AnswerRe: Interesting run-time error in a simple class definition Pin
Mark Salsbery9-May-07 4:54
Mark Salsbery9-May-07 4:54 
The debug runtime is warning you that you are about to use an uninitialized object.
The member variables of the MyClass object are not initialized. You need to provide a constructor
or initialize them some other way to prevent the warning.

Note that you can continue running after the warning.
// Example with a constructor
 
class MyClass
{
private:
   int d;
public:
   int x;
 
   MyClass() {d = 0; x = 5;}
};
 
int _tmain(int argc, _TCHAR* argv[])
{
   MyClass a;
   cout << a.x; // no runtime error
 
   int x;
   cin >> x;
 
   return 0;
}




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

QuestionHow to find out users logged in from Network ? Pin
erajsri9-May-07 2:17
erajsri9-May-07 2:17 
AnswerRe: How to find out users logged in from Network ? Pin
David Crow9-May-07 2:28
David Crow9-May-07 2:28 
GeneralRe: How to find out users logged in from Network ? Pin
erajsri9-May-07 17:13
erajsri9-May-07 17:13 
GeneralRe: How to find out users logged in from Network ? Pin
David Crow10-May-07 1:41
David Crow10-May-07 1:41 
AnswerRe: How to find out users logged in from Network ? Pin
grc41210-May-07 21:00
grc41210-May-07 21:00 
Questiondirectshow image overlay filter Pin
rjkg9-May-07 2:09
rjkg9-May-07 2:09 
QuestionRe: directshow image overlay filter Pin
Mark Salsbery9-May-07 4:58
Mark Salsbery9-May-07 4:58 
AnswerRe: directshow image overlay filter Pin
rjkg9-May-07 19:00
rjkg9-May-07 19:00 
GeneralRe: directshow image overlay filter Pin
Mark Salsbery10-May-07 5:13
Mark Salsbery10-May-07 5:13 
Questionsetup files in visualstudio 2005 Pin
saisp9-May-07 1:49
saisp9-May-07 1:49 
QuestionCombo Box Help Pin
Jerry Burns9-May-07 1:49
Jerry Burns9-May-07 1:49 
QuestionRe: Combo Box Help Pin
David Crow9-May-07 2:29
David Crow9-May-07 2:29 
AnswerRe: Combo Box Help Pin
Jerry Burns9-May-07 2:37
Jerry Burns9-May-07 2:37 
QuestionRe: Combo Box Help Pin
David Crow9-May-07 2:58
David Crow9-May-07 2:58 
AnswerRe: Combo Box Help Pin
Jerry Burns9-May-07 3:47
Jerry Burns9-May-07 3:47 
GeneralRe: Combo Box Help Pin
David Crow9-May-07 3:51
David Crow9-May-07 3:51 
QuestionSafely close UI threads when program exit Pin
GameProfessor9-May-07 1:37
GameProfessor9-May-07 1:37 

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.