Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need your help,to all programmers!!! Pin
Erudite_Eric24-May-12 4:36
Erudite_Eric24-May-12 4:36 
GeneralRe: need your help,to all programmers!!! Pin
Aescleal24-May-12 6:45
Aescleal24-May-12 6:45 
AnswerRe: need your help,to all programmers!!! Pin
Erudite_Eric24-May-12 4:37
Erudite_Eric24-May-12 4:37 
AnswerRe: need your help,to all programmers!!! Pin
Albert Holguin24-May-12 5:15
professionalAlbert Holguin24-May-12 5:15 
AnswerRe: need your help,to all programmers!!! Pin
jschell24-May-12 8:33
jschell24-May-12 8:33 
AnswerRe: need your help,to all programmers!!! Pin
Vaclav_24-May-12 22:45
Vaclav_24-May-12 22:45 
AnswerUnicorns and Rainbows Pin
jkirkerx25-May-12 8:49
professionaljkirkerx25-May-12 8:49 
Question[SOLVED]: Error Returning CArray Pin
AmbiguousName23-May-12 21:30
AmbiguousName23-May-12 21:30 
hello guys... I am trying to return CArray which I create locally in a function. It simply caontains names. Now this array will be modified by other functions. Here is what it looks like
CArray<CString> CMainDlg::GetNames()
{
	CArray<CString> arrNames;
	arrNames.SetSize(10);

	arrNames.SetAt(0, "Ali");
	arrNames.SetAt(1, "Salman");
	arrNames.SetAt(2, "Zahid");
	arrNames.SetAt(3, "Mehmood");
	arrNames.SetAt(4, "Tariq");

	return arrNames;
}

But the compiler is showing me this error stating - Error C2248: Can not access private member of class CObject. Whats wrong with this code? Thanks for input.

This world is going to explode due to international politics, SOON.


modified 24-May-12 5:17am.

AnswerRe: Error Returning CArray Pin
CPallini23-May-12 21:52
mveCPallini23-May-12 21:52 
GeneralRe: Error Returning CArray Pin
AmbiguousName23-May-12 22:45
AmbiguousName23-May-12 22:45 
QuestionRe: Error Returning CArray Pin
CPallini23-May-12 22:47
mveCPallini23-May-12 22:47 
AnswerRe: Error Returning CArray Pin
AmbiguousName23-May-12 22:56
AmbiguousName23-May-12 22:56 
GeneralRe: Error Returning CArray Pin
CPallini23-May-12 23:02
mveCPallini23-May-12 23:02 
QuestionReadFile bytes read not equla to bytes requested Pin
evs_bud23-May-12 21:27
evs_bud23-May-12 21:27 
AnswerRe: ReadFile bytes read not equla to bytes requested Pin
CPallini23-May-12 21:37
mveCPallini23-May-12 21:37 
QuestionCreate an incoming connection RAS server with C++ Pin
Member 800297323-May-12 12:56
Member 800297323-May-12 12:56 
AnswerRe: Create an incoming connection RAS server with C++ Pin
Erudite_Eric23-May-12 22:09
Erudite_Eric23-May-12 22:09 
GeneralRe: Create an incoming connection RAS server with C++ Pin
Member 800297324-May-12 5:55
Member 800297324-May-12 5:55 
QuestionCTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_23-May-12 6:08
Vaclav_23-May-12 6:08 
AnswerRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Aescleal23-May-12 6:47
Aescleal23-May-12 6:47 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_23-May-12 7:42
Vaclav_23-May-12 7:42 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_23-May-12 10:29
Vaclav_23-May-12 10:29 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Aescleal23-May-12 23:46
Aescleal23-May-12 23:46 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Aescleal23-May-12 23:57
Aescleal23-May-12 23:57 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_24-May-12 3:39
Vaclav_24-May-12 3:39 

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.