Could someone remind me what the name of the api is that creates a new
thread?

Daniel

Re: api to create new thread by Alf

Alf
Fri Jul 18 14:42:50 CDT 2008

* Daniel:
> Could someone remind me what the name of the api is that creates a new
> thread?

Hm, "create", and, uh, "thread".

Nah, doesn't ring any bells.

Sorry,


- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Re: api to create new thread by Daniel

Daniel
Fri Jul 18 14:48:01 CDT 2008

What was the point of that post?

"Alf P. Steinbach" <alfps@start.no> wrote in message
news:Q_GdnW_Bmpmnbx3VnZ2dnUVZ_i2dnZ2d@posted.comnet...
>* Daniel:
>> Could someone remind me what the name of the api is that creates a new
>> thread?
>
> Hm, "create", and, uh, "thread".
>
> Nah, doesn't ring any bells.
>
> Sorry,
>
>
> - Alf
>
> --
> A: Because it messes up the order in which people normally read text.
> Q: Why is it such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?



Re: api to create new thread by Alf

Alf
Fri Jul 18 14:52:12 CDT 2008

* Daniel:
> What was the point of that post?

Please don't quote signatures and other extraneous material.


Cheers, & hth. in future,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Re: api to create new thread by Alex

Alex
Fri Jul 18 15:03:29 CDT 2008

"Daniel" wrote:
> Could someone remind me what the name of the api is that creates
> a new thread?

It depends on your environment.

MFC: AfxBeginThread
CRT: _beginthread[ex]
Win32 API: CreateThread

If you use any particular framework, then it may require its own
function to create a new thread.

HTH
Alex



Re: api to create new thread by greg

greg
Fri Jul 18 15:46:18 CDT 2008

Daniel wrote:
> What was the point of that post?

That you are stupid and that you can't even type 2 words on Google ?

Re: api to create new thread by Ben

Ben
Fri Jul 18 16:03:31 CDT 2008

Daniel wrote:
> Could someone remind me what the name of the api is that creates a new
> thread?

What environment? Could be CreateThread, CThread::Start, _beginthreadex,
pthread_create, future, or any number of other functions and classes
depending on what libraries you are using.

>
> Daniel



Re: api to create new thread by Daniel

Daniel
Fri Jul 18 19:04:07 CDT 2008

Using VC++, I had created a win forms project. I wasn't sure what
environment I wanted to use. If I do use the Win32 API CreateThread
function, which is the API that notifies me when the thread is through
executing. I need to stop all execution in the application until that
particular thread is done running a specific procedure.

Daniel

"Alex Blekhman" <tkfx.REMOVE@yahoo.com> wrote in message
news:u342iDR6IHA.3856@TK2MSFTNGP06.phx.gbl...
> "Daniel" wrote:
>> Could someone remind me what the name of the api is that creates a new
>> thread?
>
> It depends on your environment.
>
> MFC: AfxBeginThread
> CRT: _beginthread[ex]
> Win32 API: CreateThread
>
> If you use any particular framework, then it may require its own function
> to create a new thread.
>
> HTH
> Alex
>
>



Re: api to create new thread by David

David
Fri Jul 18 20:19:04 CDT 2008

Daniel wrote:
> Using VC++, I had created a win forms project. I wasn't sure what
> environment I wanted to use. If I do use the Win32 API CreateThread
> function, which is the API that notifies me when the thread is through
> executing. I need to stop all execution in the application until that
> particular thread is done running a specific procedure.

Daniel:

If you have a winforms project you should be using threading functions from the
.NET library. And you should be asking about them in
microsoft.public.dotnet.languages.vc.

--
David Wilkinson
Visual C++ MVP

Re: api to create new thread by Daniel

Daniel
Sat Jul 19 03:52:52 CDT 2008

ok. thanks.

"David Wilkinson" <no-reply@effisols.com> wrote in message
news:%23jLUv1T6IHA.2332@TK2MSFTNGP03.phx.gbl...
> Daniel wrote:
>> Using VC++, I had created a win forms project. I wasn't sure what
>> environment I wanted to use. If I do use the Win32 API CreateThread
>> function, which is the API that notifies me when the thread is through
>> executing. I need to stop all execution in the application until that
>> particular thread is done running a specific procedure.
>
> Daniel:
>
> If you have a winforms project you should be using threading functions
> from the .NET library. And you should be asking about them in
> microsoft.public.dotnet.languages.vc.
>
> --
> David Wilkinson
> Visual C++ MVP



Re: api to create new thread by Ron

Ron
Sat Jul 19 18:57:25 CDT 2008

"Daniel" <newsonly@cableone.net> wrote in message
news:OJfiw8Q6IHA.3696@TK2MSFTNGP04.phx.gbl...
> What was the point of that post?
>
> "Alf P. Steinbach" <alfps@start.no> wrote in message
> news:Q_GdnW_Bmpmnbx3VnZ2dnUVZ_i2dnZ2d@posted.comnet...
>>* Daniel:
>>> Could someone remind me what the name of the api is that creates a new
>>> thread?
>>
>> Hm, "create", and, uh, "thread".
>>
>> Nah, doesn't ring any bells.
>>
>> Sorry,

OK you guys, there is no need to be nasty.

CreateThread() is what you're after Daniel.

Regards,
Ron Francis
www.RonaldFrancis.com



Re: api to create new thread by Ron

Ron
Sat Jul 19 19:01:17 CDT 2008



"Ron Francis" <ronfrancis@adam.com.au> wrote in message
news:ez22tsf6IHA.3856@TK2MSFTNGP06.phx.gbl...
> OK you guys, there is no need to be nasty.
>
> CreateThread() is what you're after Daniel.

Please ignore that last post, I see it was already answered.

Regards,
Ron Francis
www.RonaldFrancis.com




Re: api to create new thread by Daniel

Daniel
Sat Jul 19 19:53:30 CDT 2008

I found some code that uses CreateThread and marshalls a com object to the
new thread. Can anyone tell me what I need to use to pass a couple of
parameters to the new thread? I believe I need a stream object.

Daniel

"Ron Francis" <ronfrancis@adam.com.au> wrote in message
news:ez22tsf6IHA.3856@TK2MSFTNGP06.phx.gbl...
> "Daniel" <newsonly@cableone.net> wrote in message
> news:OJfiw8Q6IHA.3696@TK2MSFTNGP04.phx.gbl...
>> What was the point of that post?
>>
>> "Alf P. Steinbach" <alfps@start.no> wrote in message
>> news:Q_GdnW_Bmpmnbx3VnZ2dnUVZ_i2dnZ2d@posted.comnet...
>>>* Daniel:
>>>> Could someone remind me what the name of the api is that creates a new
>>>> thread?
>>>
>>> Hm, "create", and, uh, "thread".
>>>
>>> Nah, doesn't ring any bells.
>>>
>>> Sorry,
>
> OK you guys, there is no need to be nasty.
>
> CreateThread() is what you're after Daniel.
>
> Regards,
> Ron Francis
> www.RonaldFrancis.com
>
>