Solved

Create threads in C++ Builder without winapi

Posted on 2006-06-17
3
512 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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now