Click here to Skip to main content
15,887,083 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionInvoking ActiveX Pin
Herboren23-Feb-11 2:49
Herboren23-Feb-11 2:49 
AnswerRe: Invoking ActiveX Pin
Yusuf23-Feb-11 10:39
Yusuf23-Feb-11 10:39 
QuestionTo deploy .net dll ther is requirement of .net framework. Pin
SharmaAshutosh22-Feb-11 18:46
SharmaAshutosh22-Feb-11 18:46 
AnswerRe: To deploy .net dll ther is requirement of .net framework. Pin
Richard MacCutchan22-Feb-11 23:10
mveRichard MacCutchan22-Feb-11 23:10 
JokeRe: To deploy .net dll ther is requirement of .net framework. Pin
musefan23-Feb-11 6:23
musefan23-Feb-11 6:23 
GeneralRe: To deploy .net dll ther is requirement of .net framework. Pin
Richard MacCutchan23-Feb-11 7:01
mveRichard MacCutchan23-Feb-11 7:01 
GeneralRe: To deploy .net dll ther is requirement of .net framework. Pin
Nitin Singh India21-Mar-11 7:25
Nitin Singh India21-Mar-11 7:25 
QuestionPost message to event queue [modified] Pin
progDes22-Feb-11 1:39
progDes22-Feb-11 1:39 
Hi,

Here is a situation.
I need to perform long operation in UI thread. I must do it in UI thread, cause algorithm uses 3rdparty resources managed by UI thread. And these resources are not thread safe. So, I do it in UI thread. Because operation is very long I would like to not block the application. What I want is:
1) Interrupt algorithm execution. Store some message in message queue that algorithm must be resolved.
2) Application process all pending events in the queue (key eents, mouse events, draw events etc).
3) I get the the control again in some my handler. (All in the same thread)

Similar to what I would do with PostMessage. Like a System::Windows::Forms::Timer with 0 interval (which is not allowed).

How can I do that?

And here is another detail: I'm doing all this NOT from UI control class. In fact I do it in static member function. But I'm in main(UI) thread.

Thanks.

///////////////////////////////////////////////////////////////////////////////
Found a resolution.

System::Windows::Threading::Dispatcher class does exactly what I need. And it doesnt require a UI control (like COntrol::BeginInvoke).

Works perfect.
Theme closed.

modified on Wednesday, February 23, 2011 8:47 AM

AnswerRe: Post message to event queue Pin
PIEBALDconsult22-Feb-11 14:27
mvePIEBALDconsult22-Feb-11 14:27 
AnswerRe: Post message to event queue Pin
RobCroll22-Feb-11 15:12
RobCroll22-Feb-11 15:12 
GeneralRe: Post message to event queue Pin
progDes22-Feb-11 16:35
progDes22-Feb-11 16:35 
GeneralRe: Post message to event queue Pin
RobCroll23-Feb-11 1:26
RobCroll23-Feb-11 1:26 
GeneralRe: Post message to event queue Pin
progDes23-Feb-11 2:47
progDes23-Feb-11 2:47 
QuestionIn-depth guidance for building complex WinForms Setup projects. Pin
Brady Kelly18-Feb-11 21:50
Brady Kelly18-Feb-11 21:50 
AnswerRe: In-depth guidance for building complex WinForms Setup projects. Pin
#realJSOP19-Feb-11 2:21
mve#realJSOP19-Feb-11 2:21 
GeneralRe: In-depth guidance for building complex WinForms Setup projects. Pin
Brady Kelly19-Feb-11 2:35
Brady Kelly19-Feb-11 2:35 
AnswerRe: In-depth guidance for building complex WinForms Setup projects. Pin
Not Active19-Feb-11 6:28
mentorNot Active19-Feb-11 6:28 
GeneralRe: In-depth guidance for building complex WinForms Setup projects. Pin
Brady Kelly19-Feb-11 6:36
Brady Kelly19-Feb-11 6:36 
QuestionAccess Violation in C# class library Pin
RichardGrimmer18-Feb-11 0:57
RichardGrimmer18-Feb-11 0:57 
AnswerRe: Access Violation in C# class library Pin
Luc Pattyn18-Feb-11 1:20
sitebuilderLuc Pattyn18-Feb-11 1:20 
GeneralRe: Access Violation in C# class library Pin
RichardGrimmer18-Feb-11 2:12
RichardGrimmer18-Feb-11 2:12 
AnswerRe: Access Violation in C# class library Pin
Luc Pattyn18-Feb-11 2:20
sitebuilderLuc Pattyn18-Feb-11 2:20 
GeneralRe: Access Violation in C# class library Pin
RichardGrimmer18-Feb-11 3:41
RichardGrimmer18-Feb-11 3:41 
AnswerRe: Access Violation in C# class library Pin
Nitin Singh India21-Mar-11 7:29
Nitin Singh India21-Mar-11 7:29 
QuestionLearn C# Online Pin
Helfdane17-Feb-11 21:12
Helfdane17-Feb-11 21:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.