Monday, July 25, 2005

Edit box to variable

Forget most, MFC, Visual C++
1. 'Edit control' properties -> change ID
2. 'Add variable...' Cstring(ex, name_img), Category(value). This one links the edit box and variable.
3. In response function: UpdateData(TRUE); (TRUE:box2variable, FALSE:valriable2box).
img = cvLoadImage(name_img, 1);
You can also check how to use 'Browse' to get the file's name

No comments:

Post a Comment