Click here to Skip to main content
15,923,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using readfile() Pin
krmed16-Jun-05 10:06
krmed16-Jun-05 10:06 
GeneralProblem Reading Excel (.xls) file into VC++ Pin
CodeGoose16-Jun-05 9:01
CodeGoose16-Jun-05 9:01 
GeneralRe: Problem Reading Excel (.xls) file into VC++ Pin
GogglesPisano16-Jun-05 10:07
GogglesPisano16-Jun-05 10:07 
Generalfile access Pin
bkphat16-Jun-05 8:56
bkphat16-Jun-05 8:56 
GeneralRe: file access Pin
David Crow16-Jun-05 9:31
David Crow16-Jun-05 9:31 
GeneralCode beautifier - Lazy programmer looking for ideas Pin
Vaclav16-Jun-05 8:40
Vaclav16-Jun-05 8:40 
GeneralRe: Code beautifier - Lazy programmer looking for ideas Pin
Blake Miller16-Jun-05 12:49
Blake Miller16-Jun-05 12:49 
GeneralProblems with Dialog Controls in VS2003 Pin
NTense16-Jun-05 8:35
NTense16-Jun-05 8:35 
Hi All,
I'm working on my first project in VS 2003 (coming from 6.0), and have run into a snag while creating a simple dialog. The problem is this. I am building a CAD application with MFC, and needed a dialog to manage the creation of one of the primitives. Simple enough.. I placed 2 radio buttons on the form (along with other controls), and then began assigning variables to the controls. The problem arose when the class wizard would not display any of the control ID's for the radio buttons. So, I tried to add the variable relations in by using DDX_Radio(). The program would give me a runtime error at that point that I couldn't track down. After troubleshooting for about an hour, I decided to place a CComboBox in instead since I could essentially track/manage the variable just as easily. After assigning a variable to the combo box, I went to fill it using AddString in the OnInitDialog() function. The problem is that the combobox doesn't drop. I can't see a way to manipulate it in the resource editor, and this has consumed and insane amount of time for such a simple task. I've never had a problem with this in VS 6.0, and it's a bit confusing.

Here's the code in my InitDialog (m_typeBox is the CComboBox control):
<br />
BOOL CTerminalPrompt::OnInitDialog()<br />
{<br />
	CDialog::OnInitDialog();<br />
<br />
	// TODO:  Add extra initialization here<br />
	m_Elements = 1;<br />
	m_typeBox.AddString("testing");<br />
	m_typeBox.AddString("testing2");<br />
	this->UpdateData(FALSE);<br />
<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	// EXCEPTION: OCX Property Pages should return FALSE<br />
}<br />


Does anyone have any suggestions? Am I missing something?

Thanks, your help is a GREATLY appreciated Big Grin | :-D
GeneralRe: Problems with Dialog Controls in VS2003 Pin
Wes Aday16-Jun-05 9:15
professionalWes Aday16-Jun-05 9:15 
GeneralRe: Problems with Dialog Controls in VS2003 Pin
NTense16-Jun-05 10:50
NTense16-Jun-05 10:50 
GeneralRe: Problems with Dialog Controls in VS2003 Pin
NTense16-Jun-05 10:55
NTense16-Jun-05 10:55 
GeneralRe: Problems with Dialog Controls in VS2003 Pin
Wes Aday16-Jun-05 11:00
professionalWes Aday16-Jun-05 11:00 
GeneralWaitForSingleObject() help Pin
kani9816-Jun-05 8:33
kani9816-Jun-05 8:33 
GeneralRe: WaitForSingleObject() help Pin
Blake Miller16-Jun-05 12:58
Blake Miller16-Jun-05 12:58 
GeneralRe: WaitForSingleObject() help Pin
Anonymous20-Jun-05 7:07
Anonymous20-Jun-05 7:07 
GeneralHowTo read/display version info Pin
Robert Palma Jr.16-Jun-05 8:26
Robert Palma Jr.16-Jun-05 8:26 
GeneralRe: HowTo read/display version info Pin
David Crow16-Jun-05 9:33
David Crow16-Jun-05 9:33 
GeneralRe: HowTo read/display version info Pin
Robert Palma Jr.17-Jun-05 5:49
Robert Palma Jr.17-Jun-05 5:49 
GeneralRe: HowTo read/display version info Pin
Blake Miller20-Jun-05 7:29
Blake Miller20-Jun-05 7:29 
GeneralSharing data between DLLs Pin
cdm5z16-Jun-05 7:36
cdm5z16-Jun-05 7:36 
GeneralRe: Sharing data between DLLs Pin
James R. Twine16-Jun-05 8:21
James R. Twine16-Jun-05 8:21 
Generalinitialize bmiColors in BITMAPINFO Pin
Maverick16-Jun-05 7:15
Maverick16-Jun-05 7:15 
GeneralRe: initialize bmiColors in BITMAPINFO Pin
Chris Losinger16-Jun-05 7:56
professionalChris Losinger16-Jun-05 7:56 
GeneralRe: initialize bmiColors in BITMAPINFO Pin
Maverick16-Jun-05 21:24
Maverick16-Jun-05 21:24 
GeneralAdding an executable to a project Pin
dlarkin7716-Jun-05 6:56
dlarkin7716-Jun-05 6:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.