Pelles C > Announcements

New version of FindFile available

<< < (2/2)

JohnF:

--- Quote from: "tiwag" ---
--- Quote from: "JohnF" ---
...
I'm wondering why there is a default beep when closing the app ??
...

--- End quote ---


really, there is a beep to hear on my office machine, using WinXP and PellesC 3.00 b3,
when i plug in the loudspeakers  :shock:  (normally i'm working in "silent mode" in the office )

i could swear there was no beep to hear
when i compiled it the last time at home on my laptop using Win98 and PellesC 2.90.1,
where i did all the changes to findfile,

i'll have a look about when i'm at home again,
thanks for reporting

--
tiwag
--- End quote ---


After WM_CLOSE: it 'breaks' and jumps to return FALSE - it then beeps.

I can't see why it's happening but there shouldn't be a beep.

John

JohnF:
Stephan,

You had changed in findfileres.h

#define IDB_CANCEL    129

to

#define IDB_CANCEL    2

That is the reason for the beep.

John

JohnF:
Found the real problem, one should return non-zero after EndDialog()

return EndDialog(hwnd,0);

I was returning FALSE.

John

Navigation

[0] Message Index

[*] Previous page

Go to full version