 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Darren Dwyer Guest
|
Posted: Tue Jan 09, 2007 5:12 am Post subject: TThread Problem with BDS 2006 |
|
|
I have some existing code, which works perfectly for BCB v1,3,4,5,6 but does
not compile in C++ Builder 2006 Architect.
I am having a problem with TThread::Synchonize() not being declared in the
BDS 2006 standard VCL headers.
Anyone know how to fix this?
- darren dwyer
http://bcb-tools.com
"RAD DirectX for C++ Builder" |
|
| Back to top |
|
 |
David Dean [CodeGear] Guest
|
Posted: Tue Jan 09, 2007 5:29 am Post subject: Re: TThread Problem with BDS 2006 |
|
|
In article <45a2d164 (AT) newsgroups (DOT) borland.com>,
"Darren Dwyer" <admin@bcb-tools.com> wrote:
| Quote: | I am having a problem with TThread::Synchonize() not being declared in the
BDS 2006 standard VCL headers.
Anyone know how to fix this?
|
see the workaround here:
<http://qc.codegear.com/wc/qcmain.aspx?d=23025>
--
-David Dean
CodeGear C++ QA Engineer |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 10, 2007 2:06 am Post subject: Re: TThread Problem with BDS 2006 |
|
|
"Darren Dwyer" <admin@bcb-tools.com> wrote in message
news:45a2d164 (AT) newsgroups (DOT) borland.com...
| Quote: | I have some existing code, which works perfectly for BCB v1,3,4,5,6
but does not compile in C++ Builder 2006 Architect.
|
What is the EXACT problem you are having? You do know that the
compiler in BDS was updated to better conform to standards, don't you?
You now have to use '&' when passing a method to Synchronize(), ie:
Synchronize(&MethodName);
| Quote: | I am having a problem with TThread::Synchonize() not being declared
in the BDS 2006 standard VCL headers.
|
Yes, it is, same as it always has been. It is declared on line 2151
of Classes.hpp:
--- ($BDS)\include\VCL\Classes.hpp ---
class PASCALIMPLEMENTATION TThread : public System::TObject
{
//...
protected:
//...
void __fastcall Synchronize(TThreadMethod AMethod)/* overload
*/;
//...
};
Gambit |
|
| Back to top |
|
 |
Darren Dwyer Guest
|
Posted: Fri Jan 12, 2007 3:10 am Post subject: Re: TThread Problem with BDS 2006 |
|
|
Thanks.
That was the exact problem I was having...
- darren
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:45a3f581$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Darren Dwyer" <admin@bcb-tools.com> wrote in message
news:45a2d164 (AT) newsgroups (DOT) borland.com...
I have some existing code, which works perfectly for BCB v1,3,4,5,6
but does not compile in C++ Builder 2006 Architect.
What is the EXACT problem you are having? You do know that the
compiler in BDS was updated to better conform to standards, don't you?
You now have to use '&' when passing a method to Synchronize(), ie:
Synchronize(&MethodName);
I am having a problem with TThread::Synchonize() not being declared
in the BDS 2006 standard VCL headers.
Yes, it is, same as it always has been. It is declared on line 2151
of Classes.hpp:
--- ($BDS)\include\VCL\Classes.hpp ---
class PASCALIMPLEMENTATION TThread : public System::TObject
{
//...
protected:
//...
void __fastcall Synchronize(TThreadMethod AMethod)/* overload
*/;
//...
};
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|