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

C / C++ / MFC

 
GeneralRe: C, VB.net, MySql Pin
Code-o-mat31-Mar-12 23:54
Code-o-mat31-Mar-12 23:54 
QuestionAbout the screen shot is black or desktop. Pin
wangningyu31-Mar-12 21:36
wangningyu31-Mar-12 21:36 
QuestionWhat WM_??? does "ShowWindow" actually call and send Pin
Stan the man31-Mar-12 5:40
Stan the man31-Mar-12 5:40 
AnswerRe: What WM_??? does "ShowWindow" actually call and send Pin
Richard MacCutchan31-Mar-12 6:10
mveRichard MacCutchan31-Mar-12 6:10 
AnswerRe: What WM_??? does "ShowWindow" actually call and send Pin
Code-o-mat31-Mar-12 11:36
Code-o-mat31-Mar-12 11:36 
GeneralRe: What WM_??? does "ShowWindow" actually call and send Pin
Stan the man31-Mar-12 13:55
Stan the man31-Mar-12 13:55 
Questionwhy boost define this struct ? [solved] Pin
yu-jian30-Mar-12 21:05
yu-jian30-Mar-12 21:05 
AnswerRe: why boost define this struct ? Pin
Mohibur Rashid30-Mar-12 22:01
professionalMohibur Rashid30-Mar-12 22:01 
Its a simple way to tell the compiler that a structure exists. Just like we define function. In case of function we define the function name in the header file and write the body in the source file. but in case of struct the situation is little different.
here is an example:

C++
//header File a
struct A
{
 int a, b;
 struct B *Point_to_B;
}
//header File B 
struct B
{
 int a;
 int b;
 struct A *Point_to_A;
} 


in the above example you will found a trouble. The trouble is including header file. No matter how you organize either struct A or struct B will be undefined. So if you do just like below it will solve your problem

C++
//header File a
struct A;
struct A
{
 int a, b;
 struct B *Point_to_B;
}
//header File B
struct A;
struct B
{
 int a;
 int b;
 struct A *Point_to_A;
}

GeneralRe: why boost define this struct ? Pin
Code-o-mat30-Mar-12 22:24
Code-o-mat30-Mar-12 22:24 
AnswerRe: why boost define this struct ? Pin
Code-o-mat30-Mar-12 22:22
Code-o-mat30-Mar-12 22:22 
GeneralRe: why boost define this struct ? Pin
Nelek1-Apr-12 8:57
protectorNelek1-Apr-12 8:57 
GeneralRe: why boost define this struct ? Pin
Code-o-mat1-Apr-12 10:22
Code-o-mat1-Apr-12 10:22 
GeneralRe: why boost define this struct ? Pin
yu-jian2-Apr-12 6:40
yu-jian2-Apr-12 6:40 
GeneralRe: why boost define this struct ? Pin
Code-o-mat2-Apr-12 6:44
Code-o-mat2-Apr-12 6:44 
QuestionDateTime::ParseExact Pin
Mike Certini30-Mar-12 11:38
Mike Certini30-Mar-12 11:38 
QuestionRe: DateTime::ParseExact Pin
Code-o-mat30-Mar-12 23:17
Code-o-mat30-Mar-12 23:17 
AnswerRe: DateTime::ParseExact Pin
Richard MacCutchan30-Mar-12 23:23
mveRichard MacCutchan30-Mar-12 23:23 
SuggestionRe: DateTime::ParseExact Pin
David Crow31-Mar-12 4:04
David Crow31-Mar-12 4:04 
QuestionDisabling USB ports Pin
softwaremonkey30-Mar-12 6:39
softwaremonkey30-Mar-12 6:39 
AnswerRe: Disabling USB ports Pin
David Crow30-Mar-12 7:02
David Crow30-Mar-12 7:02 
GeneralRe: Disabling USB ports Pin
softwaremonkey30-Mar-12 8:07
softwaremonkey30-Mar-12 8:07 
GeneralRe: Disabling USB ports Pin
David Crow30-Mar-12 9:24
David Crow30-Mar-12 9:24 
QuestionPassing std:: or boost::shared_ptr as a reference to a function Pin
AlexZakharenko29-Mar-12 23:58
AlexZakharenko29-Mar-12 23:58 
QuestionHermite Curve Pin
002comp29-Mar-12 20:25
002comp29-Mar-12 20:25 
AnswerRe: Hermite Curve Pin
Richard MacCutchan29-Mar-12 22:25
mveRichard MacCutchan29-Mar-12 22: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.