"Fredrik Wahlgren" <(E-Mail Removed)> escribió en el
mensaje news:(E-Mail Removed)...
>
> "Sahil Malik" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Multiple ways to do this -- SendMessage is one, but uhhh .. not my
> favorite
>> !!
because it could get confused if it can't find the right window
> (which
>> it finds by window title and window classname).
>>
>> Anyway, look at Kernel32.dll->MoveMemory
>> Kernel32.dll->CreateFileMapping
>> Kernel32.dll->OpenFileMapping
>>
>> These guys allow two processes to intercommunicate.
>>
>> - Sahil Malik
>> http://dotnetjunkies.com/weblog/sahilmalik
>>
>
> You are absolutely right. Generally speaking, it may get confused. In this
> case, I think it makes sense since Fernando said:
> "I have an unmanaged processing class and "all I want" is a way to give
> progress feedback into the C# client code."
> I assume there is an open window. It's not one of my favorites either but
> I
> think it comes in handy every once in a while.
>
Indeed, in my case I do have a window, the one holding the progress bar
control, so this works fine.
Using a Memory Mapped File, as Sahil suggested can also work.
And of course, a plain callback as Jeff mentioned
Well, I'll see which on is better in my case, thanks to you all.
Fernando Cacciola