TThread ::Synchronize problem when called by VC++ App


2006-08-30 03:48:24 PM
cppbuilder46
Hi,
I implemented a BCB dll with an TThread oject inside it. In the Execute
function of this TThread object, an BCB form is opened thru
Synchronize() method, i.e.
void __fastcall MyThread::Execute()
{
Synchronize( OpenControlForm);
while(!Terminated)
{
....
}
}
this dll works when the thread is lauched by BCB app. it failed if it's
launched by VC++ app.
could any body tell me how to make it work when it's called by VC++
app?
Thanks,
ChKuo