Re: Need help understanding this line Programming Software Development by Ancient Dragon … dialog class. serverDlg is a class that was derived from CDialog. So if m_pDlg was declared like this: [icode…]CDialog* m_pDlg;[/icode] then later assigned to a pointer of type … the line you are confused about is typecasting m_pDlg from CDialog to serverDlg so that it can call the OnReceive() method… Re: VisualC++ Exit Button. Programming Software Development by Nandomo CDialog::CloseWindow(); Calculator_Dialog C; C.CloseWindow(); Among the things I've tried. Only have that one dialog. CDialog - Assertion failure Programming Software Development by maxbug …, converted, and displayed in the View. I have implemented a CDialog, launched from an entry on the main menu, in order… permit the setting of data display options. By including the CDialog's header in the Doc, I can successfully access the… why can't we call PreCreateWindow from Cdialog derived class? Programming Software Development by thammalatha … one help me , can we call precreatewindow() function from the CDialog class? if, No what is the exact reason? thanks in… WinMerge MFC - Access CEditView from CDialog Programming Software Development by greatman05 … instance of CMergeEditView and have its member functions usable by CDialog? Re: WinMerge MFC - Access CEditView from CDialog Programming Software Development by Ancient Dragon If you are using CDocument then you can get a handle to CView derived classes from there -- CDocument conbtains a linked list of CView class objects. From CDialog you will want to get the handle to CDocument from CWinApp (I don't recall the exact details as it's only been about 10 years since I worked with MFC) new to windows apps Programming Software Development by blackdove …// CHexcalcDlg dialog CHexcalcDlg::CHexcalcDlg(CWnd* pParent /*=NULL*/) : CDialog(CHexcalcDlg::IDD, pParent) { //{{AFX_DATA_INIT(CHexcalcDlg) m_op1 = … // CHexcalcDlg message handlers BOOL CHexcalcDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item… Access violation writing location 0x00000010 Programming Software Development by cppgangster …isDialog(); // CConnectDialog dialog IMPLEMENT_DYNAMIC(CConnectDialog, CDialog) CConnectDialog::CConnectDialog(CWnd* pParent) : CDialog(CConnectDialog::IDD, pParent) { } CConnectDialog::~…(WM_ABORT_ACCEPT_CONNECTIONS); WaitForSingleObject(m_pThread->m_hThread,INFINITE); CDialog::OnOK(); } void CConnectDialog::OnCancel() { … dll problem,help me:) Programming Software Development by rxgmoral ….lib") #include "ListCtrl.h" class TestDlg : public CDialog { DECLARE_DYNAMIC(TestDlg) public: TestDlg(CWnd* pParent = NULL); // standard constructor …quot; #include "TestDlg.h" IMPLEMENT_DYNAMIC(TestDlg, CDialog) TestDlg::TestDlg(CWnd* pParent /*=NULL*/) : CDialog(TestDlg::IDD, pParent) {} TestDlg::~TestDlg() {} void … Need help understanding this line Programming Software Development by LevyDee … OnReceieve(port), is a function that I created in my CDialog class. ((serverDlg*)m_pDlg) is the part I don't get… able to call a function that is declared in my CDialog class(OnReceieve(port)). serverDlg is the name of my… CDialog class and m_pDlg is a pointer to a CDialog object if that helps. Thanks. Re: Need help understanding this line Programming Software Development by JasonHippy …eventuality that m_pDlg // could not successfully be cast from CDialog* to serverDlg* [/CODE] If there's any possibility… that m_pDlg could point to a different CDialog based class, using dynamic_cast would be critical to… to be a serverDlg pointer rather than a CDialog pointer, which would then completely negate the need… MFC Illegal member initialization Programming Software Development by dyingatmidnight … I have [code] CMFCSampleeDlg::CMFCSampleeDlg(CWnd* pParent /*=NULL*/) : CDialog(CMFCSampleeDlg::IDD, pParent) , m_strFile(_T("")) ////////////////////// //MY… for the MFCSample application [code] BOOL CMFCSampleDlg::OnInitDialog() { CDialog::OnInitDialog(); //[omitted code] //TODO: Add extra initialization here … VB6 Save Dialog Programming Software Development by dmatos …quot;Exportar Archivo" cDialog.Filter = "Excel File (*.XLS)" cDialog.FileName = "Reporte.XLS" With cDialog .Filter = "…Excel Files (*.xls)|*.xls" cDialog.ShowSave End With… Visual C++, Database connection, please help Programming Software Development by emilyp …out of edit boxes. Here is my Code: [code=cpp] CDialog::EnableConnections(); ::CoInitialize(NULL); _ConnectionPtr con; con.CreateInstance(__uuidof(Connection)); …vVal); pRs->Close(); con->Close(); CoUninitialize(); CDialog::OnOK(); } void CNew::OnCancel() { CDialog::OnOK(); [/code] But I get this error: … Re: Visual C++, Database connection, please help Programming Software Development by iravishekhar …out of edit boxes. Here is my Code: [code=cpp] CDialog::EnableConnections(); ::CoInitialize(NULL); _ConnectionPtr con; con.CreateInstance(__uuidof(Connection)); …vVal); pRs->Close(); con->Close(); CoUninitialize(); CDialog::OnOK(); } void CNew::OnCancel() { CDialog::OnOK(); [/code] But I get this error: … Re: Need help understanding this line Programming Software Development by GDICommander The deference operator is used because m_pDlg is a pointer and it needs to be dereferenced to access the object at this location. If the OnReceive method belongs to CDialog and m_pDlg is a CDialog, then you don't need to cast to ServerDlg. Re: VB6 Save Dialog Programming Software Development by BitBlt Can we assume that cDialog is the name of the common dialog control on your form frmRutaExcel? If so, then the bolded line should read: [CODE]eRuta = frmRutaExcel.[COLOR="Red"]cDialog[/COLOR].FileName [/CODE] Re: Need help understanding this line Programming Software Development by Ancient Dragon The typecast is needed to convert m_pDlg from CDialog to serverDlg. And as ^^^ explained. Re: VB6 Save Dialog Programming Software Development by debasisdas You have mistyped the common dialog control name. should be [B]cDialog[/B] not [B]dialog[/B]. changing color of a pushbutton on a dialog box Programming Software Development by rangalo …OnCtlColor(CDC *pdc,CWnd *pwnd,UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pdc,pwnd,nCtlColor); switch(nCtlColor) { case CTLCOLOR_BTN: if(…pdc->SetBkMode(TRANSPARENT); return (HBRUSH)m_hbrush.GetSafeHandle(); default: return CDialog::OnCtlColor(pdc,pwnd,nCtlColor); } return hbr; //return (HBRUSH)m_hbrush.… Re: changing color of a pushbutton on a dialog box Programming Software Development by gobigred …OnCtlColor(CDC *pdc,CWnd *pwnd,UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pdc,pwnd,nCtlColor); switch(nCtlColor) { case CTLCOLOR_BTN: if(…pdc->SetBkMode(TRANSPARENT); return (HBRUSH)m_hbrush.GetSafeHandle(); default: return CDialog::OnCtlColor(pdc,pwnd,nCtlColor); } return hbr; //return (HBRUSH)m_hbrush.… Creating a Tab Control Programming Software Development by rwagnes … [CODE]void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) DDX_Control(pDX, IDC_LOGO_IMAGE…-in version information. BOOL CAboutDlg::OnInitDialog() { CDialog::OnInitDialog(); CString strAppName; m_strTitle = gpNamespaceMgr->GetSuiteProductName… MFC - dynamically resizing a property sheet Programming Software Development by rwagnes …using MFC and C++... I have a dialog of type CDialog containing several objects including a CPropertySheet called m_dlgPropSheet (which …rcSheet ); m_consolePage.ResizePage( rcSheet ); m_databasePage.ResizePage( rcSheet ); m_coreServicesPage.ResizePage( rcSheet ); } CDialog::OnSize(nType, cx, cy); } [/code] The following is my code… This code is showing errors! Programming Software Development by amrith92 …<stdio.h> CCalculatorDialog::CCalculatorDialog() : CDialog( "Calculator" ) { clear(); … ) pDisplay->SetWindowText( m_szEntry ); } BEGIN_MESSAGE_MAP( CCalculatorDialog, CDialog ) ON_COMMAND_RANGE( IDC_ZERO, IDC_NINE, HandleDigitPressed ) ON_COMMAND( IDC_DECPT, HandleDecPointPressed… DDX Programming Software Development by 1manik …my question: [CODE] CReadSRNDlg::CReadSRNDlg(CWnd* pParent /*=NULL*/) : CDialog(CReadSRNDlg::IDD, pParent) { //{{AFX_DATA_INIT(CReadSRNDlg) m_commPort = 0;…= AfxGetApp()->LoadIcon(IDR_MAINFRAME); AfxOleInit(); } [/CODE] [CODE] CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CReadSRNDlg) ....... DDX_Radio(pDX, IDC_RADIO1, m_commPort… Destroying a CWnd affects another one Programming Software Development by ktsangop … am getting an -1 return on a following CDialog:: DoModal() function call. The CDialog has nothing to do with the previous mentioned… view object in dialog when can be used Programming Software Development by sujan.dasmahapa …] CMyDialog::CMyDialog(CWnd* pParent /*=NULL*/, CString filename) : CDialog(CDlgsViewDlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME… { m_pView->loadProfile(filename); } BOOL CMyDialog::OnInitDialog() { CDialog::OnInitDialog(); m_pView = new CMyView(); ShowWindow(SW_SHOWMAXIMIZED); CRect clientRect;… CTabCtrl - Can Not Get Data From Controls Programming Software Development by muze …: Add your control notification handler code here CString str; CDialog *window= (CDialog*)&m_tabMyTabCtrl; //CMyTabCtrl m_tabMyTabCtrl: class derived from CTabCtrl CTabOne *tab… MFC Compiling Error Question Programming Software Development by raevin … once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CDlg dialog class CDlg : public CDialog { // Construction public: CDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data… Export Class in DLl Programming Software Development by zare Hello friend I have a question.I have a dll that use a class that derived from CDialog. how i can export class so that i can access of its member function in seprate application?