Problem with Editbox in win32
So what happens is that the application crashes if i write more than 11 chars in my "Editbox"
the code:
int32 length;
length = GetWindowTextLength(Edit1);
if(length > 0) {
length++;
char* myText;
myText = new length;
if(myText != NULL) {
int32 x;
x = 0;
x = GetWindowText(Edit1, @myText, length);
"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b