Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Project Management, long compile-times Pin
«_Superman_»11-Feb-10 17:32
professional«_Superman_»11-Feb-10 17:32 
AnswerRe: Project Management, long compile-times Pin
Chris Losinger11-Feb-10 17:46
professionalChris Losinger11-Feb-10 17:46 
AnswerRe: Project Management, long compile-times Pin
Stuart Dootson11-Feb-10 21:40
professionalStuart Dootson11-Feb-10 21:40 
QuestionStatic Member Initialization Issue [Solved] Pin
Skippums11-Feb-10 7:56
Skippums11-Feb-10 7:56 
AnswerRe: Static Member Initialization Issue Pin
Stuart Dootson11-Feb-10 8:45
professionalStuart Dootson11-Feb-10 8:45 
GeneralRe: Static Member Initialization Issue Pin
Skippums11-Feb-10 9:23
Skippums11-Feb-10 9:23 
GeneralRe: Static Member Initialization Issue Pin
Stuart Dootson11-Feb-10 9:37
professionalStuart Dootson11-Feb-10 9:37 
GeneralRe: Static Member Initialization Issue Pin
Emilio Garavaglia11-Feb-10 21:04
Emilio Garavaglia11-Feb-10 21:04 
GeneralRe: Static Member Initialization Issue Pin
Skippums11-Feb-10 9:45
Skippums11-Feb-10 9:45 
GeneralRe: Static Member Initialization Issue Pin
Yannick Le Thanh26-Apr-10 22:10
Yannick Le Thanh26-Apr-10 22:10 
QuestionProper way to add item to ListCtrl Pin
Manmohan2911-Feb-10 7:33
Manmohan2911-Feb-10 7:33 
AnswerRe: Proper way to add item to ListCtrl Pin
Richard Andrew x6411-Feb-10 7:40
professionalRichard Andrew x6411-Feb-10 7:40 
GeneralRe: Proper way to add item to ListCtrl Pin
Manmohan2911-Feb-10 7:48
Manmohan2911-Feb-10 7:48 
AnswerRe: Proper way to add item to ListCtrl Pin
David Crow11-Feb-10 7:49
David Crow11-Feb-10 7:49 
QuestionMemory allocated between two checkpoints by a process Pin
BadJerry11-Feb-10 7:30
BadJerry11-Feb-10 7:30 
QuestionMulti Monitor Configuration in MFC/C++ Pin
krishna Srihsam11-Feb-10 7:22
krishna Srihsam11-Feb-10 7:22 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
Emilio Garavaglia11-Feb-10 21:15
Emilio Garavaglia11-Feb-10 21:15 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
normanS11-Feb-10 22:35
normanS11-Feb-10 22:35 
QuestionNeed to extract non-exported function of DLL Pin
glitteringsound11-Feb-10 7:22
glitteringsound11-Feb-10 7:22 
AnswerRe: Need to extract non-exported function of DLL Pin
Richard MacCutchan11-Feb-10 9:48
mveRichard MacCutchan11-Feb-10 9:48 
AnswerRe: Need to extract non-exported function of DLL Pin
Saurabh.Garg11-Feb-10 17:21
Saurabh.Garg11-Feb-10 17:21 
QuestionC++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 4:12
chan1111-Feb-10 4:12 
AnswerRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
Richard Andrew x6411-Feb-10 7:37
professionalRichard Andrew x6411-Feb-10 7:37 
GeneralRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 8:21
chan1111-Feb-10 8:21 
QuestionDAO - Constraint Syntax Error! Pin
A&Ms11-Feb-10 3:23
A&Ms11-Feb-10 3:23 
Hi I Execute the following sql statement successfully for a Database connected to my CDaoDatabse Object.
CREATE TABLE Scores ( 
	StudentCode Text(9) NOT NULL,
	CourseCode Text(7) NOT NULL,
	SemesterCode Text(3) NOT NULL,
	Score Double
);

CREATE TABLE Courses ( 
	CourseCode Text(7) NOT NULL,
	CourseName Memo NOT NULL,
	CourseTypeID Integer NOT NULL,
	CourseCategoryID Integer NOT NULL
);

ALTER TABLE Scores ADD CONSTRAINT PK_Grades 
	PRIMARY KEY (StudentCode, CourseCode, SemesterCode);

ALTER TABLE Courses ADD CONSTRAINT PK_Courses 
	PRIMARY KEY (CourseCode);

ALTER TABLE Courses
	ADD CONSTRAINT UQ_Courses_CourseCode UNIQUE (CourseCode);

But Finally I Get Error message(Syntax error in CONSTRAINT clause.) on this satement that is at the end of my execution list.
ALTER TABLE Scores ADD CONSTRAINT FK_Scores_Courses 
	FOREIGN KEY (CourseCode) REFERENCES Courses (CourseCode)
ON UPDATE CASCADE;

And I don't know Why

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.