Does anyone know whats wrong with this line of code because I cannot figure it out.
"dir" is a textbox containing the directory.
this is the error I get:Code:int temp; char wtxt[25]; HWND fhwnd; WIN32_FIND_DATA fd; temp = GetWindowText(dir, wtxt,25); fhwnd = FindFirstFile(wtxt,&fd);
cannot convert from 'void *' to 'struct HWND__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast





Reply With Quote