Click here to Skip to main content
15,886,816 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? Pin
Richard Andrew x6413-Dec-08 10:46
professionalRichard Andrew x6413-Dec-08 10:46 
GeneralRe: How can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? Pin
dandy7214-Dec-08 7:10
dandy7214-Dec-08 7:10 
Questioncascade-style distribution of files over a LAN Pin
Bartosz Bien13-Dec-08 5:04
Bartosz Bien13-Dec-08 5:04 
AnswerRe: cascade-style distribution of files over a LAN Pin
Dave Kreskowiak13-Dec-08 5:44
mveDave Kreskowiak13-Dec-08 5:44 
QuestionPrevent empty cells in datagridview Pin
Yustme13-Dec-08 5:02
Yustme13-Dec-08 5:02 
AnswerRe: Prevent empty cells in datagridview Pin
Christian Graus13-Dec-08 10:43
protectorChristian Graus13-Dec-08 10:43 
QuestionHow to return value from a thread Pin
anveshvm13-Dec-08 4:00
anveshvm13-Dec-08 4:00 
GeneralRe: How to return value from a thread Pin
Luc Pattyn13-Dec-08 4:42
sitebuilderLuc Pattyn13-Dec-08 4:42 
Hi,

there are many ways you can pass data to a thread, and retrieve results.

For one, there is a possibility to pass an object to Thread.Start(); so you could store all the inputs in that object before you start the thread, and/or retrieve all the results once the thread is done.

Or you could turn that around, and have a little class (say class Job), which you instantiate, pass parameters (thru properties maybe), then call its Run method (which launches a thread inside that class, invisible to the outside world), and finally gets the results available somehow (e.g. again as Properties). This is my preferred way; it makes it very easy to run several similar jobs at the same time, just by instatiating more Job objects and Run()ning them.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


AnswerRe: How to return value from a thread Pin
User 433002813-Dec-08 16:10
User 433002813-Dec-08 16:10 
Questioninstalling application only once at one client Pin
praveenvkumarv13-Dec-08 2:45
praveenvkumarv13-Dec-08 2:45 
AnswerRe: installing application only once at one client Pin
Dave Kreskowiak13-Dec-08 5:41
mveDave Kreskowiak13-Dec-08 5:41 
QuestionDll LibMain Function? Pin
OptiPlex13-Dec-08 1:26
OptiPlex13-Dec-08 1:26 
AnswerRe: Dll LibMain Function? Pin
User 665813-Dec-08 2:19
User 665813-Dec-08 2:19 
GeneralRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 2:56
OptiPlex13-Dec-08 2:56 
GeneralRe: Dll LibMain Function? Pin
User 665813-Dec-08 3:11
User 665813-Dec-08 3:11 
QuestionRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 3:37
OptiPlex13-Dec-08 3:37 
AnswerRe: Dll LibMain Function? Pin
User 665813-Dec-08 4:24
User 665813-Dec-08 4:24 
GeneralRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 4:27
OptiPlex13-Dec-08 4:27 
GeneralRe: Dll LibMain Function? Pin
User 665813-Dec-08 5:11
User 665813-Dec-08 5:11 
GeneralRe: Dll LibMain Function? Pin
Dave Kreskowiak13-Dec-08 5:40
mveDave Kreskowiak13-Dec-08 5:40 
GeneralRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 6:06
OptiPlex13-Dec-08 6:06 
AnswerRe: Dll LibMain Function? Pin
Giorgi Dalakishvili13-Dec-08 4:38
mentorGiorgi Dalakishvili13-Dec-08 4:38 
QuestionSometing wrong in my code,can you check it?thx~! [modified] Pin
franva13-Dec-08 0:49
franva13-Dec-08 0:49 
Questionhow to retrive the excutions file of a MimeType? Pin
leeoze13-Dec-08 0:03
leeoze13-Dec-08 0:03 
GeneralRe: how to retrive the excutions file of a MimeType? Pin
Luc Pattyn13-Dec-08 0:33
sitebuilderLuc Pattyn13-Dec-08 0:33 

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.