<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Linking styles statically</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Linking styles statically]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 03:52:01 +0000</pubDate>
  <lastBuildDate>Thu, 04 May 2006 17:28:52 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=4108</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Linking styles statically :   oleg wrote:CString(lpszReso...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12685&amp;title=linking-styles-statically#12685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 04 May 2006 at 5:28pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />CString(lpszResourcePath).Find(_T("Office2007"))&nbsp; will still present, so if user browse it it will use correct Schema....</td></tr></table></P><P>That assumes that the file will not be renamed. What if the user renames <EM>Office2007.cjstyles</EM> to <EM>renamed.cjstyles</EM>?</P><P>Adding the schema to the ini file would be the best idea.</P>]]>
   </description>
   <pubDate>Thu, 04 May 2006 17:28:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12685&amp;title=linking-styles-statically#12685</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically : Hello, CString(lpszResourcePa...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12681&amp;title=linking-styles-statically#12681</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 04 May 2006 at 4:53pm<br /><br /><P>Hello,</P><P>CString(lpszResourcePath).Find(_T("Office2007"))&nbsp; will still present, so if user browse it it will use correct Schema.... </P><P>I guess we will add parameter to ini file what shema to use.</P>]]>
   </description>
   <pubDate>Thu, 04 May 2006 16:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12681&amp;title=linking-styles-statically#12681</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically :   oleg wrote:For next vresion...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12671&amp;title=linking-styles-statically#12671</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 04 May 2006 at 1:00pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />For next vresion we will add SetShema method to allow you manually set CXTPSkinManagerSchemaOffice2007 class.</td></tr></table></P><P>Thanks, that would solve my problems, but is still not perfect. Users should be able to browse for *.cjstyles and *.msstyles skins, so&nbsp;wheter at compile nor at runtime I know the schema of the file.</P>]]>
   </description>
   <pubDate>Thu, 04 May 2006 13:00:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12671&amp;title=linking-styles-statically#12671</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically : Yes, right, please just change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12660&amp;title=linking-styles-statically#12660</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 04 May 2006 at 11:08am<br /><br /><P>Yes, right, please just change code now. For next vresion we will add SetShema method to allow you manually set CXTPSkinManagerSchemaOffice2007 class.</P><P>Thanks for this point.</P>]]>
   </description>
   <pubDate>Thu, 04 May 2006 11:08:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12660&amp;title=linking-styles-statically#12660</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically : I&amp;#039;ve figured out why it didn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12638&amp;title=linking-styles-statically#12638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 03 May 2006 at 6:23pm<br /><br /><P>I've figured out why it didn't worked, the problem is in CXTPSkinManager::LoadSkin</P><P>&nbsp;BOOL bOffice2007 = CString(lpszResourcePath).Find(_T("Office2007")) &gt; 0;<BR>&nbsp;m_pSchema = bOffice2007 ? new CXTPSkinManagerSchemaOffice2007(this) : new CXTPSkinManagerSchemaDefault(this);<BR></P><P>I had to add "Office2007" to my executables name and then it worked fine.</P><P>Please change, overload or whatever it with CXTPSkinManager::LoadSkin(LPCTSTR lpszResourcePath, LPCTSTR lpszIniFileName, XTPSkin skin=xtpSkinOffice2007) or whatever...</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 18:23:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12638&amp;title=linking-styles-statically#12638</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically :   ABuenger wrote: Thanks, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12616&amp;title=linking-styles-statically#12616</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1801">rmercer</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 03 May 2006 at 11:32am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by ABuenger" alt="Originally posted by ABuenger" style="vertical-align: text-bottom;" /> <strong>ABuenger wrote:</strong><br /><br /><P>Thanks, but I would like to avoid to write the skin to a temporary file because that requires write permissions.</P><P></td></tr></table> </P><P>Your users don't have write permission to their temp folder?&nbsp; Okay, I'll let Oleg assist from here.</P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 11:32:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12616&amp;title=linking-styles-statically#12616</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically : Ok, I&amp;#039;ve added the Office2007.rc...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12607&amp;title=linking-styles-statically#12607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 03 May 2006 at 10:10am<br /><br /><P>Ok, I've added the Office2007.rc to my rc2 file, added "..\Source\SkinFramework\Styles\Office2007" to my include folders and it compiles and it loads the skin, but the result is not what I've expected:</P><P><IMG src="uploads/ABuenger/2006-05-03_100914_static_styles.png" border="0"></P><P>That doesn't look like Office 2007 for me <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"></P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 10:10:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12607&amp;title=linking-styles-statically#12607</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically : Thanks, but I would like to avoid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12605&amp;title=linking-styles-statically#12605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 03 May 2006 at 9:46am<br /><br /><P>Thanks, but I would like to avoid to write the skin to a temporary file because that requires write permissions.</P><P>I hope Oleg has a suggestion how to load it directly from the EXE.</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> Just specify your executable file in firsts parameter of LoadSkin.</td></tr></table></P><P>Wouldn't&nbsp;that have the disadvantage that something that is already loaded is loaded (duplicated) again?</P><P><EM>CXTPSkinManager::SetResourceFile</EM> looks promising.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 09:46:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12605&amp;title=linking-styles-statically#12605</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically :   ABuenger wrote: Tried to add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12604&amp;title=linking-styles-statically#12604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1801">rmercer</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 03 May 2006 at 9:32am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by ABuenger" alt="Originally posted by ABuenger" style="vertical-align: text-bottom;" /> <strong>ABuenger wrote:</strong><br /><br /><P>Tried to add the .cjstyles file to the resources, but in <EM>CXTPSkinManagerResourceFile::Open </EM>the resource can not be found, the following line failes.</P><P>HRSRC hRsrc = FindResource(m_hModule, strFilePath, _T("TEXTFILE"));</P><P>I guess the problem is that the TEXTFILE resource is wrapped in the executable.</P><P>My executable \ cjstyles (executable) \ TEXTFILE resource</P><P>Then I've tried to add the "SkinFramework/Styles/Office2007/Office2007.rc" file to my resources,&nbsp;which results in "file not found: res\Office2007_Normal.ini" errors.</P><P>Should I add the cjstyles or rc file to my resources?</P><P></td></tr></table> </P><P>Excuse any typos since I'm typing this in on the fly...</P><P>// CString m_strSkinTempFilename<BR>HRSRC&nbsp;&nbsp;&nbsp;hResource;<BR>HGLOBAL&nbsp;&nbsp;&nbsp;hGlbl;<BR>LPVOID&nbsp;&nbsp;&nbsp;hLockedResource;<BR>long&nbsp;&nbsp;&nbsp;l;<BR>FILE&nbsp;&nbsp;&nbsp;*fTemp;</P><P>if ( (hResource = FindResource(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MYSKINRESOURCE), _T("TEXTFILE")) ) != NULL)<BR>{<BR>&nbsp;if ( (hGlbl = LoadResource(AfxGetInstanceHandle(), hResource) ) != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;l = SizeofResource(AfxGetInstanceHandle(), hResource);<BR>&nbsp;&nbsp;&nbsp;if ( (hLockedResource = LockResource(hGlbl)) != NULL)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if ((fTemp = _fsopen(m_strSkinTempFilename, "wb+", SH_DENYWR)) != NULL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fwrite(hLockedResource, 1, l, fTemp);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(fTemp);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;DeleteObject(hLockedResource);</P><P>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;DeleteObject(hGlbl);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;}<BR>&nbsp;DeleteObject(hResource);</P><P>}</P><P>...</P><P>CXTPSkinManager()-&gt;LoadSkin(m_strSkinTempFilename);</P><P>...</P><P>Don't forget to delete the tempfile at shutdown, and you'll want to add some additional code to confirm that the skin was actually loaded.</P><P>Oleg's suggestion may work too, however I'm not familiar with what he's talking about, so I'll leave it up to him to assist you.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 09:32:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12604&amp;title=linking-styles-statically#12604</guid>
  </item> 
  <item>
   <title><![CDATA[Linking styles statically :   oleg wrote:I guess it will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12589&amp;title=linking-styles-statically#12589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4108<br /><strong>Posted:</strong> 02 May 2006 at 3:30pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />I guess it will work even without creating temporary file. Just specify your executable file in firsts parameter of LoadSkin.</td></tr></table> </P><P>Tried to add the .cjstyles file to the resources, but in <EM>CXTPSkinManagerResourceFile::Open </EM>the resource can not be found, the following line failes.</P><P>HRSRC hRsrc = FindResource(m_hModule, strFilePath, _T("TEXTFILE"));</P><P>I guess the problem is that the TEXTFILE resource is wrapped in the executable.</P><P>My executable \ cjstyles (executable) \ TEXTFILE resource</P><P>Then I've tried to add the "SkinFramework/Styles/Office2007/Office2007.rc" file to my resources,&nbsp;which results in "file not found: res\Office2007_Normal.ini" errors.</P><P>Should I add the cjstyles or rc file to my resources?</P>]]>
   </description>
   <pubDate>Tue, 02 May 2006 15:30:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4108&amp;PID=12589&amp;title=linking-styles-statically#12589</guid>
  </item> 
 </channel>
</rss>