Click to See Complete Forum and Search --> : test


Sam Hobbs
October 4th, 2003, 02:36 PM
#if !defined(AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_)
#define AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDelimited : public CStringArray {
char m_Delimiter;
public:
void Export(CString &Record) const;
void GetString(int nIndex, CString &Record);
void Import(const CString &Record);
CDelimited() {m_Delimiter='\t';};
CDelimited(const char dlm) {m_Delimiter=dlm;};
virtual ~CDelimited() {};
CDelimited(const CDelimited& Parameter) {
m_Delimiter = Parameter.m_Delimiter;
Copy(Parameter);
}
CDelimited& operator=(const CDelimited& Parameter) {
m_Delimiter = Parameter.m_Delimiter;
Copy(Parameter);
return *this;
}
BOOL AFXAPI operator==(const CDelimited& Parameter) const {
int i, n=GetSize();
if (n!=Parameter.GetSize())
return FALSE;
if (m_Delimiter!=Parameter.m_Delimiter)
return FALSE;
for (i=0; i<n; ++i)
if ((*this)[i]!=Parameter[i])
return FALSE;
return TRUE;
}
#ifdef _DEBUG
virtual void Dump(CDumpContext &dc) const;
#endif
};

#endif // !defined(AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_)

Yves M
October 4th, 2003, 03:23 PM
With the update it comes through as:

#if !defined(AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_)
#define AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDelimited : public CStringArray {
char m_Delimiter;
public:
void Export(CString &Record) const;
void GetString(int nIndex, CString &Record);
void Import(const CString &Record);
CDelimited() {m_Delimiter='\t';};
CDelimited(const char dlm) {m_Delimiter=dlm;};
virtual ~CDelimited() {};
CDelimited(const CDelimited& Parameter) {
m_Delimiter = Parameter.m_Delimiter;
Copy(Parameter);
}
CDelimited& operator=(const CDelimited& Parameter) {
m_Delimiter = Parameter.m_Delimiter;
Copy(Parameter);
return *this;
}
BOOL AFXAPI operator==(const CDelimited& Parameter) const {
int i, n=GetSize();
if (n!=Parameter.GetSize())
return FALSE;
if (m_Delimiter!=Parameter.m_Delimiter)
return FALSE;
for (i=0; i<n; ++i)
if ((*this)[i]!=Parameter[i]
return FALSE;
return TRUE;
}
#ifdef _DEBUG
virtual void Dump(CDumpContext &dc) const;
#endif
};

#endif // !defined(AFX_DELIMITED_H__4CA7642F_4517_4394_86B8_5384156B71B0__INCLUDED_)

P.S. It's also good to disable smilies in posts with a lot of source code.


[SolarFlare: this is a test to see if it shows up as me having edited it if I edit within 2 minutes of the post]

SolarFlare
October 4th, 2003, 03:26 PM
I always wanted to test that and never had the opportunity... until now. When you edit your own post, it doesn't show up as edited if you do it within 2 minutes of the original post. But apparently it does if it's someone else's.

Sam Hobbs
October 4th, 2003, 05:08 PM
I don't know how that got posted. I thought for sure I only used the "Preview" button, then I closed the browser window. Perhaps the close applied the post. I guess I can try that.

Sam Hobbs
October 4th, 2003, 05:09 PM
No, it does not work, at least not for replies.

Yves M
October 4th, 2003, 05:10 PM
I doesn't really matter, since the testing area is made for these kinds of tests ;)

[SolarFlare: Hm let's try this again to be sure ;) okay no more]

Sam Hobbs
October 4th, 2003, 05:19 PM
Originally posted by Yves M
P.S. It's also good to disable smilies in posts with a lot of source code.Originally posted by Yves M
I doesn't really matter, since the testing area is made for these kinds of tests ;)One reason it matters is that if I had intended to post the code I would have disabled the smilies.

Which leads to something I was thinking: it would help for there to be tags for disabling smilies, or perhaps smilies could be automatically disabled for "code" tags.

Also, I can't be sure, but I think the color scheme for the CodeGuru forums was changed. I think the blue is darker or something like that. No problem except the tiny alarm in my head is saying that something has changed.

Sam Hobbs
October 4th, 2003, 05:23 PM
I had always thought that the little "Last edited by" message appeared only if the post was viewed by someone (else). It was my assumption that the length of time does not matter. I had thought that I could update something as much as I want until someone else views it and then the post gets the last viewed message.

SolarFlare
October 4th, 2003, 05:26 PM
Originally posted by Sam Hobbs
I had always thought that the little "Last edited by" message appeared only if the post was viewed by someone (else). It was my assumption that the length of time does not matter. I had thought that I could update something as much as I want until someone else views it and then the post gets the last viewed message.
That's worth testing, I guess. But I don't think that works. There is actually a setting under admin (I believe) which is essentially "Don't show edit message if edited within ## minutes of posting."

hometown
October 4th, 2003, 05:34 PM
Originally posted by Sam Hobbs
I had always thought that the little "Last edited by" message appeared only if the post was viewed by someone (else). It was my assumption that the length of time does not matter. I had thought that I could update something as much as I want until someone else views it and then the post gets the last viewed message.

Sam, Can you tell me where you got it, the color ? I once got it but since I reformated my computer, I dont know where it is now

Thanks...:)

Sam Hobbs
October 4th, 2003, 05:39 PM
Originally posted by hometown
Sam, Can you tell me where you got it, the color ? I once got it but since I reformated my computer, I dont know where it is now

Thanks...:) Got what?

Are you asking where I got the color scheme for the CodeGuru forums or the colors for syntax highlighting of code? The first one is automatic and the other one was written by Yves so you should ask him. Look at the "signature" for Yves. However I think the latest copy is hidden deep within the CodeGuru forums and I am trying to find it myself. So for that, again, you should ask him.

SolarFlare
October 4th, 2003, 05:39 PM
Originally posted by hometown
Sam, Can you tell me where you got it, the color ? I once got it but since I reformated my computer, I dont know where it is now

Thanks...:)
Do you mean this (http://www.codeguru.com/forum/showthread.php?s=&threadid=216655)?

hometown
October 4th, 2003, 05:44 PM
Originally posted by solarflare
Do you mean this (http://www.codeguru.com/forum/showthread.php?s=&threadid=216655)?
Weird, you could find it out so fast...:)
Thanks Solarflare...

Yves M
October 4th, 2003, 06:07 PM
Originally posted by Sam Hobbs Which leads to something I was thinking: it would help for there to be tags for disabling smilies, or perhaps smilies could be automatically disabled for "code" tags.

True, that would be nice.


However I think the latest copy is hidden deep within the CodeGuru forums and I am trying to find it myself. So for that, again, you should ask him.

I moved the post about it up in the Chit/Chat forum, but the article should be updated pretty soon anyways.

Sam Hobbs
October 4th, 2003, 06:26 PM
Originally posted by Yves M
I moved the post about it up in the Chit/Chat forum, but the article should be updated pretty soon anyways. Oh that is where it is at. I thought it would be in the developer's forum.