Commit 9e5379fe authored by Oleg Korshul's avatar Oleg Korshul

тестовый пример для .net и com dll

parent a5f8a0c3
...@@ -35,6 +35,9 @@ __interface IASCDocBuilder : IDispatch ...@@ -35,6 +35,9 @@ __interface IASCDocBuilder : IDispatch
[id(107)] HRESULT RunText([in] BSTR commands, [out, retval] VARIANT_BOOL* result); [id(107)] HRESULT RunText([in] BSTR commands, [out, retval] VARIANT_BOOL* result);
[id(108)] HRESULT SetProperty([in] BSTR sproperty); [id(108)] HRESULT SetProperty([in] BSTR sproperty);
[id(201)] HRESULT Initialize(void);
[id(202)] HRESULT Dispose(void);
[id(1001)] HRESULT SetAdditionalParam([in] BSTR ParamName, [in] VARIANT ParamValue); [id(1001)] HRESULT SetAdditionalParam([in] BSTR ParamName, [in] VARIANT ParamValue);
[id(1002)] HRESULT GetAdditionalParam([in] BSTR ParamName, [out, retval] VARIANT* ParamValue); [id(1002)] HRESULT GetAdditionalParam([in] BSTR ParamName, [out, retval] VARIANT* ParamValue);
}; };
...@@ -131,7 +134,7 @@ public: ...@@ -131,7 +134,7 @@ public:
if (NULL == m_pBuilder) if (NULL == m_pBuilder)
return S_FALSE; return S_FALSE;
bool bRet = m_pBuilder->Run(commands); bool bRet = m_pBuilder->RunTextW(commands);
*result = bRet ? VARIANT_TRUE : VARIANT_FALSE; *result = bRet ? VARIANT_TRUE : VARIANT_FALSE;
return S_OK; return S_OK;
} }
...@@ -155,12 +158,12 @@ public: ...@@ -155,12 +158,12 @@ public:
return S_OK; return S_OK;
} }
static HRESULT Initialize() STDMETHOD(Initialize)()
{ {
NSDoctRenderer::CDocBuilder::Initialize(); NSDoctRenderer::CDocBuilder::Initialize();
return S_OK; return S_OK;
} }
static HRESULT Dispose() STDMETHOD(Dispose)()
{ {
NSDoctRenderer::CDocBuilder::Dispose(); NSDoctRenderer::CDocBuilder::Dispose();
return S_OK; return S_OK;
......
#include "stdafx.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly:AssemblyTitleAttribute(L"doctrendererwrapper")];
[assembly:AssemblyDescriptionAttribute(L"")];
[assembly:AssemblyConfigurationAttribute(L"")];
[assembly:AssemblyCompanyAttribute(L"")];
[assembly:AssemblyProductAttribute(L"doctrendererwrapper")];
[assembly:AssemblyCopyrightAttribute(L"Copyright (c) 2016")];
[assembly:AssemblyTrademarkAttribute(L"")];
[assembly:AssemblyCultureAttribute(L"")];
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly:AssemblyVersionAttribute("1.0.*")];
[assembly:ComVisible(false)];
[assembly:CLSCompliantAttribute(true)];
\ No newline at end of file
========================================================================
DYNAMIC LINK LIBRARY : doctrendererwrapper Project Overview
========================================================================
AppWizard has created this doctrendererwrapper DLL for you.
This file contains a summary of what you will find in each of the files that
make up your doctrendererwrapper application.
doctrendererwrapper.vcxproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
doctrendererwrapper.vcxproj.filters
This is the filters file for VC++ projects generated using an Application Wizard.
It contains information about the association between the files in your project
and the filters. This association is used in the IDE to show grouping of files with
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
"Source Files" filter).
doctrendererwrapper.cpp
This is the main DLL source file.
doctrendererwrapper.h
This file contains a class declaration.
AssemblyInfo.cpp
Contains custom attributes for modifying assembly metadata.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
// stdafx.cpp : source file that includes just the standard includes
// doctrendererwrapper.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
Binary files a/DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.rc and /dev/null differ Binary files a/DesktopEditor/doctrenderer/test_builder/docbuilder/doctrendererwrapper/app.rc and /dev/null differ
// This is the main DLL file.
#include "stdafx.h"
#include "doctrendererwrapper.h"
#include "../../../docbuilder.h"
#ifdef _WIN64
#pragma comment(lib, "../../../../../build/lib/win_64/doctrenderer.lib")
#else
#pragma comment(lib, "../../../../../build/lib/win_32/doctrenderer.lib")
#endif
namespace doctrendererwrapper {
static wchar_t* StringToStdString(String^ param)
{
return (wchar_t*)System::Runtime::InteropServices::Marshal::StringToHGlobalUni(param).ToPointer();
}
ref class CWrapper_Private
{
public:
NSDoctRenderer::CDocBuilder* m_pBuilder;
CWrapper_Private(bool bIsCheckSystemFonts)
{
m_pBuilder = new NSDoctRenderer::CDocBuilder(bIsCheckSystemFonts);
}
~CWrapper_Private()
{
delete m_pBuilder;
}
};
CWrapper::CWrapper(bool bIsCheckSystemFonts)
{
m_pInternal = gcnew CWrapper_Private(bIsCheckSystemFonts);
}
CWrapper::~CWrapper()
{
delete m_pInternal;
}
bool CWrapper::OpenFile(String^ path, String^ params)
{
return m_pInternal->m_pBuilder->OpenFile(StringToStdString(path), StringToStdString(params));
}
bool CWrapper::CreateFile(int type)
{
return m_pInternal->m_pBuilder->CreateFile(type);
}
void CWrapper::SetTmpFolder(String^ folder)
{
m_pInternal->m_pBuilder->SetTmpFolder(StringToStdString(folder));
}
bool CWrapper::SaveFile(int type, String^ path)
{
return m_pInternal->m_pBuilder->SaveFile(type, StringToStdString(path));
}
void CWrapper::CloseFile()
{
m_pInternal->m_pBuilder->CloseFile();
}
bool CWrapper::ExecuteCommand(String^ command)
{
return m_pInternal->m_pBuilder->ExecuteCommand(StringToStdString(command));
}
bool CWrapper::Run(String^ path)
{
return m_pInternal->m_pBuilder->Run(StringToStdString(path));
}
bool CWrapper::RunText(String^ text)
{
return m_pInternal->m_pBuilder->RunTextW(StringToStdString(text));
}
void CWrapper::Initialize()
{
NSDoctRenderer::CDocBuilder::Initialize();
}
void CWrapper::Destroy()
{
NSDoctRenderer::CDocBuilder::Dispose();
}
}
// doctrendererwrapper.h
#pragma once
using namespace System;
namespace doctrendererwrapper {
ref class CWrapper_Private;
public ref class CWrapper
{
public:
CWrapper(bool bIsCheckSystemFonts);
~CWrapper();
bool OpenFile(String^ path, String^ params);
bool CreateFile(int type);
void SetTmpFolder(String^ folder);
bool SaveFile(int type, String^ path);
void CloseFile();
bool ExecuteCommand(String^ command);
bool Run(String^ path);
bool RunText(String^ text_commands);
static void Initialize();
static void Destroy();
private:
CWrapper_Private^ m_pInternal;
};
}
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{10124551-28B8-4CA0-8FBA-420CF9602CF3}</ProjectGuid>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<Keyword>ManagedCProj</Keyword>
<RootNamespace>doctrendererwrapper</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)\test\bin</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)\test\bin</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies />
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>
</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies />
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>
</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="doctrendererwrapper.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="Stdafx.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="AssemblyInfo.cpp" />
<ClCompile Include="doctrendererwrapper.cpp" />
<ClCompile Include="Stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="app.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="doctrendererwrapper.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="doctrendererwrapper.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="AssemblyInfo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image Include="app.ico">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
</Project>
\ No newline at end of file
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by app.rc
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup> </startup>
</configuration> </configuration>
\ No newline at end of file
namespace test namespace test
{ {
partial class MainForm partial class MainForm
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
{ {
components.Dispose(); components.Dispose();
} }
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.SuspendLayout(); this.SuspendLayout();
// //
// MainForm // MainForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F); this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1806, 1090); this.ClientSize = new System.Drawing.Size(1806, 1090);
this.Name = "MainForm"; this.Name = "MainForm";
this.Text = "Form1"; this.Text = "Form1";
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
} }
} }
using System; //#define NET_DLL
using System.Collections.Generic;
using System.ComponentModel; using System;
using System.Data; using System.Collections.Generic;
using System.Drawing; using System.ComponentModel;
using System.Linq; using System.Data;
using System.Text; using System.Drawing;
using System.Threading.Tasks; using System.Linq;
using System.Windows.Forms; using System.Text;
using System.Threading.Tasks;
namespace test using System.Windows.Forms;
{
public partial class MainForm : Form namespace test
{ {
public TabControl m_oTabControl = new TabControl(); public partial class MainForm : Form
{
public MainForm() public TabControl m_oTabControl = new TabControl();
{
InitializeComponent(); public MainForm()
{
this.Text = "Document Builder"; InitializeComponent();
m_oTabControl.SetBounds(0, 0, this.ClientSize.Width, this.ClientSize.Height - 50); this.Text = "Document Builder";
m_oTabControl.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
this.Controls.Add(m_oTabControl); m_oTabControl.SetBounds(0, 0, this.ClientSize.Width, this.ClientSize.Height - 50);
m_oTabControl.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
AddTab("builder.SetTmpFolder(\"D:/BuilderTest\");\r\n" + this.Controls.Add(m_oTabControl);
"#builder.CreateFile(\"docx\");\r\n" +
"builder.OpenFile(\"D:/TESTFILES/images.docx\", \"\");\r\n" + AddTab("builder.SetTmpFolder(\"D:/BuilderTest\");\r\n" +
"Add_Text(\"Test\");\r\n" + "#builder.CreateFile(\"docx\");\r\n" +
"builder.SaveFile(\"pdf\", \"D:/TESTFILES/images.pdf\");\r\n" + "builder.OpenFile(\"D:/TESTFILES/images.docx\", \"\");\r\n" +
"builder.CloseFile();"); "builder.SaveFile(\"pdf\", \"D:/TESTFILES/images.pdf\");\r\n" +
"builder.CloseFile();");
int nButtonsHeight = 30;
int nButtonsTop = this.ClientSize.Height - ((50 + nButtonsHeight) / 2); int nButtonsHeight = 30;
int nButtonsWidth = 100; int nButtonsTop = this.ClientSize.Height - ((50 + nButtonsHeight) / 2);
int nButtonsBetween = 10; int nButtonsWidth = 100;
int nButtonsRight = 10; int nButtonsBetween = 10;
int nButtonsRight = 10;
Button _buttonNew = new Button();
_buttonNew.SetBounds(this.ClientSize.Width - nButtonsRight - 2 * nButtonsWidth - nButtonsBetween, nButtonsTop, nButtonsWidth, nButtonsHeight); Button _buttonNew = new Button();
_buttonNew.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; _buttonNew.SetBounds(this.ClientSize.Width - nButtonsRight - 2 * nButtonsWidth - nButtonsBetween, nButtonsTop, nButtonsWidth, nButtonsHeight);
_buttonNew.Text = "New Test"; _buttonNew.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
_buttonNew.Click += _buttonNew_Click; _buttonNew.Text = "New Test";
this.Controls.Add(_buttonNew); _buttonNew.Click += _buttonNew_Click;
this.Controls.Add(_buttonNew);
Button _buttonRun = new Button();
_buttonRun.SetBounds(this.ClientSize.Width - nButtonsRight - nButtonsWidth, nButtonsTop, nButtonsWidth, nButtonsHeight); Button _buttonRun = new Button();
_buttonRun.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; _buttonRun.SetBounds(this.ClientSize.Width - nButtonsRight - nButtonsWidth, nButtonsTop, nButtonsWidth, nButtonsHeight);
_buttonRun.Text = "Run"; _buttonRun.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
_buttonRun.Click += _buttonRun_Click; _buttonRun.Text = "Run";
_buttonRun.BackColor = Color.Green; _buttonRun.Click += _buttonRun_Click;
_buttonRun.ForeColor = Color.White; _buttonRun.BackColor = Color.Green;
this.Controls.Add(_buttonRun); _buttonRun.ForeColor = Color.White;
this.Controls.Add(_buttonRun);
doctrendererwrapper.CWrapper.Initialize();
#if (NET_DLL)
this.Disposed += MainForm_Disposed; docbuilder_net.CDocBuilder.Initialize();
} #else
ascdocbuilder.IASCDocBuilder oBuilder = new ascdocbuilder.CASCDocBuilder();
void MainForm_Disposed(object sender, EventArgs e) oBuilder.Initialize();
{ #endif
doctrendererwrapper.CWrapper.Destroy();
} this.Disposed += MainForm_Disposed;
}
void _buttonRun_Click(object sender, EventArgs e)
{ void MainForm_Disposed(object sender, EventArgs e)
doctrendererwrapper.CWrapper oBuilder = new doctrendererwrapper.CWrapper(false); {
oBuilder.RunText(this.m_oTabControl.SelectedTab.Controls[0].Text); #if (NET_DLL)
oBuilder.Dispose(); docbuilder_net.CDocBuilder.Destroy();
} #else
ascdocbuilder.IASCDocBuilder oBuilder = new ascdocbuilder.CASCDocBuilder();
void _buttonNew_Click(object sender, EventArgs e) oBuilder.Dispose();
{ #endif
AddTab(""); }
}
void _buttonRun_Click(object sender, EventArgs e)
private void AddTab(string _code) {
{ #if (NET_DLL)
TabPage _page = new TabPage("Test №" + Convert.ToString(m_oTabControl.TabCount + 1)); docbuilder_net.CDocBuilder oBuilder = new docbuilder_net.CDocBuilder(true);
oBuilder.RunText(this.m_oTabControl.SelectedTab.Controls[0].Text);
TextBox _text = new TextBox(); oBuilder.Dispose();
_text.Multiline = true; #else
_text.Dock = DockStyle.Fill; ascdocbuilder.IASCDocBuilder oBuilder = new ascdocbuilder.CASCDocBuilder();
_text.Text = _code; oBuilder.CreateInstance(true);
_text.Font = new System.Drawing.Font(_text.Font.Name, 12); oBuilder.RunText(this.m_oTabControl.SelectedTab.Controls[0].Text);
_page.Controls.Add(_text); System.Runtime.InteropServices.Marshal.ReleaseComObject(oBuilder);
#endif
m_oTabControl.Controls.Add(_page); }
m_oTabControl.Controls[m_oTabControl.TabCount - 1].Name = "Test №" + Convert.ToString(m_oTabControl.TabCount);
void _buttonNew_Click(object sender, EventArgs e)
this.OnResize(EventArgs.Empty); {
} AddTab("");
}
}
} private void AddTab(string _code)
{
TabPage _page = new TabPage("Test №" + Convert.ToString(m_oTabControl.TabCount + 1));
TextBox _text = new TextBox();
_text.Multiline = true;
_text.Dock = DockStyle.Fill;
_text.Text = _code;
_text.Font = new System.Drawing.Font(_text.Font.Name, 12);
_page.Controls.Add(_text);
m_oTabControl.Controls.Add(_page);
m_oTabControl.Controls[m_oTabControl.TabCount - 1].Name = "Test №" + Convert.ToString(m_oTabControl.TabCount);
this.OnResize(EventArgs.Empty);
}
}
}
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace test namespace test
{ {
static class Program static class Program
{ {
/// <summary> /// <summary>
/// The main entry point for the application. /// The main entry point for the application.
/// </summary> /// </summary>
[STAThread] [STAThread]
static void Main() static void Main()
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm()); Application.Run(new MainForm());
} }
} }
} }
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("test")] [assembly: AssemblyTitle("test")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("test")] [assembly: AssemblyProduct("test")]
[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. // COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM // The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("492b3cfa-599e-4bd7-be7f-66de3e48c1cb")] [assembly: Guid("492b3cfa-599e-4bd7-be7f-66de3e48c1cb")]
// Version information for an assembly consists of the following four values: // Version information for an assembly consists of the following four values:
// //
// Major Version // Major Version
// Minor Version // Minor Version
// Build Number // Build Number
// Revision // Revision
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.34014 // Runtime Version:4.0.30319.34014
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace test.Properties namespace test.Properties
{ {
/// <summary> /// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder // This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources
{ {
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources()
{ {
} }
/// <summary> /// <summary>
/// Returns the cached ResourceManager instance used by this class. /// Returns the cached ResourceManager instance used by this class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager
{ {
get get
{ {
if ((resourceMan == null)) if ((resourceMan == null))
{ {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("test.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("test.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// Overrides the current thread's CurrentUICulture property for all /// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class. /// resource lookups using this strongly typed resource class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture
{ {
get get
{ {
return resourceCulture; return resourceCulture;
} }
set set
{ {
resourceCulture = value; resourceCulture = value;
} }
} }
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.34014 // Runtime Version:4.0.30319.34014
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace test.Properties namespace test.Properties
{ {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{ {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default public static Settings Default
{ {
get get
{ {
return defaultInstance; return defaultInstance;
} }
} }
} }
} }
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles> <Profiles>
<Profile Name="(Default)" /> <Profile Name="(Default)" />
</Profiles> </Profiles>
<Settings /> <Settings />
</SettingsFile> </SettingsFile>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{85EE7B43-D2BF-4E8B-A103-7D1845A21587}</ProjectGuid> <ProjectGuid>{85EE7B43-D2BF-4E8B-A103-7D1845A21587}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>test</RootNamespace> <RootNamespace>test</RootNamespace>
<AssemblyName>test</AssemblyName> <AssemblyName>test</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\</OutputPath> <OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\</OutputPath> <OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<Reference Include="doctrendererwrapper, Version=1.0.5924.24907, Culture=neutral, processorArchitecture=AMD64"> <DebugSymbols>true</DebugSymbols>
<SpecificVersion>False</SpecificVersion> <OutputPath>bin\x64\Debug\</OutputPath>
<HintPath>bin\doctrendererwrapper.dll</HintPath> <DefineConstants>DEBUG;TRACE</DefineConstants>
</Reference> <DebugType>full</DebugType>
<Reference Include="System" /> <PlatformTarget>x64</PlatformTarget>
<Reference Include="System.Core" /> <ErrorReport>prompt</ErrorReport>
<Reference Include="System.Xml.Linq" /> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Reference Include="System.Data.DataSetExtensions" /> <Prefer32Bit>true</Prefer32Bit>
<Reference Include="Microsoft.CSharp" /> </PropertyGroup>
<Reference Include="System.Data" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<Reference Include="System.Deployment" /> <OutputPath>bin\x64\Release\</OutputPath>
<Reference Include="System.Drawing" /> <DefineConstants>TRACE</DefineConstants>
<Reference Include="System.Windows.Forms" /> <Optimize>true</Optimize>
<Reference Include="System.Xml" /> <DebugType>pdbonly</DebugType>
</ItemGroup> <PlatformTarget>x64</PlatformTarget>
<ItemGroup> <ErrorReport>prompt</ErrorReport>
<Compile Include="MainForm.cs"> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<SubType>Form</SubType> <Prefer32Bit>true</Prefer32Bit>
</Compile> </PropertyGroup>
<Compile Include="MainForm.Designer.cs"> <ItemGroup>
<DependentUpon>MainForm.cs</DependentUpon> <Reference Include="docbuilder.net, Version=1.0.5996.29843, Culture=neutral, processorArchitecture=AMD64">
</Compile> <SpecificVersion>False</SpecificVersion>
<Compile Include="Program.cs" /> <HintPath>..\..\docbuilder.net\bin\x64\Debug\docbuilder.net.dll</HintPath>
<Compile Include="Properties\AssemblyInfo.cs" /> </Reference>
<EmbeddedResource Include="MainForm.resx"> <Reference Include="System" />
<DependentUpon>MainForm.cs</DependentUpon> <Reference Include="System.Core" />
</EmbeddedResource> <Reference Include="System.Xml.Linq" />
<EmbeddedResource Include="Properties\Resources.resx"> <Reference Include="System.Data.DataSetExtensions" />
<Generator>ResXFileCodeGenerator</Generator> <Reference Include="Microsoft.CSharp" />
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <Reference Include="System.Data" />
<SubType>Designer</SubType> <Reference Include="System.Deployment" />
</EmbeddedResource> <Reference Include="System.Drawing" />
<Compile Include="Properties\Resources.Designer.cs"> <Reference Include="System.Windows.Forms" />
<AutoGen>True</AutoGen> <Reference Include="System.Xml" />
<DependentUpon>Resources.resx</DependentUpon> </ItemGroup>
</Compile> <ItemGroup>
<None Include="Properties\Settings.settings"> <Compile Include="MainForm.cs">
<Generator>SettingsSingleFileGenerator</Generator> <SubType>Form</SubType>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> </Compile>
</None> <Compile Include="MainForm.Designer.cs">
<Compile Include="Properties\Settings.Designer.cs"> <DependentUpon>MainForm.cs</DependentUpon>
<AutoGen>True</AutoGen> </Compile>
<DependentUpon>Settings.settings</DependentUpon> <Compile Include="Program.cs" />
<DesignTimeSharedInput>True</DesignTimeSharedInput> <Compile Include="Properties\AssemblyInfo.cs" />
</Compile> <EmbeddedResource Include="MainForm.resx">
</ItemGroup> <DependentUpon>MainForm.cs</DependentUpon>
<ItemGroup> </EmbeddedResource>
<None Include="App.config" /> <EmbeddedResource Include="Properties\Resources.resx">
</ItemGroup> <Generator>ResXFileCodeGenerator</Generator>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <SubType>Designer</SubType>
Other similar extension points exist, see Microsoft.Common.targets. </EmbeddedResource>
<Target Name="BeforeBuild"> <Compile Include="Properties\Resources.Designer.cs">
</Target> <AutoGen>True</AutoGen>
<Target Name="AfterBuild"> <DependentUpon>Resources.resx</DependentUpon>
</Target> </Compile>
--> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<COMReference Include="ascdocbuilder">
<Guid>{B43F4AFD-2278-4175-992C-D7AE390507D8}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project> </Project>
\ No newline at end of file
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013 # Visual Studio 2013
VisualStudioVersion = 12.0.30723.0 VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "doctrendererwrapper", "doctrendererwrapper\doctrendererwrapper.vcxproj", "{10124551-28B8-4CA0-8FBA-420CF9602CF3}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test.csproj", "{85EE7B43-D2BF-4E8B-A103-7D1845A21587}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{85EE7B43-D2BF-4E8B-A103-7D1845A21587}" Global
ProjectSection(ProjectDependencies) = postProject GlobalSection(SolutionConfigurationPlatforms) = preSolution
{10124551-28B8-4CA0-8FBA-420CF9602CF3} = {10124551-28B8-4CA0-8FBA-420CF9602CF3} Debug|Any CPU = Debug|Any CPU
EndProjectSection Debug|x64 = Debug|x64
EndProject Release|Any CPU = Release|Any CPU
Global Release|x64 = Release|x64
GlobalSection(SolutionConfigurationPlatforms) = preSolution EndGlobalSection
Debug|Any CPU = Debug|Any CPU GlobalSection(ProjectConfigurationPlatforms) = postSolution
Debug|ARM = Debug|ARM {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.Build.0 = Debug|Any CPU
Debug|Win32 = Debug|Win32 {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.ActiveCfg = Debug|x64
Debug|x64 = Debug|x64 {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.Build.0 = Debug|x64
Release|Any CPU = Release|Any CPU {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.ActiveCfg = Release|Any CPU
Release|ARM = Release|ARM {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.Build.0 = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.ActiveCfg = Release|x64
Release|Win32 = Release|Win32 {85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.Build.0 = Release|x64
Release|x64 = Release|x64 EndGlobalSection
EndGlobalSection GlobalSection(SolutionProperties) = preSolution
GlobalSection(ProjectConfigurationPlatforms) = postSolution HideSolutionNode = FALSE
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Any CPU.ActiveCfg = Debug|Win32 EndGlobalSection
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|ARM.ActiveCfg = Debug|Win32 EndGlobal
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Win32.ActiveCfg = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|Win32.Build.0 = Debug|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|x64.ActiveCfg = Debug|x64
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Debug|x64.Build.0 = Debug|x64
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Any CPU.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|ARM.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Mixed Platforms.Build.0 = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Win32.ActiveCfg = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|Win32.Build.0 = Release|Win32
{10124551-28B8-4CA0-8FBA-420CF9602CF3}.Release|x64.ActiveCfg = Release|Win32
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|ARM.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|Win32.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.ActiveCfg = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Debug|x64.Build.0 = Debug|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Any CPU.Build.0 = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|ARM.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|Win32.ActiveCfg = Release|Any CPU
{85EE7B43-D2BF-4E8B-A103-7D1845A21587}.Release|x64.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment