1) How to implement Drag Drop Event for Microsoft FlexGrid Control in VC++.
I want to move the row(s) of FlexGrid Control within a single FlexGrid Control. How it can be done?
2) In my project I am using only Audio Files (e.g. *.wav, etc). So how I can add my own message(/string) in Rt. Click Context Menu of all Audio Files (or all wave files) of my System? Like for BMP file it's context menu shows 1st string as "Preview", while for TEXT file it's context menu shows 1st string as "Open".
I'm migrating code from VC++ 6 to VC++ 2005/(vc++ 8). For this I'm creating a new MFC Project in VC++ 2005 and adding files (just for one module) from the existing project. I'm Using MFC in shared DLL with /clr option.
The code has no compile time errors (although many warnings are there regarding DAO). The code uses DAO to access data. When I run the project the first thing(messagebox) it shows with three buttons Abort, Retry, Ignore:
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.
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.
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
And included the header files #include “PropSheet.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.
I want to create a CheckBox in Dialog in PPC using VC++.
But I can't declare CCheckBox member in Dialog
How could I create a checkbox in dialog??
Any suggestion is useful!! Thanks!!
Last Visit: 9-Aug-20 1:38 Last Update: 9-Aug-20 1:38