Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError message in MS visual c++ 6.0 Pin
Anderson Jogie12-Oct-09 11:25
Anderson Jogie12-Oct-09 11:25 
AnswerRe: Error message in MS visual c++ 6.0 Pin
transoft12-Oct-09 11:28
transoft12-Oct-09 11:28 
Questionhelp needed for solving programming puzzles! Pin
nowrocktheworld12-Oct-09 8:26
nowrocktheworld12-Oct-09 8:26 
AnswerRe: help needed for solving programming puzzles! Pin
Baltoro12-Oct-09 11:12
Baltoro12-Oct-09 11:12 
AnswerRe: help needed for solving programming puzzles! Pin
santhosh-padamatinti12-Oct-09 18:35
santhosh-padamatinti12-Oct-09 18:35 
QuestionHow to use Database in MFC Dialog based? Pin
kokilag12-Oct-09 8:18
kokilag12-Oct-09 8:18 
AnswerRe: How to use Database in MFC Dialog based? Pin
«_Superman_»12-Oct-09 8:55
professional«_Superman_»12-Oct-09 8:55 
AnswerRe: How to use Database in MFC Dialog based? Pin
Ozer Karaagac12-Oct-09 16:49
professionalOzer Karaagac12-Oct-09 16:49 
For DAO (MS-Access) classes, you should add following line to "stdafx.h" file.
<br />
#include <afxdao.h> // or afxdb.h for ODBC databases.<br />

Then, you might use CDaoDatabase/CDaoRecordset classes like below.
CDaoDatabase db;
db.Open(pszFileName, FALSE, FALSE, pszConnect);

CDaoRecordset rs(&db);
rs.Open(dbOpenSnapshot, pszSQL, dbReadOnly | dbForwardOnly);

//...

rs.Close();
db.Close();

Because you can not benefit from Doc/View support in a dialog, you can not use CRecordView (or CDaoRecordView for DAO) class within this type of project. If you need a "form like behavior" in a dialog, you need to implement yourself (or find an already implemented one, if any) by setting a connection between recordset and dialog (or its controls) with or without a document class.
QuestionHow to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 5:31
janaswamy uday12-Oct-09 5:31 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 5:39
David Crow12-Oct-09 5:39 
AnswerRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 7:44
janaswamy uday12-Oct-09 7:44 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 7:47
David Crow12-Oct-09 7:47 
AnswerRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 7:50
janaswamy uday12-Oct-09 7:50 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 7:53
David Crow12-Oct-09 7:53 
AnswerRe: How to Insert a record using SQLExecute. [modified] Pin
transoft12-Oct-09 11:09
transoft12-Oct-09 11:09 
AnswerRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 15:05
professionalOzer Karaagac12-Oct-09 15:05 
GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 16:40
janaswamy uday12-Oct-09 16:40 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 17:59
professionalOzer Karaagac12-Oct-09 17:59 
GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday13-Oct-09 4:56
janaswamy uday13-Oct-09 4:56 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac13-Oct-09 10:44
professionalOzer Karaagac13-Oct-09 10:44 
QuestionHow to get account expire value from Active Directory Pin
raja 412-Oct-09 2:47
raja 412-Oct-09 2:47 
AnswerRe: How to get account expire value from Active Directory Pin
CPallini12-Oct-09 3:04
mveCPallini12-Oct-09 3:04 
AnswerRe: How to get account expire value from Active Directory Pin
Randor 12-Oct-09 3:10
professional Randor 12-Oct-09 3:10 
QuestionSendMessage Aplication beetween switch xp users [modified] Pin
maulik_patel12-Oct-09 2:30
maulik_patel12-Oct-09 2:30 
AnswerRe: SendMessage Aplication beetween switch xp users Pin
«_Superman_»12-Oct-09 7:51
professional«_Superman_»12-Oct-09 7:51 

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.