Re: return value from a window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If you don't use class wrapper over dialog (as Tom suggested)
you may allocate string in heap, copy data into it and return pointer to it
from windproc - in this case you would not get corruped string (because you
allocated them in stack).

P.S. and don't forget to deallocate memory after using that buffer.

--
Scherbina Vladimir


"ndk" <ndk@xxxx> wrote in message
news:%23BzJLWW6FHA.3636@xxxxxxxxxxxxxxxxxxxxxxx
>I need to make a window, witch returns a string acording some checkboxs and
>edits.
> The only problem is how can I return to main function the string computed.
> The question is if i can avoid using a global var
>
> thanks
>
>


.



Relevant Pages