Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog with IStringMap
#1
Hi, I made this dialog to give me one answer based on a stringmap. I'm having a little problem that I'm getting crazy about it but I'm sure it's so simple to fix, can anyone please help me?

This is my code:

Function bcf_checker
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages


str ss.getfile("S:\****")
IStringMap- m=CreateStringMap(1|2)
m.AddList(ss " ")
ss.all

str controls = "3"
str e3
if(!ShowDialog("bcf_checker" &bcf_checker &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 169 102 "BCF Checker"
;3 Edit 0x54030080 0x200 10 16 50 14 ""
;4 Static 0x54000000 0x0 20 2 15 10 "Site"
;5 Static 0x54000000 0x0 110 4 15 10 "BSC"
;7 Static 0x54000000 0x0 110 42 15 10 "BCF"
;8 Edit 0x54200844 0x20000 94 54 60 21 ""
;6 Edit 0x54200844 0x20000 94 16 60 21 ""
;9 Static 0x54000000 0x0 6 42 70 12 "Informação errada?"
;10 Button 0x54032000 0x0 14 56 48 14 "Edit"
;11 Static 0x54000000 0x0 16 70 48 12 "Brevemente"
;12 Static 0x54000000 0x0 128 8 48 12 "Brevemente"
;1 Button 0x54030001 0x4 24 84 130 14 "Done"
;END DIALOG
;DIALOG EDITOR: "" 0x2030408 "" "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret

;messages2
sel wParam
,case 10 :mac "bcf_edit"
,case EN_CHANGE<<16|3
,str s1.getwintext(lParam) s2
,if(s1.len) m.Get2(s1 s2)
,s2.setwintext(id(8 hDlg))
,case IDOK
,case IDCANCEL
ret 1

What I get is, on the "edit" field that I want to edit, everytime I delete it's content to type in a new one the aplication crashes saying: " 0x80070057, The parameter is incorrect. ? "

Can someone help?

Thank you so much! Sad


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)