|
wow.. that's so nice to hear david, but i'm tired painting you with red brush all the day so lets spare this one without a vote.
and david, the i found the *bug* in my statement that lead to the chaos!!
instead of saying : Here the "problem" is the batter, i said here the problem is the "batter"
VuNic
|
|
|
|
|
That way you are defining a twice, aren't you ? This is redefinition.
~RaGE();
|
|
|
|
|
Rage wrote:
That way you are defining a twice, aren't you ? This is redefinition.
Uh, no. Why would you think that? It's being defined and declared only once.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Rage wrote: That way you are defining a twice, aren't you ? This is redefinition.
That's how static members are initialized because they don't belong to any particular instance of a class. Hence they must be initialized before any other. Note the class name prefix before the variable name.
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#99ccff;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Defeat is temporary but surrender is permanent
--Jesus is Lord
|
|
|
|
|
hi guys
i wanted to know how should i allocate a 2D array with "new"?
i want to access it like a common array. like this: array[i][j]
|
|
|
|
|
|
<br />
long **pData = NULL;<br />
<br />
try<br />
{<br />
pData = new ( long * )[10];
<br />
for ( long iLine = 0; iLine < 10; iLine++ )<br />
{<br />
pData [iLine ] = new long [5];
}<br />
}<br />
catch(...)<br />
{<br />
}
A++
...
|
|
|
|
|
|
Sorry i put my post on the wrong message
A++
...
|
|
|
|
|
|
When ever a message is generated how do if flow in MFC ,
starting from winmain().
Eg:- if i have a Cbutton on a from View,when i press a button , how do the mesage flow in MFC structure.
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
|
|
link not operational
http://codeproject.com/cpp/mfcprogflow.asp[^]
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
One link works, while the other does not. Try it again.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
link is good but he's messed up with "href" link. i pointed to the same link.. and its up.
VuNic
|
|
|
|
|
Hello!
I want to implement some kind of history log with CEdit controll. But here is the problem; CEdit only have SetWindowText method. Is there a way to add just one line of text? Now I do multiple lines with text in string buffer separated by "\r\n". To add some line, I add text to this buffer and separate it with "\r\n" and after it I call SetWindowText on CEdit control. Here I have a problem how many srolls to do when I get ower the edit control visible lines limit.
Is there any better way? Just to add line of text and if out of visible lines srcoll just one line?
Best regards,
Rostfrei
|
|
|
|
|
I can think of two ways to add a line:
- Call GetWindowText , tack on the new line then call SetWindowText . This is somewhat inefficient.
- Use EM_SETSEL and EM_REPLACESEL messages which are wrapped by CEdit::SetSel and CEdit::ReplaceSel respectively.
Steve
|
|
|
|
|
I use this code:
m_EditRcvdMsg.SetSel(-1, 0); //select no text
m_EditRcvdMsg.ReplaceSel(pMsg);
m_EditRcvdMsg.SetSel(-1, 0); //select no text
m_EditRcvdMsg.ReplaceSel(_T("\r\n"));
//scroll into position
m_EditRcvdMsg.LineScroll(1);
|
|
|
|
|
Thank you! It works like a charm!
Thank you everybody for all your responses!
Regards,
Rostfrei
|
|
|
|
|
|
Rostfrei wrote: I want to implement some kind of history log with CEdit controll.
See here.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Does anybody know how to check if a user is part of a WINNT group.
|
|
|
|
|
Sure, but you did not specify whether the group was local or global. Check out NetLocalGroupGetMembers() or NetGroupGetUsers() .
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Let me try it. I want to check both local and global groups.
I have spent the whole day struggling
Kelvin Chikomo
|
|
|
|