Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28384 Discussions

GetDlgItemText only returning 80 characters

davidgraham
Beginner
258 Views
I am continuing with my project to get my program to work forlong file names.
Here I am getting a file name from a text box.
iret=GetDlgItemText(hwnd,IDC_EDIT_DXF,cFile,FileNameLength)
FileNameLength is 250
cFile is character*(FileNameLength)
When I run the program I cannot get iret to be more tham 80 - i.e. I can only get the first 80 characters of the file name.
By the way, I don't expect the user to type in a 250 characterfile name, it is selected by a 'get file' dialog, and the file displayed in a text box.
What am I doint wrong, or is 80 character to limit?
David
0 Kudos
1 Reply
davidgraham
Beginner
258 Views

Sorry, it was my mistake.

Earlier I had only set 80 chars to the text box.

David

0 Kudos
Reply