Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Control's control variable causes program to not run

john8103
Beginner
573 Views
MS Visual C++ 6 Professional
Compaq Visual Fortran 6
Windows 2000 Professional

I have a problem. I have a Dialog based MFC AppWizard(exe) program I'm writing in C++ and Fortran. I have many Extended Combo Boxes and other Controls that all work fine. But now, when I add an Extended Combo Box, and add a Control Member variable for it, the program will not run. It will immediately end before even bringing up the GUI dialog box. I know it has something to do with the Control Variable for that new Extended Combo Box I added because if I delete the Control Variable, the Application will run. Also, if I try to add some initialization to the Combo Box in "OnInitDialog" section, the name of the Control Variable is not recognized (I know this because when I type the period after the name, a list of choices does not come up). I have a CString Value variable for the Combo box as well, and that isn't recognized in
"OnInitDialog" section either, but it doesn't cause the application to not work.
After further examination I found that if I add any control and give it a Control Member Variable, the program will not run.
Does anyone know why this is happening? I need a Control variable for my Extended Combo Box.
0 Kudos
0 Replies
Reply