It is necessary to start the function in a separate thread. It is desirable by means of the builder (without addressing WinAPI directly).
1 answer
Starting a thread is done using the TThread class.
class TSomeThread : public TThread { public: __fastcall TSomeThread(bool CreateSuspended) {}; }; void __fastcall TSomeThread::Execute() { // TODO: Здесь Ваш код потока } Stream spawning itself:
TSomeThread *SomeThread = new TSomeThread(false); Watch the information is quite possible in the IDE help. Plus, in some installation folder are examples for streams.
Development of multi-threaded applications in C ++ Builder .
- 2A.Ya.Arkhangelsky, "C ++ Builder 6 Programming", p. 459, M. "Binom Publishing House", 2002 - BuilderC
|