Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is the different between Synchronization and block? Pin
yu-jian19-Sep-10 17:45
yu-jian19-Sep-10 17:45 
AnswerRe: What is the different between Synchronization and block? Pin
Moak20-Sep-10 0:36
Moak20-Sep-10 0:36 
GeneralRe: What is the different between Synchronization and block? Pin
yu-jian22-Sep-10 5:07
yu-jian22-Sep-10 5:07 
QuestionHow to change color in vs2008 feature pack? Pin
hanlei000000000919-Sep-10 15:40
hanlei000000000919-Sep-10 15:40 
QuestionAutoComplete with CListCtrl ? Pin
mesajflaviu19-Sep-10 8:22
mesajflaviu19-Sep-10 8:22 
AnswerRe: AutoComplete with CListCtrl ? Pin
«_Superman_»19-Sep-10 20:52
professional«_Superman_»19-Sep-10 20:52 
GeneralRe: AutoComplete with CListCtrl ? Pin
mesajflaviu20-Sep-10 7:13
mesajflaviu20-Sep-10 7:13 
QuestionGetting window name in different language. Pin
gateway2319-Sep-10 2:20
gateway2319-Sep-10 2:20 
AnswerRe: Getting window name in different language. Pin
AmbiguousName19-Sep-10 4:13
AmbiguousName19-Sep-10 4:13 
AnswerRe: Getting window name in different language. Pin
Luc Pattyn19-Sep-10 5:07
sitebuilderLuc Pattyn19-Sep-10 5:07 
GeneralRe: Getting window name in different language. Pin
CPallini19-Sep-10 6:10
mveCPallini19-Sep-10 6:10 
GeneralRe: Getting window name in different language. Pin
Luc Pattyn19-Sep-10 6:16
sitebuilderLuc Pattyn19-Sep-10 6:16 
GeneralRe: Getting window name in different language. Pin
CPallini19-Sep-10 6:25
mveCPallini19-Sep-10 6:25 
QuestionRe: Getting window name in different language. Pin
CPallini19-Sep-10 6:07
mveCPallini19-Sep-10 6:07 
AnswerRe: Getting window name in different language. Pin
Luc Pattyn19-Sep-10 6:21
sitebuilderLuc Pattyn19-Sep-10 6:21 
GeneralRe: Getting window name in different language. Pin
CPallini19-Sep-10 6:26
mveCPallini19-Sep-10 6:26 
GeneralRe: Getting window name in different language. Pin
gateway2320-Sep-10 20:45
gateway2320-Sep-10 20:45 
QuestionListbox control not accessible in another class?? Pin
AmbiguousName19-Sep-10 1:48
AmbiguousName19-Sep-10 1:48 
hello guys...I added ListBox control on the form, so it accessible in MyProjDlg.cpp only. Now I want to add something to this ListBox from some other class "MyClass.cpp". So I made a function setter() in MyProjDlg.h like this....
#pragma once
#include "afxwin.h"

class MyProjDlg: public CDialog{
   //construction
   public:
           .....
   //implementation
   protected:
           .....

   public:
	afx_msg void OnAdd();
	afx_msg void OnDelete();
	afx_msg void OnShow();
	void setter(LPSTR str);  //here is the function I manually added...
	CListBox ListVar;
};

and gave its its implementation in MyProjDlg.cpp
void setter(LPSTR str) {
        //to keep things simple, messagebox is hown here..
	MessageBox(NULL,str,"",NULL);
}

and used it in MyClass.cpp like this..
LPSTR str = "Rumble in the Bronx"
for (int i=0; i<5; i++) {
     setter(str);
}


problem is,setter()it is not accessible in the MyClass.cpp....whyConfused | :confused:
AnswerRe: Listbox control not accessible in another class?? Pin
Richard MacCutchan19-Sep-10 2:07
mveRichard MacCutchan19-Sep-10 2:07 
AnswerRe: Listbox control not accessible in another class?? [modified] Pin
AmbiguousName19-Sep-10 2:37
AmbiguousName19-Sep-10 2:37 
GeneralRe: Listbox control not accessible in another class?? Pin
Richard MacCutchan19-Sep-10 7:21
mveRichard MacCutchan19-Sep-10 7:21 
AnswerRe: Listbox control not accessible in another class?? Pin
Luc Pattyn19-Sep-10 3:54
sitebuilderLuc Pattyn19-Sep-10 3:54 
AnswerRe: Listbox control not accessible in another class?? Pin
AmbiguousName19-Sep-10 4:05
AmbiguousName19-Sep-10 4:05 
GeneralRe: Listbox control not accessible in another class?? Pin
Luc Pattyn19-Sep-10 4:18
sitebuilderLuc Pattyn19-Sep-10 4:18 
Questionconnection dde server to excel Pin
zon_cpp18-Sep-10 20:45
zon_cpp18-Sep-10 20:45 

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.