Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Crossposting - Not always what it appears to be :)

I have a question that will appear to Bill to be a crosspost. This is not
the case. I am new to this newsboard, and did not know that the getting started
section is for (ANSI/ISO specific questions. <Danny Kalev>. Not an exact
quote.)

I have a question about an MFC Class, CArray:
I know that the basic format to declare the array is as follows:

CArray <CObject, CObject> arObject;
// CObject can be any DataType

When using document/view architechture I do not understand how to implement
this class.

I am trying to use CArray with a simple Class I built:
These declarations were placed in the Header file for my Document class.

class CContact : public CObject
{
CString Name;
CString PhoneNum:
CContact() {Name = ""; Phone = ""; }
}

CArray <CContact, CContact> arContact;

How would I use arContact when tied to a simple dialog with Prev Next Add
and Delete buttons.

I used formview as the base class in the app wizzard, and know how to use
it with a standard array.

Thor - Thank you much for your help
[1157 byte] By [Thor Kornbrek] at [2007-11-10 12:51:53]
# 1 Re: Crossposting - Not always what it appears to be :)
"Thor Kornbrek" <thor.kornbrek@columbia.net> wrote:
>
>I have a question that will appear to Bill to be a crosspost. This is not
>the case. I am new to this newsboard, and did not know that the getting
started
>section is for (ANSI/ISO specific questions. <Danny Kalev>. Not an exact
>quote.)
>
Absolutely, Thor, no fewer than two people suggested you post it here. Even
if they didn't -- if you post in one newsboard and get no response after
a decent period, I think posting it on another newsboard would be entirely
appropriate. I see postings with different dates from time to time and think
nothing of it.
Bill Heffner at 2007-11-11 20:40:34 >
# 2 Re: Crossposting - Not always what it appears to be :)
Bill Heffner wrote:
>
> "Thor Kornbrek" <thor.kornbrek@columbia.net> wrote:
> >
> >I have a question that will appear to Bill to be a crosspost. This is not
> >the case. I am new to this newsboard, and did not know that the getting
> started
> >section is for (ANSI/ISO specific questions. <Danny Kalev>. Not an exact
> >quote.)
> >
> Absolutely, Thor, no fewer than two people suggested you post it here. Even
> if they didn't -- if you post in one newsboard and get no response after
> a decent period, I think posting it on another newsboard would be entirely
> appropriate. I see postings with different dates from time to time and think
> nothing of it.

That's correct. Crossposting applies to posting the same message on more
than one ng *simultaneously*. Crossposting is bad because people might
answer the same question twice. I've found myself several times
answering a question only to discover afterwards that someone else had
already answered it on a different ng. It's a shame because our time is
a limited resource, and wasting an answer on a question that was already
answered means that someone else's question doesn't get answered. It's
not fair and pretty annoying. Furthermore, many of us are charged for
our Internet connection by the minute. Having to download the same
posting several time, one per each ng, is expensive and totally
unnecessary.

The decision where to post a question is simple: any Windows-specific
question should be posted here. Therefore, any MFC related question,
regardless of the level of expertise required to answer it, is
definitely a windows.development posting and should only appear on this
ng. The getting.started ng is for people who are making their first
steps in plain C++, not in MFC, ATL, WinApi, DCOM or whatever. Many of
them don't necessarily use windows: some use DOS, other use various
Unices, and some don't even have a compiler. The general ng is for
general questions on standard C++: STL, for loops, memory management,
arrays, questions about the Standard etc. These questions are of
interest to all C++ programmers, not just Windows programmers.

Questions regarding other platforms (e.g., Solaris, VMS, Linux) should
also be posted on the general ng because we don't have a dedicated ng
for every other platform.

Thor, if your question doesn't get an answer you can to post it again
after a week or so. Please remember that some questions simply might not
be answered due to the amount of questions posted here, because the
question wasn't clearly phrased, or because we don't know the answer.

Thanks for your cooperation.

Danny Kalev

"The ANSI/ISO C++ Professional Programmer's Handbook"
http://www.amazon.com/exec/obidos/ASIN/0789720221

Please reply to the newsgroup.
Danny Kalev at 2007-11-11 20:41:29 >