Print Page | Close Window

write place of including "XTToolkitPro.rc"???

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=6794
Printed Date: 28 September 2024 at 11:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: write place of including "XTToolkitPro.rc"???
Posted By: aimslife
Subject: write place of including "XTToolkitPro.rc"???
Date Posted: 04 April 2007 at 2:55am
Hi,

i am making SDI application in vs2k5 and i am using CXTListView class for base class of my view class. i was enable sorting in my list view and its working fine in debug mode but application making crashes in release version. my release version contain static linking configuration with Codejok Toolkit, But i was solved this problem by including following lines in my (.rc) file.

#if !defined (_AFXDLL) || defined(_XTP_STATICLINK)
#include <XTToolkitPro.rc>
#endif

After placing these lines of code when i try to open view any resource from resource view of an application, my vs stop responding, but when i remove the above lines of code from (.rc) file then my project resource view working perfect...

following lines of code shows the placing of above lines of code in (.rc) file.

// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

#if !defined (_AFXDLL) || defined(_XTP_STATICLINK)
#include <XTToolkitPro.rc>
#endif

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED

Please guide me, what is the right place of writing include "XTToolkitPro.rc" file in (.rc) file or where i include "XTToolkitPro.rc" file in project??


-------------
regards,
-aims
.



Replies:
Posted By: Oleg
Date Posted: 04 April 2007 at 5:10am
Hi,
 
Move it to res\xxx.rc2 file.


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


Posted By: aimslife
Date Posted: 05 April 2007 at 1:14am
Thanks Oleg...

-------------
regards,
-aims
.



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