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

C / C++ / MFC

 
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 
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 
May be I am making mistake here but it is not working for me. Here is what I am trying using your technique.
a.h
-------------
private:
  CArray<CString> srrNames;

public:
  void GetNames(CArray<CString>&);



a.cpp
-------------
void 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");
}

And now in a.cpp, till calling GetNames is fine. But as I said earlier, this will be modified by other functions (which are in another class). Passing it's reference is not working. How do I pass this to other function?

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

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 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_24-May-12 7:31
Vaclav_24-May-12 7:31 
Questionnew and free Pin
pix_programmer23-May-12 0:23
pix_programmer23-May-12 0:23 

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.