﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Bluebit Software Support Forum / Technical Support and Help / Matrix ActiveX Component  / Registering program in C++ / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Bluebit Software Support Forum</description><link>http://www.bluebit.gr/forum/</link><webMaster>support@bluebit.gr</webMaster><lastBuildDate>Wed, 08 Feb 2012 18:16:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Registering program in C++</title><link>http://www.bluebit.gr/forum/Topic443-1-1.aspx</link><description>Please try the following code: &lt;P&gt;[code]&lt;BR&gt;#include "stdafx.h"&lt;BR&gt;#include "iostream.h"&lt;BR&gt;#import "bluebitmatrix31.dll" no_namespace&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;BR&gt;IMatrix * regMatrix;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;BR&gt; &lt;/P&gt;&lt;P&gt;HRESULT TestRegistration()&lt;BR&gt;{&lt;BR&gt; HRESULT hr;&lt;BR&gt; hr = ::CoCreateInstance(__uuidof(Matrix), NULL, CLSCTX_INPROC, __uuidof(IMatrix), (void**)&amp;amp; regMatrix);&lt;BR&gt; if(FAILED(hr))&lt;BR&gt;  return hr;  &lt;/P&gt;&lt;P&gt; regMatrix-&amp;gt;Register( "Your registration Name", "Your Key"); &lt;BR&gt; cout &amp;lt;&amp;lt; regMatrix-&amp;gt;Version ; &lt;/P&gt;&lt;P&gt; return hr;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;int main(int argc, char* argv[])&lt;BR&gt;{&lt;BR&gt; ::CoInitialize(NULL);&lt;BR&gt; TestRegistration();&lt;BR&gt; //cout &amp;lt;&amp;lt; "Please press return to exit";&lt;BR&gt; //cin.get();&lt;BR&gt; CoUninitialize();    // clearup&lt;BR&gt; return 0;&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;[/code]</description><pubDate>Fri, 05 Oct 2007 14:30:53 GMT</pubDate><dc:creator>Trifon</dc:creator></item><item><title>Registering program in C++</title><link>http://www.bluebit.gr/forum/Topic443-1-1.aspx</link><description>I have a valid registration name and key, but I am not getting a valid version back.&lt;/P&gt;&lt;P&gt;I have declared a IMatrix * in my program "View" class.  On creation of the class I create the IMatrix object, then register the program using the name and key sent with the program.&lt;/P&gt;&lt;P&gt;When I actually use the matrix dll, I write the version to a file and its just a bunch of unprintable characters.&lt;/P&gt;&lt;P&gt;A response would be appreciated.&lt;/P&gt;&lt;P&gt;Marmot</description><pubDate>Fri, 05 Oct 2007 13:38:01 GMT</pubDate><dc:creator>Marmot</dc:creator></item></channel></rss>
