Print Page | Close Window

Compile Error on VS 2003

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2353
Printed Date: 09 November 2025 at 6:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Compile Error on VS 2003
Posted By: eyalmolad
Subject: Compile Error on VS 2003
Date Posted: 09 June 2005 at 5:32am

HI. I am trying to compile XToolkit 1.93 source code version on VS 2003.

I am getting compilation error with templates.

template <class TDelegate>

class CXTMultiCastDelegate : public CArray<TDelegate, const TDelegate&>

{

public:

typedef TDelegate DELEGATE;

typedef DELEGATE::CB CB;

int Add(CObject* target, CB cb)

{return CArray<TDelegate, const TDelegate&>::Add(DELEGATE(target, cb));

}

};

 

I am getting error on CB parameter. Compiler said it's undeclared identifier. On VS 6 it compiled ok.

Any suggestions.




Replies:
Posted By: Oleg
Date Posted: 11 June 2005 at 3:40pm

replace the lines to


#if _MSC_VER < 1200 // MFC 5.0
 typedef TDelegate DELEGATE;      
 typedef DELEGATE::CB CB;         
#else
 typedef typename TDelegate DELEGATE;        &nb sp;
 typedef typename DELEGATE::CB CB;        
#endif

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net