Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

error in use edit control and EndDialog() !!!

hadikazemihadikazemi Member Posts: 3
hi
i use one edit Control in my Dialog.
when i use below code for read content of it :

[code]
GetWindowTextA(hEdit,editStr,10);
[/code]

if content of Edit control is more than one Character my program give error in :

[code]
EndDialog( hDlg, FALSE );
[/code]

error:

First-chance exception at 0x7e424f4a in CreateDevice.exe: 0xC0000005: Access violation reading location 0x00003355.
Unhandled exception at 0x7e424f4a in CreateDevice.exe: 0xC0000005: Access violation reading location 0x00003355.


if i enter one Character in Edit control error dont accure.

why ?
Sign In or Register to comment.