For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I need to create one edit view which could be able to add different color txt automatially(actually by another thread). act like a monitor to monitor the message from serialport or tcp;
The message displayed shall be able have different color to make it has different meanings;(if different font is support is better)
Also when user scrolls up, it could stay at that scroll position, it did not scroll down automatically when new message arrived. User could select and copy the txt;
When user scroll down to the last line, it could scroll down automatically to the last line when background message is arrived; when scrolling, it did not flash(twinkle);
I have tried EditView & Richedit, all failed, the new txt added is by ReplaceSel, which will make the content auto scroll down to the last line, and user could not do Selection and copy when new txt added;
I have found the Visual Studio Trace window, it could add message automatially and user could easily select txt even when new txt added.
I am not sure how to realize it, this thing has bothered me a lot time, please someone could help me about this. Very appricate of your help;
You could try subclassing the EditView so you can have greater control over the movement of text and the actual display. Alternatively you may need to create your own View class which will be specific to your requirements.
I had a problem that can't solve it and I don't know why.
The problem is that when I sendto one data to one server,then i picked the data through Network Monitor.There is more data than I send.And the source mac is more other than my own pc's mac.
The problem I encountered first time and I don't know why it happened.
Look forward your help.Thank you.
Do you understand what MTU size is? If not look it up ([^])
The basics are:
UDP over IP uses an 8-byte header added by the UDP protocol and a 20-byte header added by the IP protocol. So +28 bytes of data in the header.
TCP over IP uses a 20-byte header for the TCP, and again a 20-byte header added by the IP protocol. So +40 bytes in the header.
So those are the headers and then will follow your data which will be in sizes making MTU block sizes.