Advertisement

03.19.2008 at 09:53AM PDT, ID: 23254321
[x]
Attachment Details

Create an asynchronous thread in (not managed) Visual C++ 2005

Asked by B_B_Boris in Microsoft Visual C++.Net, Visual Studio .NET 2005

Tags: Not managed visual C++ 2005

Hi there,

Does anyone know how to create an asynchronous thread in (not managed) Visual C++ 2005 ?

In another question, (http://www.experts-exchange.com/Microsoft/Development/.NET/Visual_CPP/Q_21255861.html)
a link to a C# project was given but I can't manage to translate it in Visual C++ 2005

Thanks in advanceStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
using System.Threading; // Namespace for Thread class
 
...
 
        Thread t = new Thread(new ThreadStart(TheLongRunningTask));  // Creates the new thread
        t.Start(); // Begins the execution of the new thread
 
...
 
    private void TheLongRunningTask()
[+][-]03.19.2008 at 09:58AM PDT, ID: 21163390

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 10:36AM PDT, ID: 21163759

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 10:57AM PDT, ID: 21164006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2008 at 01:35AM PDT, ID: 21169145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2008 at 02:16AM PDT, ID: 21169379

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2008 at 02:17AM PDT, ID: 21169389

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C++.Net, Visual Studio .NET 2005
Tags: Not managed visual C++ 2005
Sign Up Now!
Solution Provided By: AndyAinscow
Participating Experts: 1
Solution Grade: B
 
 
[+][-]03.21.2008 at 09:23AM PDT, ID: 21181015

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.21.2008 at 10:40AM PDT, ID: 21181602

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628