Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Sending in the License key after control creation (Read 4295 times)
mattref
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Oct 17th, 2007
Sending in the License key after control creation
Oct 17th, 2007 at 4:15pm
Print Post  
Hi,

We are currently implementing FlowChartXPro 4.1.4 to be used by our MMC snap-in, and are currently facing a problem when it comes to sending in the license key via the Create method. This is because MMC is creating the FlowChartX object for us (via GetResultViewType) - we're simply giving it the FlowChartX GUID.

Can we possibly provide the license key after MMC creates the FlowChartX control instance?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Sending in the License key after control creat
Reply #1 - Oct 17th, 2007 at 4:42pm
Print Post  
Hi,

The only method to create a FlowChartX instance is by means of the IClassFactory2 interface, which unfortunately is not supported by MMC.

A workaround is to create an ActiveX control that wraps FlowChartX. E.g. use the ATL Composite Control project and add FlowChartX as the only child of the composite control dialog resource. ATL will take care of the licensing stuff, and the wrapper control itself won't need a runtime license, so you will be able to use it in MMC.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
mattref
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Oct 17th, 2007
Re: Sending in the License key after control creat
Reply #2 - Oct 17th, 2007 at 6:13pm
Print Post  
First off, thanks for the quick response Smiley.

We are currently looking for quicker alternatives (the wrapper approach is a good one, but we would have to change a few things, and it may take too long at this point). For example, we could instead use an HTML page which has an instance of the FlowChartX Control loaded. This approach offers its own issues on our end, but we were wondering if you offered another means of specifying the license, at this point. While we could simply mimic the normal steps of specifying the license via JavaScript, we were wondering if you had any alternative means of doing so (from an HTML page).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Sending in the License key after control creat
Reply #3 - Oct 18th, 2007 at 5:01am
Print Post  
Follow these steps to load FlowchartX (or any other licensed control) in a web page:

1. download Lpk_tool.exe from http://download.microsoft.com
2. run the tool on a computer where you have installed the control for design-time use
3. select the control in the list displayed by LPK_tool and click Add
4. Click "Save & Exit" and choose a name for the license file
5. In the HTML page add an OBJECT tag to load the IE license manager. The license manager CLSID is "5220cb21-c88d-11cf-b347-00aa00a28331", and it must appear before any other controls in the page
6. Add a <PARAM NAME="LPKPath" VALUE="relative URL to .LPK file"> to the license manager' OBJECT tag
7. Add the OBJECT tag for FlowChartX

You can see how the OBJECT tags are used in the FlowchartX online demo.

If nor the wrapper control neither the web page approach works for you, we can build a custom version of FlowChartX that will check the runtime license key by other means, e.g. a Windows named mutex object.

Stoyan
  
Back to top
 
IP Logged
 
mattref
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Oct 17th, 2007
Re: Sending in the License key after control creat
Reply #4 - Oct 18th, 2007 at 12:23pm
Print Post  
Excellent - Thank you for the information.

While we were waiting for a response, we ended up trying the wrapper approach. We're still unsure of which approach we will take (HTML, or wrapper), but at the moment, completing the wrapper would be preferable.

When we register the FlowChartXPro DLL and execute our code (using our new wrapper), we get the following error:

0x80040112 Class is not licensed for use

This looks like we simply need the license string from you guys. I will e-mail:

support AT mindfusion DOT org

requesting the license string.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint