Print Page | Close Window

11.1.2

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=7213
Printed Date: 12 November 2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 11.1.2
Posted By: djenric
Subject: 11.1.2
Date 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.
 
see:

http://msdn2.microsoft.com/en-us/library/e8e2b021%28VS.80%29.aspx - http://msdn2.microsoft.com/en-us/library/e8e2b021(VS.80).aspx
 
and
 
http://msdn2.microsoft.com/en-us/library/19z28s5c%28VS.80%29.aspx - http://msdn2.microsoft.com/en-us/library/19z28s5c(VS.80).aspx
 
maybe you can fix this before more people had the same problem.
 



Replies:
Posted By: Oleg
Date Posted: 23 May 2007 at 9:10am
Hello,
 
Please show BuildLog.htm.. . What errors generate your  VisualStudio?


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


Posted By: djenric
Date Posted: 23 May 2007 at 9:42am
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.


Posted By: djenric
Date Posted: 23 May 2007 at 9:50am
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.


Posted By: noldo66
Date Posted: 23 May 2007 at 1:22pm
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


Posted By: Oleg
Date Posted: 23 May 2007 at 1:41pm
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


Posted By: djenric
Date Posted: 24 May 2007 at 9:37am
Sorry, my fault.
Here is the build.log of wordpad:
 
Buildprotokoll
  

Erstellen wurde gestartet: Projekt: "WordPad", Konfiguration: "Release|Win32"

Befehlszeilen
  
Die temporäre Datei "c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\Release\vc80\RSP00000157884124.rsp" wird erstellt. Inhalt:
[
/O2 /Ob1 /I "../../../Source" /I "../../AboutDlg" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /GF /FD /EHsc /MD /Gy /Yu"stdafx.h" /Fp".\Release/vc80/wordpad.pch" /Fo".\Release/vc80/" /Fd".\Release/vc80/" /FR".\Release/vc80\\" /W3 /c ".\wordpdoc.cpp"
]Erstellen der Befehlszeile "cl.exe @"c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\Release\vc80\RSP00000157884124.rsp" /nologo /errorReport:prompt"Die temporäre Datei "c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\Release\vc80\RSP00000257884124.rsp" wird erstellt. Inhalt:
[
/o ".\Release/vc80/WordPad.bsc"

".\Release\vc80\chicdial.sbr"

".\Release\vc80\cntritem.sbr"

".\Release\vc80\colorlis.sbr"

".\Release\vc80\ControlSelector.sbr"

".\Release\vc80\datedial.sbr"

".\Release\vc80\ddxm.sbr"

".\Release\vc80\docopt.sbr"

".\Release\vc80\doctype.sbr"

".\Release\vc80\filenewd.sbr"

".\Release\vc80\formatpa.sbr"

".\Release\vc80\formatta.sbr"

".\Release\vc80\key.sbr"

".\Release\vc80\listdlg.sbr"

".\Release\vc80\mainfrm.sbr"

".\Release\vc80\multconv.sbr"

".\Release\vc80\options.sbr"

".\Release\vc80\optionsh.sbr"

".\Release\vc80\pageset.sbr"

".\Release\vc80\ruler.sbr"

".\Release\vc80\splash.sbr"

".\Release\vc80\srvritem.sbr"

".\Release\vc80\stdafx.sbr"

".\Release\vc80\strings.sbr"

".\Release\vc80\unitspag.sbr"

".\Release\vc80\wordpad.sbr"

".\Release\vc80\wordpdoc.sbr"

".\Release\vc80\wordpvw.sbr"

".\Release\vc80\buttondi.sbr"
]Erstellen der Befehlszeile "bscmake.exe @"c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\Release\vc80\RSP00000257884124.rsp" /nologo"
Ausgabefenster
  
Kompilieren...
wordpdoc.cpp
.\wordpdoc.cpp(102) : error C2039: 'IsKindOf': Ist kein Element von 'CException'
        C:\Programme\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h(868): Siehe Deklaration von 'CException'
Browseinformationsdatei wird erstellt...
Microsoft Browse Information Maintenance-Programm Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Ergebnisse
  
Das Buildprotokoll wurde unter "file://c:\Programme\Codejock Software\MFC\Xtreme ToolkitPro v11.1.2\Samples\UserInterface\GUI_Office11\Release\vc80\BuildLog.htm" gespeichert.
WordPad - 1 Fehler, 0 Warnung(en)
But its only in german.
 
thx


Posted By: djenric
Date Posted: 24 May 2007 at 9:40am

And here infos of the about box:

Microsoft Visual Studio 2005
Version 8.0.50727.762  (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installierte Edition: Professional

Microsoft Visual Basic 2005   77891-009-1008784-41040
Microsoft Visual Basic 2005

Microsoft Visual C# 2005   77891-009-1008784-41040
Microsoft Visual C# 2005

Microsoft Visual C++ 2005   77891-009-1008784-41040
Microsoft Visual C++ 2005

Microsoft Visual J# 2005   77891-009-1008784-41040
Microsoft Visual J# 2005

Microsoft Visual Web Developer 2005   77891-009-1008784-41040
Microsoft Visual Web Developer 2005

Microsoft Web Application Projects 2005   77891-009-1008784-41040
Microsoft Web Application Projects 2005
Version 8.0.50727.762

Crystal Report    AAC60-H0CSA4B-U700045
Crystal Reports für Visual Studio 2005


Intel(R) C++ Compiler Integration   
Intel(R) C++ Compiler Integration for Microsoft Visual Studio 2005, Version 9.1.621.2005 , Copyright (C) 2002-2006 Intel Corporation.

Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1 (KB926606)  
Dies ist ein Service Pack für Microsoft Visual Studio 2005 Professional Edition - DEU.
Wenn Sie zu einem späteren Zeitpunkt einen aktuelleren Service Pack installieren, wird dieser Service Pack automatisch deinstalliert.
Weitere Informationen erhalten Sie unter http://support.microsoft.com/kb/926606 - http://support.microsoft.com/kb/926606

Visual Assist X  
For more information about Visual Assist, see the Whole Tomato Software website at http://www.WholeTomato.com - http://www.WholeTomato.com . For customer support, email mailto:Support@WholeTomato.com - Support@WholeTomato.com . Copyright (c) 1997-2004 Whole Tomato Software,  Inc.

Xtreme Toolkit Pro for Visual C++ .NET   11.1
Xtreme Toolkit Pro for Visual C++ .NET
Copyright ©1998-2007 Codejock Software. All rights reserved.
http://www.codejock.com - www.codejock.com

thx


Posted By: Oleg
Date Posted: 24 May 2007 at 10:00am
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


Posted By: djenric
Date Posted: 24 May 2007 at 10:05am

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 _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

};



Posted By: djenric
Date Posted: 24 May 2007 at 10:10am
Ok, i see that is not derived from cobject.
But it is no change from me. Maybe it comes
with the SP1 ???
 


Posted By: Kite
Date Posted: 24 May 2007 at 3:16pm
I have SP1 VS2005, but CException is still derived from CObject

class AFX_NOVTABLE CException : public CObject



Posted By: znakeeye
Date Posted: 24 May 2007 at 5:32pm
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.


Posted By: Oleg
Date Posted: 25 May 2007 at 1:31am
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



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