Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Problem with registration-free ActiveX-controls in a Visio Library (vsl) compiled with VS2015 (Platform Toolset: Visual Studio 2015 (v14.0)) on Visio 2016 (x86)

$
0
0

Downloadlink for the example and trial of SftTree OCX 7.04: download

Steps to reproduce the problem:

- Install Visio 2016 (x86) and the Visio 2013 SDK (for compiling a VSL) on your development environment with Visual Studio 2015 with Update 1 (on Windows 10; x64)

- Install the trial of SftTree OCX 7.04 (this ActiveX-control is used in the VSL; installation of SftTree OCX 7.04 is zipped in TreeOCX70IX86.zip) on your development environment

- Unzip the solution with two projects of VS2015IssueOnVisio2016WithRegistrationFreeActiveX.zip

- Open the solution ExampleVS2015IssueWithRegFreeCOMonVisio2016.sln with VS2015 Update 1 and set the startup project to Example

- Note that the Platform Toolset is set to Visual Studio 2013 (v12.0) of the VSL-project (named SampleVisioAddon)

- Make a release and click on the button 'Start Visio with VSL' (Visio 2016 is started with the VSL which is showing a dialog with a SftTree OCX ActiveX control)

- Copy the release (all files of output folder 'bin/x86' of the Example-C# project) to an environment with the following installed:

   * Visio 2016 (x86)

   * .NET Framework 4.6

   * Visual C++ Redistributable for Visual Studio 2013 (x86)

- Run the 'Example.exe' and click on the button 'Start Visio with VSL'. Visio 2016 (x86) is started with the VSL showing a dialog of the SftTree OCX ActiveX-control

- In the development environment set the Platform Toolset to Visual Studio 2015 (v14.0) of the VSL-project (named SampleVisioAddon)

- Make a release again and click on the button 'Start Visio with VSL' (Visio 2016 is started with the VSL which is showing a dialog with a SftTree OCX ActiveX control)

- Copy the release (all files of output folder 'bin/x86' of the Example-C# project) to an environment with the following installed:

   * Visio 2016 (x86)

   * .NET Framework 4.6

   * Visual C++ Redistributable for Visual Studio 2015 (x86)

- Run the 'Example.exe' and click on the button 'Start Visio with VSL'. Visio 2016 (x86) is started with the VSL, however the dialog is not shown...

Technical notes:

- A manifest is added to the VSL via the mt.exe-tool (via a post-build event)

- Any ActiveX-control which is not registered is not working, thus not only SftTree OCX 7.04 (to test this the manifest 'Mavim.vsl.x86.manifest' has to be adjusted of course)

- When Platform Toolset is set to Visual Studio 2013 (v12.0) of the VSL-project, the problem is not occurring. However, I would like to set the Platform Toolset is set to Visual Studio 2015 (v14.0) of course

- On an environment with another Visio version for example Visio 2013 (x86) the issue is not occurring, only with Visio 2016 (x86)


Viewing all articles
Browse latest Browse all 2257

Trending Articles