Commit 1a9a5423 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52418 954022d7-b5bf-4e40-9824-e11837661b57
parent ed6c672a
// AVSImageEditor.cpp : Implementation of DLL Exports. // ASCImageEditor.cpp : Implementation of DLL Exports.
#include "stdafx.h" #include "stdafx.h"
#include "resource.h" #include "resource.h"
// The module attribute causes DllMain, DllRegisterServer and DllUnregisterServer to be automatically implemented for you // The module attribute causes DllMain, DllRegisterServer and DllUnregisterServer to be automatically implemented for you
[ module(dll, uuid = "{E69A96AC-AF12-439D-B756-AE51F87F1BCB}", [ module(dll, uuid = "{E69A96AC-AF12-439D-B756-AE51F87F1BCB}",
name = "AVSImageEditor", name = "ASCImageEditor",
helpstring = "AVSImageEditor 1.0 Type Library", helpstring = "ASCImageEditor 1.0 Type Library",
resource_name = "IDR_AVSIMAGEEDITOR") ]; resource_name = "IDR_ASCIMAGEEDITOR") ];
<HTML> <HTML>
<HEAD> <HEAD>
<TITLE>ATL 7.0 test page for object AVSImageEditor</TITLE> <TITLE>ATL 7.0 test page for object ASCImageEditor</TITLE>
</HEAD> </HEAD>
<BODY> <BODY>
<OBJECT ID="AVSImageEditor" CLASSID="CLSID:48BD5D71-0291-42D0-8BFD-DF9E5D367ED0"></OBJECT> <OBJECT ID="ASCImageEditor" CLASSID="CLSID:48BD5D71-0291-42D0-8BFD-DF9E5D367ED0"></OBJECT>
</BODY> </BODY>
......
// Microsoft Visual C++ generated resource script. // Microsoft Visual C++ generated resource script.
// //
#include "resource.h" #include "resource.h"
#define COMPONENT_NAME "ImageEditor"
#include "../../Common/FileInfo.h"
#include "version.h" #include "version.h"
#define APSTUDIO_READONLY_SYMBOLS #define APSTUDIO_READONLY_SYMBOLS
...@@ -56,7 +58,7 @@ IDC_CURSOR_MOVE3 CURSOR "Commands\\Images\\Cursors\\move ...@@ -56,7 +58,7 @@ IDC_CURSOR_MOVE3 CURSOR "Commands\\Images\\Cursors\\move
// Bitmap // Bitmap
// //
IDB_AVSIMAGEEDITOR BITMAP "AVSImageEditor.bmp" IDB_ASCIMAGEEDITOR BITMAP "ASCImageEditor.bmp"
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
...@@ -104,22 +106,22 @@ VS_VERSION_INFO VERSIONINFO ...@@ -104,22 +106,22 @@ VS_VERSION_INFO VERSIONINFO
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
BLOCK "000904e2" BLOCK "040904e4"
BEGIN BEGIN
VALUE "CompanyName", "Online Media Technologies Ltd." VALUE "CompanyName", COMPANY_NAME
VALUE "FileDescription", "AVSImageEditor ActiveX DLL" VALUE "FileDescription", FILE_DESCRIPTION_ACTIVEX
VALUE "FileVersion", STRVER VALUE "FileVersion", STRVER
VALUE "InternalName", "AVSImageEditor ActiveX DLL" VALUE "InternalName", COMPONENT_FILE_NAME_DLL
VALUE "LegalCopyright", "Online Media Technologies Ltd. Copyright 2009" VALUE "LegalCopyright", LEGAL_COPYRIGHT
VALUE "LegalTrademarks", "Online Media Technologies Ltd." VALUE "LegalTrademarks", LEGAL_COPYRIGHT
VALUE "OriginalFilename", "AVSImageEditor.dll" VALUE "OriginalFilename", COMPONENT_FILE_NAME_DLL
VALUE "ProductName", "AVSImageEditor ActiveX DLL" VALUE "ProductName", FILE_DESCRIPTION_ACTIVEX
VALUE "ProductVersion", STRVER VALUE "ProductVersion", STRVER
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"
BEGIN BEGIN
VALUE "Translation", 0x9, 1250 VALUE "Translation", 0x409, 1252
END END
END END
...@@ -129,7 +131,7 @@ END ...@@ -129,7 +131,7 @@ END
// REGISTRY // REGISTRY
// //
IDR_AVSIMAGEEDITOR REGISTRY "AVSImageEditor.rgs" IDR_ASCIMAGEEDITOR REGISTRY "ASCImageEditor.rgs"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
...@@ -138,7 +140,7 @@ IDR_AVSIMAGEEDITOR REGISTRY "AVSImageEditor.rgs" ...@@ -138,7 +140,7 @@ IDR_AVSIMAGEEDITOR REGISTRY "AVSImageEditor.rgs"
STRINGTABLE STRINGTABLE
BEGIN BEGIN
IDS_PROJNAME "AVSImageEditor" IDS_PROJNAME "ASCImageEditor"
END END
#endif // English (U.S.) resources #endif // English (U.S.) resources
......
...@@ -2,8 +2,8 @@ HKCR ...@@ -2,8 +2,8 @@ HKCR
{ {
NoRemove AppID NoRemove AppID
{ {
'%APPID%' = s 'AVSImageEditor' '%APPID%' = s 'ASCImageEditor'
'AVSImageEditor.DLL' 'ASCImageEditor.DLL'
{ {
val AppID = s '%APPID%' val AppID = s '%APPID%'
} }
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="8,00" Version="8,00"
Name="AVSImageEditor" Name="ASCImageEditor"
ProjectGUID="{E1A619A1-625C-40CC-A304-42A36D26CF4F}" ProjectGUID="{E1A619A1-625C-40CC-A304-42A36D26CF4F}"
RootNamespace="AVSImageEditor" RootNamespace="ASCImageEditor"
Keyword="AtlProj" Keyword="AtlProj"
> >
<Platforms> <Platforms>
...@@ -43,16 +43,16 @@ ...@@ -43,16 +43,16 @@
MkTypLibCompatible="false" MkTypLibCompatible="false"
TargetEnvironment="1" TargetEnvironment="1"
GenerateStublessProxies="true" GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/AVSImageEditor.tlb" TypeLibraryName="$(IntDir)/ASCImageEditor.tlb"
HeaderFileName="AVSImageEditor.h" HeaderFileName="ASCImageEditor.h"
DLLDataFileName="" DLLDataFileName=""
InterfaceIdentifierFileName="AVSImageEditor_i.c" InterfaceIdentifierFileName="ASCImageEditor_i.c"
ProxyFileName="AVSImageEditor_p.c" ProxyFileName="ASCImageEditor_p.c"
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
AdditionalIncludeDirectories="../../../../../Common;../../../../../AVS/Sources/AVSVideoStudio3/Common;../../../../../AVS/Sources/AVSImageStudio3/Common" AdditionalIncludeDirectories="../../../Common;../../Common"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES" PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES"
MinimalRebuild="true" MinimalRebuild="true"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
...@@ -77,12 +77,12 @@ ...@@ -77,12 +77,12 @@
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
IgnoreImportLibrary="true" IgnoreImportLibrary="true"
OutputFile="bin/AVSImageEditor.dll" OutputFile="bin/ASCImageEditor.dll"
LinkIncremental="2" LinkIncremental="2"
MergedIDLBaseFileName="_AVSImageEditor.idl" MergedIDLBaseFileName="_ASCImageEditor.idl"
GenerateDebugInformation="true" GenerateDebugInformation="true"
SubSystem="2" SubSystem="2"
ImportLibrary="$(OutDir)/AVSImageEditor.lib" ImportLibrary="$(OutDir)/ASCImageEditor.lib"
TargetMachine="1" TargetMachine="1"
/> />
<Tool <Tool
...@@ -141,11 +141,11 @@ ...@@ -141,11 +141,11 @@
MkTypLibCompatible="false" MkTypLibCompatible="false"
TargetEnvironment="1" TargetEnvironment="1"
GenerateStublessProxies="true" GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/AVSImageEditor.tlb" TypeLibraryName="$(IntDir)/ASCImageEditor.tlb"
HeaderFileName="AVSImageEditor.h" HeaderFileName="ASCImageEditor.h"
DLLDataFileName="" DLLDataFileName=""
InterfaceIdentifierFileName="AVSImageEditor_i.c" InterfaceIdentifierFileName="ASCImageEditor_i.c"
ProxyFileName="AVSImageEditor_p.c" ProxyFileName="ASCImageEditor_p.c"
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
OmitFramePointers="false" OmitFramePointers="false"
EnableFiberSafeOptimizations="false" EnableFiberSafeOptimizations="false"
WholeProgramOptimization="false" WholeProgramOptimization="false"
AdditionalIncludeDirectories="../../../../../Common;../../../../../AVS/Sources/AVSVideoStudio3/Common;../../../../../AVS/Sources/AVSImageStudio3/Common" AdditionalIncludeDirectories="../../../Common;../../Common"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES" PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES"
RuntimeLibrary="2" RuntimeLibrary="2"
BufferSecurityCheck="false" BufferSecurityCheck="false"
...@@ -179,14 +179,14 @@ ...@@ -179,14 +179,14 @@
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
IgnoreImportLibrary="true" IgnoreImportLibrary="true"
OutputFile="bin/AVSImageEditor.dll" OutputFile="bin/ASCImageEditor.dll"
LinkIncremental="1" LinkIncremental="1"
MergedIDLBaseFileName="_AVSImageEditor.idl" MergedIDLBaseFileName="_ASCImageEditor.idl"
GenerateDebugInformation="true" GenerateDebugInformation="true"
SubSystem="2" SubSystem="2"
OptimizeReferences="2" OptimizeReferences="2"
EnableCOMDATFolding="2" EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/AVSImageEditor.lib" ImportLibrary="$(OutDir)/ASCImageEditor.lib"
TargetMachine="1" TargetMachine="1"
/> />
<Tool <Tool
...@@ -245,11 +245,11 @@ ...@@ -245,11 +245,11 @@
MkTypLibCompatible="false" MkTypLibCompatible="false"
TargetEnvironment="1" TargetEnvironment="1"
GenerateStublessProxies="true" GenerateStublessProxies="true"
TypeLibraryName="$(IntDir)/AVSImageEditor.tlb" TypeLibraryName="$(IntDir)/ASCImageEditor.tlb"
HeaderFileName="AVSImageEditor.h" HeaderFileName="ASCImageEditor.h"
DLLDataFileName="" DLLDataFileName=""
InterfaceIdentifierFileName="AVSImageEditor_i.c" InterfaceIdentifierFileName="ASCImageEditor_i.c"
ProxyFileName="AVSImageEditor_p.c" ProxyFileName="ASCImageEditor_p.c"
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
OmitFramePointers="false" OmitFramePointers="false"
EnableFiberSafeOptimizations="false" EnableFiberSafeOptimizations="false"
WholeProgramOptimization="false" WholeProgramOptimization="false"
AdditionalIncludeDirectories="../../../../../Common;../../../../../AVS/Sources/AVSVideoStudio3/Common;../../../../../AVS/Sources/AVSImageStudio3/Common" AdditionalIncludeDirectories="../../../Common;../../Common"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES" PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES"
RuntimeLibrary="2" RuntimeLibrary="2"
UsePrecompiledHeader="2" UsePrecompiledHeader="2"
...@@ -282,14 +282,14 @@ ...@@ -282,14 +282,14 @@
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
IgnoreImportLibrary="true" IgnoreImportLibrary="true"
OutputFile="bin/AVSImageEditor.dll" OutputFile="bin/ASCImageEditor.dll"
LinkIncremental="1" LinkIncremental="1"
MergedIDLBaseFileName="_AVSImageEditor.idl" MergedIDLBaseFileName="_ASCImageEditor.idl"
GenerateDebugInformation="true" GenerateDebugInformation="true"
SubSystem="2" SubSystem="2"
OptimizeReferences="2" OptimizeReferences="2"
EnableCOMDATFolding="2" EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/AVSImageEditor.lib" ImportLibrary="$(OutDir)/ASCImageEditor.lib"
TargetMachine="1" TargetMachine="1"
/> />
<Tool <Tool
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
> >
<File <File
RelativePath=".\AVSImageEditor.cpp" RelativePath=".\ASCImageEditor.cpp"
> >
</File> </File>
<File <File
...@@ -437,15 +437,15 @@ ...@@ -437,15 +437,15 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
> >
<File <File
RelativePath=".\AVSImageEditor.bmp" RelativePath=".\ASCImageEditor.bmp"
> >
</File> </File>
<File <File
RelativePath=".\AVSImageEditor.rc" RelativePath=".\ASCImageEditor.rc"
> >
</File> </File>
<File <File
RelativePath=".\AVSImageEditor.rgs" RelativePath=".\ASCImageEditor.rgs"
> >
</File> </File>
<File <File
......
======================================================================== ========================================================================
ACTIVE TEMPLATE LIBRARY : AVSImageEditor Project Overview ACTIVE TEMPLATE LIBRARY : ASCImageEditor Project Overview
======================================================================== ========================================================================
AppWizard has created this AVSImageEditor project for you to use as the starting point for AppWizard has created this ASCImageEditor project for you to use as the starting point for
writing your Dynamic Link Library (DLL). writing your Dynamic Link Library (DLL).
This project is implemented with Visual C++ attributes. This project is implemented with Visual C++ attributes.
This file contains a summary of what you will find in each of the files that This file contains a summary of what you will find in each of the files that
make up your project. make up your project.
AVSImageEditor.vcproj ASCImageEditor.vcproj
This is the main project file for VC++ projects generated using an Application Wizard. 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 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 information about the platforms, configurations, and project features selected with the
Application Wizard. Application Wizard.
_AVSImageEditor.idl _ASCImageEditor.idl
This file will be generated by the compiler when the project is built. It will contain the IDL This file will be generated by the compiler when the project is built. It will contain the IDL
definitions of the type library, the interfaces and co-classes defined in your project. definitions of the type library, the interfaces and co-classes defined in your project.
This file will be processed by the MIDL compiler to generate: This file will be processed by the MIDL compiler to generate:
C++ interface definitions and GUID declarations (_AVSImageEditor.h) C++ interface definitions and GUID declarations (_ASCImageEditor.h)
GUID definitions (_AVSImageEditor_i.c) GUID definitions (_ASCImageEditor_i.c)
A type library (_AVSImageEditor.tlb) A type library (_ASCImageEditor.tlb)
Marshaling code (_AVSImageEditor_p.c and dlldata.c) Marshaling code (_ASCImageEditor_p.c and dlldata.c)
AVSImageEditor.cpp ASCImageEditor.cpp
This file contains the object map and the implementation of your DLL's exports. This file contains the object map and the implementation of your DLL's exports.
AVSImageEditor.rc ASCImageEditor.rc
This is a listing of all of the Microsoft Windows resources that the This is a listing of all of the Microsoft Windows resources that the
program uses. program uses.
AVSImageEditor.def ASCImageEditor.def
This module-definition file provides the linker with information about the exports This module-definition file provides the linker with information about the exports
required by your DLL. It contains exports for: required by your DLL. It contains exports for:
DllGetClassObject DllGetClassObject
...@@ -43,7 +43,7 @@ Other standard files: ...@@ -43,7 +43,7 @@ Other standard files:
StdAfx.h, StdAfx.cpp StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file These files are used to build a precompiled header (PCH) file
named AVSImageEditor.pch and a precompiled types file named StdAfx.obj. named ASCImageEditor.pch and a precompiled types file named StdAfx.obj.
Resource.h Resource.h
This is the standard header file that defines resource IDs. This is the standard header file that defines resource IDs.
...@@ -51,14 +51,14 @@ Resource.h ...@@ -51,14 +51,14 @@ Resource.h
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
Proxy/stub DLL project and module definition file: Proxy/stub DLL project and module definition file:
AVSImageEditorps.vcproj ASCImageEditorps.vcproj
This file is the project file for building a proxy/stub DLL if necessary. This file is the project file for building a proxy/stub DLL if necessary.
The IDL file in the main project must contain at least one interface and you must The IDL file in the main project must contain at least one interface and you must
first compile the IDL file before building the proxy/stub DLL. This process generates first compile the IDL file before building the proxy/stub DLL. This process generates
dlldata.c, AVSImageEditor_i.c and AVSImageEditor_p.c which are required dlldata.c, ASCImageEditor_i.c and ASCImageEditor_p.c which are required
to build the proxy/stub DLL. to build the proxy/stub DLL.
AVSImageEditorps.def ASCImageEditorps.def
This module definition file provides the linker with information about the exports This module definition file provides the linker with information about the exports
required by the proxy/stub. required by the proxy/stub.
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file. // Microsoft Visual C++ generated include file.
// Used by AVSImageEditor.rc // Used by ASCImageEditor.rc
// //
#define IDS_PROJNAME 100 #define IDS_PROJNAME 100
#define IDR_AVSIMAGEEDITOR 101 #define IDR_ASCIMAGEEDITOR 101
#define IDB_AVSIMAGEEDITOR 102 #define IDB_ASCIMAGEEDITOR 102
#define IDB_PNG1 207 #define IDB_PNG1 207
#define IDB_PNG2 208 #define IDB_PNG2 208
#define IDB_APPLY_DOWN_PNG 209 #define IDB_APPLY_DOWN_PNG 209
......
...@@ -52,12 +52,12 @@ using namespace ATL; ...@@ -52,12 +52,12 @@ using namespace ATL;
#include "ATLDefine.h" #include "ATLDefine.h"
#include "..\\..\\AVSGraphics\\Interfaces\\BaseThread.h" #include "../../ASCGraphics/Interfaces/BaseThread.h"
#import "../../../../../AVS/Redist/AVSImageFile3.dll" named_guids rename_namespace("ImageFile"), raw_interfaces_only #import "../../../Redist/ASCImageFile3.dll" named_guids rename_namespace("ImageFile"), raw_interfaces_only
#import "../../../../../AVS/Redist/AVSMediaCore3.dll" named_guids rename_namespace("MediaCore"), raw_interfaces_only, exclude("tagRECT") #import "../../../Redist/ASCMediaCore3.dll" named_guids rename_namespace("MediaCore"), raw_interfaces_only, exclude("tagRECT")
#import "../../../../../AVS/Redist/AVSImageStudio3.dll" named_guids rename_namespace("ImageStudio3"), raw_interfaces_only, exclude("tagRECT") #import "../../../Redist/ASCImageStudio3.dll" named_guids rename_namespace("ImageStudio3"), raw_interfaces_only, exclude("tagRECT")
#import "../../../../../AVS/Redist/AVSVectorImage.dll" named_guids rename_namespace("VectorImage"), raw_interfaces_only, exclude("tagRECT") #import "../../../Redist/ASCVectorImage.dll" named_guids rename_namespace("VectorImage"), raw_interfaces_only, exclude("tagRECT")
#include <math.h> #include <math.h>
......
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