Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

Create threads in C++ Builder without winapi

Hi there,


Could anybobody help me with creating threads under c++ Builder? I have found a method with WinAPI but I know there is another method without WinApi.


Thank you very much!!!


0
aureliuh
Asked:
aureliuh
  • 2
1 Solution
 
kode99Commented:
Take a look under the File->New->Thread Object.

Basically CBuilder uses a TThread class which allows you to avoid most of the winapi stuff.  The help is pretty good and if you use the file - new method to create the object it will give you all the framework for your own TThread class.  Just fill in the execute method and you more or less have it.

Now when you create one of your new thread class objects you have a thread in your program.
0
 
kode99Commented:
Oh there is an example with the BC install,  take a look in the Examples\Apps\Threads.
0
 
aureliuhAuthor Commented:
Thank you very much! It realy helpped me! I was working with WinApi :(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now