Re: pass CString?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tom Serface (tserface_at_msn.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 14:12:15 -0700

You could also pass a pointer to the array and make the other handler
responsible for deleting the data when it is done (I.E., can't delete in the
calling routine because you are posting the message so you don't know when
it will actually get handled.

Alternatively you could use SendMessage and wait for the handler to finish
with the data.

Tom

"Patrick Zou" <patrick_zou@no_spam_hotmail.com> wrote in message
news:OOF%23REfZEHA.3228@TK2MSFTNGP12.phx.gbl...
> sscanf
>
> "Patrick Zou" <patrick_zou@no_spam_hotmail.com> wrote in message
> news:OkiWLdeZEHA.2500@TK2MSFTNGP09.phx.gbl...
> > I want to pass an array of UINT to another window through postmessage.
in
> > first winodw, dump those data to the string using string.Format. In the
> next
> > window, I have to calulate the length and use atoi to get the data. Any
> > other simpler way of doing this? I got to use the CString object to pass
> > around, cause sometimes, I have to pass string.
> >
> > thanks
> >
> >
>
>



Relevant Pages

  • Re: eval alternative
    ... That will pass the array to the function. ... to it using that variable in the event handler. ... This will only fail if the onchange event was somehow fired between ...
    (comp.lang.javascript)
  • Re: HTML::Pager, Navigation not working
    ... your handler gets passed two values - the current ... start (offset), and the number of rows per page. ... uses these values to determine what to put into the results array. ... > from sample1"); ...
    (comp.lang.perl.misc)
  • Re: How to use Switch Statement with RadioButtons
    ... Use a different handler for each button, where each handler has the button-specific code you desire. ... -- store the button control references in an array, using the index of each button as your "switchable" value, and simply enumerating the array to determine the correct index ) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: eval alternative
    ... That would be unnecessarily complex. ... I assume "some_array" is the name of a variable holding an array. ... to it using that variable in the event handler. ... This will only fail if the onchange event was somehow fired between ...
    (comp.lang.javascript)
  • Re: Ereignisbehandlung: Meinung erbeten (konzeptionell)
    ... Form_Load) in verschiedene Events aller Objekte im Array ein. ... Schließen der Form ebenso in einer Schleife alle Eventhandler wieder ... Damit können durch den GC wegen der vernichteten Verweise auf die Handler ...
    (microsoft.public.de.german.entwickler.dotnet.vb)