Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Debug Assertion Failed Pin
Jonathan [Darka]10-Jul-06 8:33
professionalJonathan [Darka]10-Jul-06 8:33 
QuestionAPI in VCE 2005 Pin
giddy_guitarist9-Jul-06 21:41
giddy_guitarist9-Jul-06 21:41 
AnswerRe: API in VCE 2005 [modified] Pin
Sarath C9-Jul-06 21:51
Sarath C9-Jul-06 21:51 
GeneralRe: API in VCE 2005 Pin
giddy_guitarist10-Jul-06 0:49
giddy_guitarist10-Jul-06 0:49 
GeneralRe: API in VCE 2005 [modified] Pin
Sarath C10-Jul-06 1:41
Sarath C10-Jul-06 1:41 
GeneralRe: API in VCE 2005 Pin
giddy_guitarist10-Jul-06 6:38
giddy_guitarist10-Jul-06 6:38 
GeneralRe: API in VCE 2005 Pin
giddy_guitarist31-Mar-07 5:18
giddy_guitarist31-Mar-07 5:18 
QuestionHow to get data from a database into a control of property page Pin
vc++_fragrance9-Jul-06 20:49
vc++_fragrance9-Jul-06 20:49 
Hi,
These r the steps I followed and created the project.

I have created a msaccess database with two tables employee and department.
Created a UserDsn in Administrative (odbc)tools and given the name SampleDB.

1)started visualstudiodeveloper6.0.
New->MFC Appwizard (exe)->ODBCSample->OK
2)Single document ->Next
3)Database view without filesupport->DataSoruce->ODBC->SampleDB->employee->Next->Deselected printing and printpriview->Next->Next->Selected Cview->Finish->OK.
4)Insert->Resource->Dialog->New
5)changed th caption to Data entry and ID to IDD_DATAENTRY and changed properties styles as child and thin.Deselected the systemmenu.
6)Added three static texts and three Edit boxes named as EMPNAME,EMPID,SALARY.
7)Activated the classwizard and added new class CdataEntryDlg ok.Then manually I changed the CDialog to CPropertyPage in DataEntryDlg.h and DataEntryDlg.cpp
7)Inserted new dialog resuorce and changed the properties to child and thin and given the name List and ID to IDD_LIST.
8)Dragged three static texts and editboxes
9)Activated classwizard and given the name CListDlg and Base class as CpropertyPage.
10)Then added new class named CPropSheet.
11)In the resources editor expand menu and double click on IDR_Main menu and in the Help menu I added psheet and activated classwizard and added function.to the MainFrm.cpp
12)In that function added body as
void CMainFrame::OnHelpPsheet()
{
CPropSheet psheet("sheet");
CDataEntryDlg dlg;
CListDlg Ldlg;

psheet.AddPage(&dlg);
psheet.AddPage(&Ldlg);
psheet.DoModal();
}
And included the header files #include “PropSheet.h”
#include “DataEntryDlg.h”
#include “ListDlg.h”
13)Insert new resource ->add new class named as CEmpSet (base class Crecordset) and OK.
Selected ODBC as SampleDB(snapshot) then list of table names displayed and selected employee and then OK.

14)again goes to DataEntry dialog and activated the classwizard.
15)And chosen the class info propertypage and selected the foreign class as CEmpSet and added variable m_pSet then OK.
16)Again moved to DataEntry dialog and activated classwizard and mapped the fields .
17) I included EmpSet.h in DataEntryDlg.h file.

Now I compiled successfully and when executing I got assertion failure.
Please can U say what is the wrong with me.

If I comment out the DDX mechanism in the EmpSet.cpp file then the Propertysheet will be created without any values.

Thank u.
Tejaswini.


Tejaswini
Questionhow to find blocked ports in a system ? Pin
jalsa G9-Jul-06 20:46
jalsa G9-Jul-06 20:46 
AnswerRe: how to find blocked ports in a system ? Pin
ThatsAlok9-Jul-06 21:02
ThatsAlok9-Jul-06 21:02 
QuestionHow to diable ok button of property sheet Pin
jadhav1239-Jul-06 20:36
jadhav1239-Jul-06 20:36 
AnswerRe: How to diable ok button of property sheet Pin
o.sanchez9-Jul-06 20:52
o.sanchez9-Jul-06 20:52 
GeneralRe: How to diable ok button of property sheet Pin
Naveen9-Jul-06 20:54
Naveen9-Jul-06 20:54 
GeneralRe: How to diable ok button of property sheet Pin
o.sanchez9-Jul-06 21:03
o.sanchez9-Jul-06 21:03 
AnswerRe: How to diable ok button of property sheet Pin
Naveen9-Jul-06 20:53
Naveen9-Jul-06 20:53 
AnswerRe: How to diable ok button of property sheet Pin
ThatsAlok9-Jul-06 21:01
ThatsAlok9-Jul-06 21:01 
QuestionUsing check box in Dialog Pin
sdhtyjnniutnbjnhbghb9-Jul-06 20:18
sdhtyjnniutnbjnhbghb9-Jul-06 20:18 
AnswerRe: Using check box in Dialog [modified] Pin
Naveen9-Jul-06 20:27
Naveen9-Jul-06 20:27 
AnswerRe: Using check box in Dialog Pin
Hamid_RT9-Jul-06 20:27
Hamid_RT9-Jul-06 20:27 
AnswerRe: Using check box in Dialog Pin
FarPointer9-Jul-06 20:48
FarPointer9-Jul-06 20:48 
QuestionActivating global function Pin
AlonYair9-Jul-06 20:05
AlonYair9-Jul-06 20:05 
AnswerRe: Activating global function Pin
Viorel.9-Jul-06 22:29
Viorel.9-Jul-06 22:29 
GeneralRe: Activating global function Pin
AlonYair9-Jul-06 23:07
AlonYair9-Jul-06 23:07 
GeneralRe: Activating global function Pin
Viorel.9-Jul-06 23:40
Viorel.9-Jul-06 23:40 
GeneralRe: Activating global function Pin
AlonYair10-Jul-06 3:22
AlonYair10-Jul-06 3:22 

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.