I have a win32 app which get text from an edit box and stores it in a dynamic array, I was wondering how to make my program ignore the newlines from pressing enter and not show them a part of the dynamic array. The newlines appear as || in my array.
Win32 Edit newline
Collapse
X
-
Originally posted by newguy194I have a win32 app which get text from an edit box and stores it in a dynamic array, I was wondering how to make my program ignore the newlines from pressing enter and not show them a part of the dynamic array. The newlines appear as || in my array.
1.Tokenize the string.
2.Loop trough your array and search for '\n',when you find it, delete it and on it's space put a string terminator.
SavageComment
-
Originally posted by SavageThere are several ways,here are two:
1.Tokenize the string.
2.Loop trough your array and search for '\n',when you find it, delete it and on it's space put a string terminator.
SavageComment
Comment