Remy How to use _Module.GetLockCount() ?


2005-07-02 05:36:54 AM
cppbuilder105
Remy
Thank you very much for your answer. Can I use _Module.GetLockCount() in the
body of my program? something like:
STDMETHODIMP TCoi4Impl::PolizaInicio()
{
int longitud=0;
HRESULT hResult = S_OK;
try{ // 1
TCOMCriticalSection::Lock Lock(CS);
.
.
.
.
int ninst=_Module.GetLockCount();
char nunamefi[5];
itoa(ninst,nunamefi,10);
strcpy(polz,"POLIZA");
strcat(polz, nunamefi);
polza=sopen(polz, O_RDWR | O_BINARY , SH_DENYRW, S_IREAD | S_IWRITE);
.
.
.
.
I appreciate a lot your help. Again Thank you very, very much.
Jesus