EnterpriseMobileToday WindowsMobileToday

Home | News | Reviews | Features | Tips | Mobile Product Watch | Forums
 WindowsMobileToday: Message Boards: Developers: MFC And ActiveX in Visual C++ (Archived)

MFC And ActiveX in Visual C++
(Archived Message)

Read Replies | Start New Thread | Developers Board Index

Developers Board (Del Msg)
Title: MFC And ActiveX in Visual C++
Posted By: John Tamburo
E-mail: johntam@mbfs.com
Date: 12/10/2001 at 11:57:58

Recent Posts
Secure Digital Card Modem
eBooks not being found on
Bluetooth phones
Ipaq screen iput problem
Wireless To Wireless
Outlook calendar plugin?
Options for new iPaq buye
Pocket Inbox
Help with Buying a PDA
Ipaq 1945 or 2215 with Na
More ...  
 
Message:

Using VC++ 6.0 to make a MFC app with the following:

I have a CDialog Descendant with an ActiveX control embedded. This Dialog stays hidden 100% of the time, and the control is used for security validation.

In my CApplication descendant, I declare:

CSecDialog SecurityDlg;

When starting up, I check the securityDlg's ActiveXControl properties to know if security is OK. If not, I disp a warning dlg and let the user re-enter the security code; if not entered properly, I exit immediately.

Now, later on, I need to check and/or modify security codes from other dialogs.

So, I try to access by declaring:

extern cMyApp theApp;

and accessing as follows:

if (cMyApp.SecurityDlg.Control1.IsSecurityOK)
{
(do stuff)
}

Compiles and links without a problem, but I am getting debug assert errors on the if statement or any other statement accessing a method or property of the ActiveX Control. If I examine at runtime prior to executing the code above, the pointer to the securityDlg is OK, and it looks as if the ActiveX is OK.

So I am stumped.

Can anyone help?

Desperate but thankful for help,
John





Is this message offensive or in violation of this board's policies? If so report it by clicking here.

Message Thread

For Additional Information:

Latest Articles:

  • Windows Mobile 7 Due Late Next Year?
  • Gartner Says Mobile Device Sales Flat in 2009
  • AT&T Ready to Give a Little on Net Neutrality?
  • CTIA Looks Ahead on 2010 Agenda Plans
  • Cisco Closes $2.9B Starent Acquistion
  • Verizon Fortifies Data Networks. iPhone on Tap?
  • Verizon Wireless Defends Early Termination Fees
  • iPhone Reigns Supreme in Mobile Use
  • T-Mobile Planning Free Windows Mobile 6.5 Updates for HTC Handsets?
  • Keep Lithium Batteries Out of Checked Bags When Flying
  • Latest Downloads:

  • Swift Comm Manager 1.0 (Pocket PC)
  • System Resources At Glance 1.0 (Pocket PC)
  • Satellite Clock 1.0 (Pocket PC)
  • Pop-up Task Manager 1.0 (Pocket PC)
  • Pocket Theme Editor 2 (Pocket PC)
  • Hi-Launcher 1.1 (Pocket PC)
  • Handy Phone Dialer 1.0 (Pocket PC)
  • Cliquick: Fastest, most powerful keyboard yet! Finger-friendly keys More screen space, 120 languages 4,0 (Pocket PC)
  • Handy Task Manager 1.0 (Pocket PC)
  • Alt+Tab Task Switcher 1.0 (Pocket PC)





  • The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers