Modaless dialog box can't be created on the stack...because u have to call a Create fucntion for this type of dialog box...What i think the secret lies in the heap ..heap is the extra memory which is being used by the programm(or application) and there is a separate thread to manage the heap and...
Hello,
_bstr_t is a wrapper class for BSTR.This class has a constructor which takes the BSTR as a parameter....
class has a function called copy via which u can have a copy of encapuslated BSTR...
Dinesh
Can anybody tell mw why the modaless dialog box is created on the heap and why modal dialog box is created on the stack..
Is there any logical answer behind this...
Waiting for ur reply.....
With Regards
Dinesh
Hello,
As such CoCreateInstance call indirectly ur class factory CreateInstance...The exe server should be registered
via helping function :-
RegisterClassObjects(CLSCTX_LOCAL_SERVER, REGCLS_SINGLEUSE | REGCLS_SUSPENDED);
REGCLS_SINGLEUSE will cause the one class object per client...
I am trying to implement the callbacks in the ATL.I am facing very peculiar problem in implementing callbacks.I have a Server(ATL EXE,this will be on remote machine) and the clients(ATL DLL).I include the refernce of the client dll in Standard EXE(VB) and test my server from there.The client...
Dear Friends,
I have a basic doubt in IUnknown interface.
I have two COM Interfaces IX and IY.Class CA implements these two interfaces.
CA *pCA=new CA;
IUnKnown *pIX=static_cast<IUnknown *>(static_cast<IX *>(pCA));
IUnKnown *pIY=static_cast<IUnknown *>(static_cast<IY *>(pCA))
whether these...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.