11.1.2 |
Post Reply |
Author | |||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 23 May 2007 at 8:34am |
||||||||||||||||
Hi,
your Toolkit Pro 11.1.2 does not compile under Visual Studio 2005.
I had to replace all of the TRY - CATCH Blocks.
and
maybe you can fix this before more people had the same problem.
|
|||||||||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||||||||
Hello,
Please show BuildLog.htm.. . What errors generate your VisualStudio?
|
|||||||||||||||||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
The error was like "iskindof is not a member of c*exception".
Microsoft made changes in the Exception Macros V 3.0.
They wrote about in the article above.
|
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
I also found this problen in this file:
Fehler 1 error C2039: 'IsKindOf': Ist kein Element von 'CException' c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\wordpdoc.cpp 102
but there i don't know how to fix it.
|
|||||||||||||||||
noldo66
Newbie Joined: 29 June 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
||||||||||||||||
djenric,
I compiled the the 11.1.2 toolkit under Visual Studio 2005 and it compiled without any problems, including the "wordpad" solution you mentioned above. You shouldn't have to edit anything. Something could be wrong with your environment and if oleg is going to help you, you need to include the "BuildLog.htm" so that he can get a hint of what may be wrong on your end or what is triggering the error.
|
|||||||||||||||||
ab imo pectore
|
|||||||||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||||||||
Hi,
Show me _exactly_ text of error - please run it in IDE and copy/paste it.
We have Enterprise Visual Studio 2005 and it doesn't show any errors. Please also attach screenshot of aboutbox of your Visual Studio.
|
|||||||||||||||||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
Sorry, my fault.
Here is the build.log of wordpad:
But its only in german.
thx
|
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
And here infos of the about box: Microsoft Visual Studio 2005 Installierte Edition: Professional Microsoft Visual Basic 2005 77891-009-1008784-41040 Microsoft Visual C# 2005 77891-009-1008784-41040 Microsoft Visual C++ 2005 77891-009-1008784-41040 Microsoft Visual J# 2005 77891-009-1008784-41040 Microsoft Visual Web Developer 2005 77891-009-1008784-41040 Microsoft Web Application Projects 2005 77891-009-1008784-41040 Crystal Report AAC60-H0CSA4B-U700045
Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1 (KB926606) Visual Assist X Xtreme Toolkit Pro for Visual C++ .NET 11.1 thx
|
|||||||||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||||||||
May be your afx.h was modified. Can you please also attach it. or at least part where CException declared.
In my:
class AFX_NOVTABLE CException : public CObject
{ // abstract class for dynamic type checking DECLARE_DYNAMIC(CException) public:
// Constructors CException(); // sets m_bAutoDelete = TRUE explicit CException(BOOL bAutoDelete); // sets m_bAutoDelete = bAutoDelete // Operations
void Delete(); // use to delete exception in 'catch' block virtual BOOL GetErrorMessage(__out_ecount_z(nMaxError) LPTSTR lpszError, __in UINT nMaxError,
__out_opt PUINT pnHelpContext = NULL) const ; virtual BOOL GetErrorMessage(__out_ecount_z(nMaxError) LPTSTR lpszError, __in UINT nMaxError, __out_opt PUINT pnHelpContext = NULL); virtual int ReportError(UINT nType = MB_OK, UINT nMessageID = 0); // Implementation (setting m_bAutoDelete to FALSE is advanced)
public: virtual ~CException() = 0; BOOL m_bAutoDelete; #ifdef _DEBUG void PASCAL operator delete(void* pbData); #if _MSC_VER >= 1200 void PASCAL operator delete(void* pbData, LPCSTR lpszFileName, int nLine); #endif protected: BOOL m_bReadyForDelete; #endif }; |
|||||||||||||||||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
Here is my from afx.h class AFX_NOVTABLE CException //: public CObject{ // abstract class for dynamic type checking DECLARE_DYNAMIC(CException) public :// Constructors CException(); // sets m_bAutoDelete = TRUE explicit CException(BOOL bAutoDelete); // sets m_bAutoDelete = bAutoDelete // Operations void Delete(); // use to delete exception in 'catch' block virtual BOOL GetErrorMessage(__out_ecount_z(nMaxError) LPTSTR lpszError, __in UINT nMaxError, __out_opt PUINT pnHelpContext = NULL) const ; virtual BOOL GetErrorMessage(__out_ecount_z(nMaxError) LPTSTR lpszError, __in UINT nMaxError, __out_opt PUINT pnHelpContext = NULL); virtual int ReportError(UINT nType = MB_OK, UINT nMessageID = 0); // Implementation (setting m_bAutoDelete to FALSE is advanced) public :virtual ~CException() = 0; BOOL m_bAutoDelete; #ifdef _DEBUGvoid PASCAL operator delete(void* pbData); #if _MSC_VER >= 1200 void PASCAL operator delete(void* pbData, LPCSTR lpszFileName, int nLine); #endif protected: BOOL m_bReadyForDelete; #endif }; |
|||||||||||||||||
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
||||||||||||||||
Ok, i see that is not derived from cobject.
But it is no change from me. Maybe it comes
with the SP1 ???
|
|||||||||||||||||
Kite
Groupie Joined: 10 May 2004 Location: Belarus Status: Offline Points: 35 |
Post Options
Thanks(0)
|
||||||||||||||||
I have SP1 VS2005, but CException is still derived from CObject
class AFX_NOVTABLE CException : public CObject |
|||||||||||||||||
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
||||||||||||||||
I have a feeling this is a typical "Ctrl+Shift+H with afx.h mistakenly opened"-problem. I once screwed parts of STL by replacing code in certain header files that were open.
|
|||||||||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||||||||
Edit your afx.h file back.
As you can see it has DECLARE_DYNAMIC macro that can be used only with CObject derived classes.
|
|||||||||||||||||
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 |