|
-
Jul 18th, 2002, 07:15 PM
#1
Thread Starter
Hyperactive Member
findfirstfile
Does anyone know whats wrong with this line of code because I cannot figure it out.
"dir" is a textbox containing the directory.
Code:
int temp;
char wtxt[25];
HWND fhwnd;
WIN32_FIND_DATA fd;
temp = GetWindowText(dir, wtxt,25);
fhwnd = FindFirstFile(wtxt,&fd);
this is the error I get:
cannot convert from 'void *' to 'struct HWND__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Matt 
-
Jul 18th, 2002, 07:44 PM
#2
PowerPoster
On which line are you gettings this error? Try typecasting with "(HWND)" or declare fhwnd as HANDLE.
-
Jul 18th, 2002, 09:40 PM
#3
Frenzied Member
.........aahhhhhh why would a function that finds a FILE handle return a windows handle?
To add to abdul's statement
I think you want to delcare:
HANDLE fhwnd;
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Aug 1st, 2002, 03:21 PM
#4
Thread Starter
Hyperactive Member
thanks, that was the problem
Matt 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|