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.