Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[Message Deleted] Pin
ratprita10-Nov-09 21:41
ratprita10-Nov-09 21:41 
QuestionRe: polymorphism Pin
Rajesh R Subramanian10-Nov-09 21:44
professionalRajesh R Subramanian10-Nov-09 21:44 
Answer[Message Deleted] Pin
ratprita10-Nov-09 21:46
ratprita10-Nov-09 21:46 
GeneralRe: polymorphism Pin
Rajesh R Subramanian10-Nov-09 21:49
professionalRajesh R Subramanian10-Nov-09 21:49 
GeneralRe: polymorphism Pin
CPallini10-Nov-09 22:08
mveCPallini10-Nov-09 22:08 
GeneralRe: polymorphism Pin
Cedric Moonen10-Nov-09 23:02
Cedric Moonen10-Nov-09 23:02 
AnswerRe: polymorphism Pin
David Crow11-Nov-09 3:38
David Crow11-Nov-09 3:38 
QuestionAddString() in ListBox Pin
Anu_Bala10-Nov-09 20:20
Anu_Bala10-Nov-09 20:20 
I one of my sample applcaiton,I hav changed the combobox in to Listbox,
After that i got in piece of code.

CAlarmCombo *pSysBox = (CAlarmCombo *)((CMainFrame *)AfxGetMainWnd())->m_SysWnd.GetDlgItem(IDC_SYSALARM);
if(pSysBox)
{
pSysBox->EnableWindow(TRUE);
if( pSysBox->GetCount() < 5 )
pSysBox->AddString((LPCTSTR)RGB(255,0,0));
}
The code is working fine with CComboBox.

The error comes in that bolded line as some USER32.dll unhandled exception.

Anu

AnswerRe: AddString() in ListBox Pin
«_Superman_»10-Nov-09 20:24
professional«_Superman_»10-Nov-09 20:24 
AnswerRe: AddString() in ListBox Pin
KingsGambit10-Nov-09 20:27
KingsGambit10-Nov-09 20:27 
QuestionRe: AddString() in ListBox Pin
CPallini10-Nov-09 20:32
mveCPallini10-Nov-09 20:32 
AnswerRe: AddString() in ListBox Pin
Anu_Bala10-Nov-09 21:04
Anu_Bala10-Nov-09 21:04 
GeneralRe: AddString() in ListBox Pin
CPallini10-Nov-09 21:25
mveCPallini10-Nov-09 21:25 
AnswerRe: AddString() in ListBox Pin
Rajesh R Subramanian10-Nov-09 21:01
professionalRajesh R Subramanian10-Nov-09 21:01 
AnswerRe: AddString() in ListBox Pin
David Crow11-Nov-09 3:40
David Crow11-Nov-09 3:40 
QuestionNew Virtual Desktop Pin
amitkgupta2810-Nov-09 20:11
amitkgupta2810-Nov-09 20:11 
AnswerRe: New Virtual Desktop Pin
«_Superman_»10-Nov-09 20:21
professional«_Superman_»10-Nov-09 20:21 
QuestionBroke CString Pin
Paulraj G10-Nov-09 19:23
Paulraj G10-Nov-09 19:23 
AnswerRe: Broke CString Pin
«_Superman_»10-Nov-09 19:37
professional«_Superman_»10-Nov-09 19:37 
GeneralRe: Broke CString Pin
Paulraj G10-Nov-09 20:19
Paulraj G10-Nov-09 20:19 
QuestionActiveX Control - Visual C++ 6.0 to Visual Studio 2008 (C++ ) - Urgent Pin
ERLN10-Nov-09 18:33
ERLN10-Nov-09 18:33 
QuestionEdit the maximize box Pin
Anu_Bala10-Nov-09 18:16
Anu_Bala10-Nov-09 18:16 
QuestionFind cursor Pin
sonualex10-Nov-09 18:10
sonualex10-Nov-09 18:10 
AnswerRe: Find cursor Pin
«_Superman_»10-Nov-09 19:01
professional«_Superman_»10-Nov-09 19:01 
GeneralRe: Find cursor Pin
sonualex10-Nov-09 21:26
sonualex10-Nov-09 21:26 

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.