Re: pass CString?
From: Tom Serface (tserface_at_msn.com)
Date: 07/09/04
- Next message: Matheus Peschke: "Yet about Win98 GDI limit.... why MS Word is so special?"
- Previous message: Jim: "Shared Files using Pre-compiled headers"
- In reply to: Patrick Zou: "Re: pass CString?"
- Next in thread: Scott McPhillips [MVP]: "Re: pass CString?"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: Matheus Peschke: "Yet about Win98 GDI limit.... why MS Word is so special?"
- Previous message: Jim: "Shared Files using Pre-compiled headers"
- In reply to: Patrick Zou: "Re: pass CString?"
- Next in thread: Scott McPhillips [MVP]: "Re: pass CString?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|