![]() |
COM protocol non-compliance |
Post Reply
|
| Author | |
Green
Newbie
Joined: 14 January 2005 Location: Russian Federation Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: COM protocol non-compliancePosted: 15 March 2005 at 12:05pm |
|
Hello I use Xtreme Toolkit Pro v9.60. Look at the next functions: m_pImageManager = pImageManager; |
|
![]() |
|
Sven
Senior Member
Joined: 21 August 2003 Location: Germany Status: Offline Points: 127 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 March 2005 at 5:56am |
|
If you create a CCmdTarget object the internal reference count is always set to 1. CCmdTarget::InternalRelease decrements this reference count and deletes the object if the reference count is zero.
|
|
![]() |
|
Green
Newbie
Joined: 14 January 2005 Location: Russian Federation Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 March 2005 at 7:24am |
|
Hi, Sven. I know this. But, for example: |
|
![]() |
|
umcbrad
Newbie
Joined: 26 April 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2005 at 3:45pm |
|
any more information on this topic? I'm not 100% sure, but I think that Green is correct... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2005 at 11:44pm |
|
Hi,
pCommandBars->SetImageManager(new CXTPImageManager()); if you need to share ImageManager between two controls you must call AddRef manually: CXTPImageManager* pImageManager = pCommandBars->GetImageManager(); pImageManager->InternalAddRef(); m_wndReport.SetImageManager(pImageManager); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |