Print Page | Close Window

Initializing xtAfxData from resource dll

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=3060
Printed Date: 09 November 2025 at 9:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Initializing xtAfxData from resource dll
Posted By: saravanan
Subject: Initializing xtAfxData from resource dll
Date Posted: 19 October 2005 at 7:56am

hi Iam using a regular resource dll which will have all resources and xtreme resources.

In my application Iam initialzing the xtAfxData with resoruce dll instance by calling xtAfxData.InitResources(ressourcedll_instance)

This works fine when I include the xtresource.rc in the .rc2 file of main application

But it gives assertion in the XT_AUX_DATA::LoadSysCursors() for first time when xtAfxdata get initialized while calling xtAfxData.InitResources(ressourcedll_instance) if i removethe xtresource.rc.This is because it tries to get the cursor from the main application  handle

I dont want to include the xtresource.rc file in my main application.

To avoid this  I define _xt_uses_resource_dll macro but still the code  InitResources(NULL);

get called in the XT_AUX_DATA() xtglobal.cpp  constructor

 




Replies:
Posted By: Oleg
Date Posted: 19 October 2005 at 8:16am

You can remove ASSERTs and rebuild dll. In last release there are no ASSERT check in LoadSysCursors



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


Posted By: keikei
Date Posted: 24 October 2005 at 11:56pm
Originally posted by oleg oleg wrote:

You can remove ASSERTs and rebuild dll. In last release there are no ASSERT check in LoadSysCursors

I'm facing the same problem. The version of my XTremeToolkit is 4.1.

If I modified source file, then our all project members have to modify it.

I don't want to modify the source file of XTremeToolkit.

So, I searched updated version, but I can't find version 4.XX.

Has codejock released any update  for 4.10 ?

 




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