Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Compile Error on VS 2003
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Compile Error on VS 2003

 Post Reply Post Reply
Author
Message
eyalmolad View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote eyalmolad Quote  Post ReplyReply Direct Link To This Post Topic: Compile Error on VS 2003
    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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.