A couple of ways you can do this:
//assume the text will never be more than 255 chars
TCHAR EditBuf[255]; //array of chars
//read text into array
GetDlgItemText(hwnd, IDC_YOUREDIT,...
Type: Posts; User: morongo
A couple of ways you can do this:
//assume the text will never be more than 255 chars
TCHAR EditBuf[255]; //array of chars
//read text into array
GetDlgItemText(hwnd, IDC_YOUREDIT,...
Thank you, adeyblue, for making this clear.
In my case, it doesn't matter either way just so it's consistent (and even then, any decoration could be worked-around if push came to shove).
...
I have a question based on an experience I recently had over on StackOverflow:
If I declare functions in my win32 dll like this:
#ifdef __cplusplus
extern "C" {
#endif
...
.
It might be OK, since this is a 3D vector 'point', to create a vector 'object' first. You can do that using a typedef.
//this defines a struct of type VPOINT
typedef struct{
int...
.
Judging from the previous posts, I don't think this is a c++ question so I'll keep it 'C' syntax to show an example of another way to do this.
Start off by putting all your 'read' stuff in it's...