Click here to Skip to main content
15,924,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the device properties... Pin
xretge4643669-Oct-05 7:40
sussxretge4643669-Oct-05 7:40 
Generalit's not part of the visual C++ documentation... Pin
Anonymous9-Oct-05 7:57
Anonymous9-Oct-05 7:57 
AnswerRe: How to get the device properties... Pin
Jose Lamas Rios9-Oct-05 17:08
Jose Lamas Rios9-Oct-05 17:08 
GeneralRe: another thing... Pin
Anonymous10-Oct-05 1:40
Anonymous10-Oct-05 1:40 
QuestionCalling C++ DLLs from VC++ and VB - Part 1 Pin
swatch24689-Oct-05 6:28
swatch24689-Oct-05 6:28 
AnswerRe: Calling C++ DLLs from VC++ and VB - Part 1 Pin
Jose Lamas Rios9-Oct-05 16:49
Jose Lamas Rios9-Oct-05 16:49 
AnswerRe: Calling C++ DLLs from VC++ and VB - Part 1 Pin
oustar9-Oct-05 16:50
oustar9-Oct-05 16:50 
QuestionAccessing CRecordSet through dialog class Pin
heavenode9-Oct-05 5:13
heavenode9-Oct-05 5:13 
i want to create a login dialog box with username and password details stored in MS Access file.

i created a new CRecordSet class :

class CPasswordSet : public CRecordset
{
public:
CPasswordSet(CDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(CPasswordSet)

// Field/Param Data
//{{AFX_FIELD(CPasswordSet, CRecordset)
long m_ID;
CString m_Username;
CString m_Password;
//}}AFX_FIELD


// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPasswordSet)
public:
virtual CString GetDefaultConnect(); // Default connection string
virtual CString GetDefaultSQL(); // Default SQL for Recordset
virtual void DoFieldExchange(CFieldExchange* pFX); // RFX support
//}}AFX_VIRTUAL

// Implementation
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};



and a CDialog class as below with a CPasswordSet public variable m_passwordSet:

void CLoginDlg::OnBlogin()
{
CString str;
str = m_passwordSet.m_Username;
MessageBox (str); //i get nothing, empty string

m_passwordSet.Edit() //get error with this line
//debug assertion dbcore.cpp line 1620

}


may i know what's wrong??
AnswerRe: Accessing CRecordSet through dialog class Pin
Jose Lamas Rios9-Oct-05 17:20
Jose Lamas Rios9-Oct-05 17:20 
QuestionAfxBeginThread Pin
LiYS9-Oct-05 4:40
LiYS9-Oct-05 4:40 
AnswerRe: AfxBeginThread Pin
PJ Arends9-Oct-05 9:22
professionalPJ Arends9-Oct-05 9:22 
QuestionProblem with CComboBox Pin
Mateusz Karbowy9-Oct-05 1:52
Mateusz Karbowy9-Oct-05 1:52 
AnswerRe: Problem with CComboBox Pin
Gary R. Wheeler9-Oct-05 2:32
Gary R. Wheeler9-Oct-05 2:32 
GeneralRe: Problem with CComboBox Pin
Mateusz Karbowy9-Oct-05 6:03
Mateusz Karbowy9-Oct-05 6:03 
QuestionProgramatically resise a Dialog and reoganize its controls Pin
Member 12423739-Oct-05 1:10
Member 12423739-Oct-05 1:10 
AnswerRe: Programatically resise a Dialog and reoganize its controls Pin
Christian Graus9-Oct-05 2:15
protectorChristian Graus9-Oct-05 2:15 
GeneralRe: Programatically resise a Dialog and reoganize its controls Pin
Qadddd10-Oct-05 7:19
Qadddd10-Oct-05 7:19 
AnswerRe: Programatically resise a Dialog and reoganize its controls Pin
eli150219799-Oct-05 3:35
eli150219799-Oct-05 3:35 
GeneralRe: Programatically resise a Dialog and reoganize its controls Pin
Qadddd10-Oct-05 7:26
Qadddd10-Oct-05 7:26 
GeneralRe: Programatically resise a Dialog and reoganize its controls Pin
eli1502197910-Oct-05 19:07
eli1502197910-Oct-05 19:07 
QuestionHow to repaint a selected row Pin
study.sourabh9-Oct-05 1:07
study.sourabh9-Oct-05 1:07 
AnswerRe: How to repaint a selected row Pin
Jack Puppy9-Oct-05 1:15
Jack Puppy9-Oct-05 1:15 
Questionmake computers play checkers Pin
Member 22984578-Oct-05 22:40
Member 22984578-Oct-05 22:40 
AnswerRe: make computers play checkers Pin
Gary R. Wheeler9-Oct-05 2:36
Gary R. Wheeler9-Oct-05 2:36 
GeneralRe: make computers play checkers Pin
Anonymous10-Oct-05 0:54
Anonymous10-Oct-05 0:54 

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.