PDA Street

Home | News | Reviews | Features | FREE Downloads | Forums | Compare PDA Prices | Compare SmartPhone Prices
 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:

  • Review: WMWiFiRouter -Turns Smartphones into Hotspots
  • 2009: The Year of the Smartphone?
  • Texting & Price Hiking: Does It Matter?
  • Motorola's Year of Job Cuts
  • Smaller Gadgets a Big Theme at CES
  • iPhone & Social Networks:Tech's Survivors in '09
  • RIM Takes Motorola to Court Over Hiring
  • Security Vendor Seeks to Fight Off RIM Overtures
  • iPhone, BlackBerry Storm to Square Off in 2009
  • 4G: Here It Comes, Ready or Not -- Part II
  • Latest Downloads:

  • Power Budget 1.0.5 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • Lemur Searcher 1.10 (Pocket PC)
  • MyMotion 1.12 (Pocket PC)
  • Pocket 12C SE Financial Calculator 1.70 (Pocket PC)
  • MoneyCalc 1.1.0 (Pocket PC)
  • SelectRadioŽ Internet and Satellite Radio Software 4.5 (Pocket PC)
  • Measure Unit Converter and Calculator for Pocket PC 1.0 (Pocket PC)
  • Pocket 10B SE Business Calculator 2.10 (Pocket PC)




  • internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info

    Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers