Print Page | Close Window

How to create .XML file from .rc file?

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=3220
Printed Date: 15 May 2024 at 8:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to create .XML file from .rc file?
Posted By: panphone
Subject: How to create .XML file from .rc file?
Date Posted: 15 November 2005 at 1:41am

I want to design a Multi-Language application (like the ScribbleMultiLang sample).I have finished one Language version.What's the simplest way to create .XML file from .rc file? Don't tell me do it manually because my application has many dialog boxes and other resource.

thanks.




Replies:
Posted By: Oleg
Date Posted: 15 November 2005 at 2:06am

Hello,

We use Resource\XMLResource\Source project to convert dll resources to xml.

 



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


Posted By: panphone
Date Posted: 15 November 2005 at 6:39pm
Originally posted by oleg oleg wrote:

Hello,

We use Resource\XMLResource\Source project to convert dll resources to xml.

 

oleg , I don't understand yet.Please give me a very clear explanation.thank you!



Posted By: Oleg
Date Posted: 16 November 2005 at 2:06am

In you installation folder:

c:\program files\Codejock Software\...\Workspace\Resource\XMLResource\Source

you can find extractor resorces from exe/dll to xml file.

You can fix sorces a little - they only extract ToolkitPro resource for id range 9000-10000.



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


Posted By: panphone
Date Posted: 16 November 2005 at 6:39pm
I see.think you again.


Posted By: panphone
Date Posted: 06 December 2005 at 12:21am
A new problem is comming.The XTPResourceManagerXML(including other function) is useful.If the dialog is a modal dialog box I use InitModalIndirect(XTPResourceManager()->LoadDialogTemplat e(MAKEINTRESOURCE(IDD))) to create the dialog from XML file.If the dialog is a modeless dialog box I  use m_dlg.CreateIndirect(XTPResourceManager()->LoadDialogTemp late(MAKEINTRESOURCE(m_dlg.IDD)),this) to to create the dialog from XML file.If the dialog is a class base from CPropertyPage ,how can I do it?Because I don't know where CPropertySheet create the CPropertyPage instance.


Posted By: Oleg
Date Posted: 06 December 2005 at 8:48am

Hello:

See our CXTPCustomizeSheet sources:


void CXTPCustomizeSheet::AddPage(CPropertyPage* pPage)
{
 CPropertySheet::AddPage(pPage);

 LPCDLGTEMPLATE pResource = XTPResourceManager()->LoadDialogTemplate((UINT)(UINT_PTR) pPage->m_psp.pszTemplate);

 if (pResource)
 {
  pPage->m_psp.pResource = pResource;
  pPage->m_psp.dwFlags |= PSP_DLGINDIRECT;
 }
}



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


Posted By: panphone
Date Posted: 06 December 2005 at 7:11pm
thank you!


Posted By: manur0
Date Posted: 13 April 2006 at 10:33am
Hello,

I am wondering how to parse strings of a dialog loaded from a RC file ?

I think XMLResource can be a good example but I can't find "c:\program files\Codejock Software\...\Workspace\Resource\XMLResource\Source" in my installation folder !

I am using Xtreme Toolkit Pro v9.60.

Thanks


Posted By: Oleg
Date Posted: 13 April 2006 at 11:00am
It was added in later version. In 9.60 there is no way to hook it.

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