Re: return value from a window
- From: "Scherbina Vladimir" <vladimir.scherbina@xxxxxxxxx>
- Date: Tue, 15 Nov 2005 17:34:59 +0200
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
>
>
.
- References:
- return value from a window
- From: ndk
- return value from a window
- Prev by Date: Re: VS6 vs CPP.NET
- Next by Date: Re: OpenMP
- Previous by thread: Re: return value from a window
- Next by thread: RE: Visual studio 8 cannot convert project that uses atlcomcli.h
- Index(es):
Relevant Pages
|