![]() |
Macro redefinition |
Post Reply
|
| Author | |
johnmichael
Groupie
Joined: 30 June 2009 Location: United Kingdom Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: Macro redefinitionPosted: 27 August 2009 at 6:15am |
|
SAFE_DELETE and SAFE_RELEASE macros are defined by XTPMacros.h
unfortunatly these are very commonly used macro names and just about every api has them. fortunatly almost every other api wraps them in: #if !defined SAFE_DELETE #define SAFE_DELETE(x) ... #endif meaning you dont get these redefinition error. Although you may have specific implementations for the macro's bodies so maybe you should rename them: XT_SAFE_DELETE XT_SAFE_RELEASE to avoid future conflicts while still maintaining the ability to customise the macro body. regards |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 August 2009 at 7:26am |
|
Him
just add
#undef SAFE_DELETE
before you include toolkit.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
johnmichael
Groupie
Joined: 30 June 2009 Location: United Kingdom Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 August 2009 at 8:13am |
|
yes I did this but its a hack not a solution. I think the real problem needs to be addressed with the toolkit.
<code> #if !defined SAFE_DELETE #endif </code> wrappers... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 August 2009 at 4:05am |
|
Hi,
Thanks, we will add it.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 August 2009 at 8:34am |
|
I'd say the same goes for that other define you have :P (DirectShow I suppose).
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
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 |