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