Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to create .XML file from .rc file?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to create .XML file from .rc file?

 Post Reply Post Reply
Author
Message
panphone View Drop Down
Newbie
Newbie


Joined: 15 November 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote panphone Quote  Post ReplyReply Direct Link To This Post Topic: How to create .XML file from .rc file?
    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.

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: 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
Back to Top
panphone View Drop Down
Newbie
Newbie


Joined: 15 November 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote panphone Quote  Post ReplyReply Direct Link To This Post 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!

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: 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
Back to Top
panphone View Drop Down
Newbie
Newbie


Joined: 15 November 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote panphone Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2005 at 6:39pm
I see.think you again.
Back to Top
panphone View Drop Down
Newbie
Newbie


Joined: 15 November 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote panphone Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
Back to Top
panphone View Drop Down
Newbie
Newbie


Joined: 15 November 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote panphone Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 7:11pm
thank you!
Back to Top
manur0 View Drop Down
Newbie
Newbie


Joined: 13 April 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote manur0 Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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.156 seconds.