Re: How to solve LOGIC ERROR: Held resource owner

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...
DerekParnell said...

Also, instead of the "while 1" loop you should consider using openDialog() to open the options window. This will keep focus on the options window until the user closes it.

I need "a while ..." because I made a dialog box that captures the parameters used in the fonts and some others that are not in function "OpenDialog ().

Do you think "a while ..." is a bad feature?

In general, yes. Windows provides your program with events that will call back to your program. While waiting for an event, your program basically does nothing. With the while loop, your program will eat up a lot of processor time without really doing anything. Letting Windows handle that job is much more efficient.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu