Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - write place of including "XTToolkitPro.rc"???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post Topic: write place of including "XTToolkitPro.rc"???
    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
.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 04 April 2007 at 5:10am
Hi,
 
Move it to res\xxx.rc2 file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2007 at 1:14am
Thanks Oleg...
regards,
-aims
.
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.172 seconds.