Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create threads in C++ Builder without winapi

Posted on 2006-06-17
3
Medium Priority
?
524 Views
Last Modified: 2013-11-17
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
Comment
Question by:aureliuh
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
kode99 earned 500 total points
ID: 16928879
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
 
LVL 25

Expert Comment

by:kode99
ID: 16928886
Oh there is an example with the BC install,  take a look in the Examples\Apps\Threads.
0
 

Author Comment

by:aureliuh
ID: 16929799
Thank you very much! It realy helpped me! I was working with WinApi :(
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question