View Single Post
  #5   Spotlight this post!  
Unread 12-08-2003, 12:47
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by Raven_Writer
Rob -- Thanks.

Got anything for the Win32?
The concepts are identical, it's just the way you call the functions that are different. Instead, it would be:

Code:
int i=SendDlgItemMessage(hDlg, ID_OF_TEXT_BOX, EM_LINELENGTH, 0, 0) + 2;
//the first zero above is the line number to retrieve.  The second one should always stay 0.

SendDlgItemMessage(hDlg, ID_OF_TEXT_BOX, EM_SETSEL, i, i);

SendDlgItemMessage(hDlg, ID_OF_TEXT_BOX, EM_REPLACESEL, TRUE, szNewText);

Quote:

>> EDIT: << : About the credit, and this is sorta off-topic, but if I use the code you use in RoboGUI or RoboEmu, to connect to a COM Port, I'd give you credit then, right?
If you use the exact code, then yes. If you just use concepts, then no. For example, if you read my serial port whitepaper and directly copy-paste the code, then you would need to give me credit. On the other hand, if you write all your own code using just the ideas in the paper, then you don't. If it wasn't this way, every single program I've ever written would have to have probably close to a hundred credits, since it would have to include every book, professor, or internet article I've ever read/talked with about everything from C++ to MFC to graphics to programming methodology.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php