<?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 : Using the OCX file in C++</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Using the OCX file in C++]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 23:25:19 +0000</pubDate>
  <lastBuildDate>Fri, 13 Dec 2013 00:21:05 +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=22128</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[Using the OCX file in C++ : Hi guys,I&amp;#039;m developing my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22128&amp;PID=72131&amp;title=using-the-ocx-file-in-c#72131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8606">aaron1a12</a><br /><strong>Subject:</strong> 22128<br /><strong>Posted:</strong> 13 December 2013 at 12:21am<br /><br />Hi guys,<br /><br />I'm developing my application with Win32 API and wxWidgets in C++, and I wanted to skin the app so I decided to try out the ActiveX OCX version of Skin Framework from Codejocks. The problem is that all the samples are in C#, Vb, and VB.NET but NOT in C++! I assume because most C++ users will be going for MFC version but I'm not.<br /><br />Having very minimal knowledge in ATL, I have NO idea how to load the OCX in C++.  <br /><br />Could someone tell me what's wrong in my code?<br /><table width="99%"><tr><td><pre class="BBcode"><br />#include &lt;atlbase.h&gt;<br />#import "SkinFramework.ocx"<br /><br />...<br /><br />CoInitialize(NULL);<br /><br />_DSkinFrameworkPtr MySkinframework;<br />HRESULT instanceResult = MySkinframework.CreateInstance("{bdc91302-2481-46d0-a36c-164e03514d79}");<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;_com_error instanceErr(instanceResult);<br />&nbsp;&nbsp;&nbsp;&nbsp;LPCWSTR instanceErrMsg = instanceErr.ErrorMessage();<br />&nbsp;&nbsp;&nbsp;&nbsp;MessageBox(NULL, instanceErrMsg, L"CreateInstance Result", MB_OK);<br /><br />MySkinframework-&gt;AboutBox();<br /><br /></pre></td></tr></table><br /><br />CreateInstance throws a "The operation completed successfully" message but -&gt;AboutBox(); results in this: <br /><table width="99%"><tr><td><pre class="BBcode">Unhandled exception at 0x773276fd in TestApp.exe: Microsoft C++ exception: _com_error at memory location 0x001afb30..</pre></td></tr></table><br />Is this the proper way to interact with an OCX? Is it the proper way to use Skin Framework? Am I using the right class id? Please help <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" /><br />]]>
   </description>
   <pubDate>Fri, 13 Dec 2013 00:21:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22128&amp;PID=72131&amp;title=using-the-ocx-file-in-c#72131</guid>
  </item> 
 </channel>
</rss>