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

C / C++ / MFC

 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 23:47
Franken15-Nov-05 23:47 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow16-Nov-05 3:10
David Crow16-Nov-05 3:10 
Questionerror LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 6:53
celllllllll15-Nov-05 6:53 
AnswerRe: error LNK2001: unresolved external symbol Pin
David Crow15-Nov-05 7:20
David Crow15-Nov-05 7:20 
GeneralRe: error LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 7:31
celllllllll15-Nov-05 7:31 
GeneralRe: error LNK2001: unresolved external symbol Pin
tranglt15-Nov-05 18:55
tranglt15-Nov-05 18:55 
GeneralRe: error LNK2001: unresolved external symbol Pin
sunit515-Nov-05 20:18
sunit515-Nov-05 20:18 
Questiondatabase schema design question Pin
ppp00115-Nov-05 6:43
ppp00115-Nov-05 6:43 
Hi,

I have two objects, both point to each other in OO.
e.g.
Class Father
{
private int id; //id of father
private Son son;
}
Class Son
{
private int id; //id of Son
private Father father;
}

so I need to have two tables in database as follow,

Table Father :
(id, SonId)

Table Son :
(id, FatherId)

The problem is, should I eliminate the one of the reference in one of the table, e.g.

Table Father :
(id)

Table Son :
(id, FatherId)

so I just have the fatherID in the son table.
But if I remove the sonID from the father table,
I need to join the two tables when I retrieve fathers
from the father table.
So what are the pros and cons of the two schema design ?

Thanks



AnswerRe: database schema design question Pin
Mayur Mahajan15-Nov-05 14:36
Mayur Mahajan15-Nov-05 14:36 
Questiondo not show MFC Window Pin
inf00915-Nov-05 6:30
inf00915-Nov-05 6:30 
AnswerRe: do not show MFC Window Pin
David Crow15-Nov-05 7:18
David Crow15-Nov-05 7:18 
AnswerRe: do not show MFC Window Pin
__yb15-Nov-05 10:56
__yb15-Nov-05 10:56 
GeneralRe: do not show MFC Window Pin
inf00916-Nov-05 6:13
inf00916-Nov-05 6:13 
QuestionDrawText !! Pin
hatemtaleb15-Nov-05 6:24
hatemtaleb15-Nov-05 6:24 
AnswerRe: DrawText !! Pin
Mike Dimmick15-Nov-05 6:30
Mike Dimmick15-Nov-05 6:30 
AnswerRe: DrawText !! Pin
mikanu15-Nov-05 6:31
mikanu15-Nov-05 6:31 
GeneralRe: DrawText !! Pin
hatemtaleb15-Nov-05 7:09
hatemtaleb15-Nov-05 7:09 
QuestionVS6: Enabling breakpoints per thread Pin
Chintoo72315-Nov-05 6:04
Chintoo72315-Nov-05 6:04 
AnswerRe: VS6: Enabling breakpoints per thread Pin
David Crow15-Nov-05 7:22
David Crow15-Nov-05 7:22 
QuestionLNK2001 error Pin
yongwpi15-Nov-05 4:50
yongwpi15-Nov-05 4:50 
QuestionRe: LNK2001 error Pin
David Crow15-Nov-05 4:55
David Crow15-Nov-05 4:55 
AnswerRe: LNK2001 error Pin
Michael Dunn15-Nov-05 8:25
sitebuilderMichael Dunn15-Nov-05 8:25 
Questionhow to retrieve a HANDLE from a pointer? Pin
ewighell15-Nov-05 4:49
ewighell15-Nov-05 4:49 
QuestionRe: how to retrieve a HANDLE from a pointer? Pin
David Crow15-Nov-05 4:57
David Crow15-Nov-05 4:57 
AnswerRe: how to retrieve a HANDLE from a pointer? Pin
ewighell15-Nov-05 15:44
ewighell15-Nov-05 15:44 

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.