[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17604] branches/web-plugin/source/ gameengine/GamePlayer: Adding the ActiveX Plugin.
Marcelo Coraça de Freitas
mfreitas at ydeasolutions.com.br
Fri Nov 28 22:12:28 CET 2008
Revision: 17604
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17604
Author: mfreitas
Date: 2008-11-28 22:12:27 +0100 (Fri, 28 Nov 2008)
Log Message:
-----------
Adding the ActiveX Plugin.
This need some more testing and maybe a refactoring so we can name it something better. :)
Also notice it has no SCons support for building yet. So, use Visual Studio 2008 solution file instead.
Added Paths:
-----------
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.def
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.ico
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.lic
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.rc
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.vcproj
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.vcproj.DEXTER.ogro.user
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX PluginCtrl.bmp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX PluginCtrl.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX PluginCtrl.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX PluginPropPage.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX PluginPropPage.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Pluginidl.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveXPlugin.idl
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveXPlugin_i.c
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/BlenderDataPathProperty.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/BlenderDataPathProperty.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ReadMe.txt
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/Resource.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/SafeControl.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/SafeControl.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/stdafx.cpp
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/stdafx.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/targetver.h
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin.ncb
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin.sln
branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin.suo
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.cpp
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.cpp (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.cpp 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,77 @@
+// ActiveX Plugin.cpp : Implementation of CActiveXPluginApp and DLL registration.
+
+#include "stdafx.h"
+#include "ActiveX Plugin.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+CActiveXPluginApp theApp;
+
+const GUID CDECL BASED_CODE _tlid =
+ { 0x6875FFBC, 0xD8B7, 0x4625, { 0xA2, 0x26, 0x8D, 0xFF, 0x56, 0x6A, 0xC3, 0x32 } };
+const WORD _wVerMajor = 1;
+const WORD _wVerMinor = 0;
+
+
+
+// CActiveXPluginApp::InitInstance - DLL initialization
+
+BOOL CActiveXPluginApp::InitInstance()
+{
+ BOOL bInit = COleControlModule::InitInstance();
+
+ if (bInit)
+ {
+ // TODO: Add your own module initialization code here.
+ }
+
+ return bInit;
+}
+
+
+
+// CActiveXPluginApp::ExitInstance - DLL termination
+
+int CActiveXPluginApp::ExitInstance()
+{
+ // TODO: Add your own module termination code here.
+
+ return COleControlModule::ExitInstance();
+}
+
+
+
+// DllRegisterServer - Adds entries to the system registry
+
+STDAPI DllRegisterServer(void)
+{
+ AFX_MANAGE_STATE(_afxModuleAddrThis);
+
+ if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid))
+ return ResultFromScode(SELFREG_E_TYPELIB);
+
+ if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
+ return ResultFromScode(SELFREG_E_CLASS);
+
+ return NOERROR;
+}
+
+
+
+// DllUnregisterServer - Removes entries from the system registry
+
+STDAPI DllUnregisterServer(void)
+{
+ AFX_MANAGE_STATE(_afxModuleAddrThis);
+
+ if (!AfxOleUnregisterTypeLib(_tlid, _wVerMajor, _wVerMinor))
+ return ResultFromScode(SELFREG_E_TYPELIB);
+
+ if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
+ return ResultFromScode(SELFREG_E_CLASS);
+
+ return NOERROR;
+}
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.def
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.def (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.def 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,9 @@
+; ActiveX Plugin.def : Declares the module parameters.
+
+LIBRARY "ActiveX Plugin.OCX"
+
+EXPORTS
+ DllCanUnloadNow PRIVATE
+ DllGetClassObject PRIVATE
+ DllRegisterServer PRIVATE
+ DllUnregisterServer PRIVATE
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.h
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.h (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.h 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,24 @@
+#pragma once
+
+// ActiveX Plugin.h : main header file for ActiveX Plugin.DLL
+
+#if !defined( __AFXCTL_H__ )
+#error "include 'afxctl.h' before including this file"
+#endif
+
+#include "resource.h" // main symbols
+
+
+// CActiveXPluginApp : See ActiveX Plugin.cpp for implementation.
+
+class CActiveXPluginApp : public COleControlModule
+{
+public:
+ BOOL InitInstance();
+ int ExitInstance();
+};
+
+extern const GUID CDECL _tlid;
+extern const WORD _wVerMajor;
+extern const WORD _wVerMinor;
+
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.ico
===================================================================
(Binary files differ)
Property changes on: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.lic
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.lic (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.lic 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,8 @@
+Copyright (c) 2008
+
+Warning: This product is licensed to you pursuant to the terms of the
+license agreement included with the original software, and is
+protected by copyright law and international treaties. Unauthorized
+reproduction or distribution may result in severe civil and criminal
+penalties, and will be prosecuted to the maximum extent possible under
+the law.
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.rc
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.rc (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.rc 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,176 @@
+//Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#ifndef APSTUDIO_INVOKED
+#include "targetver.h"
+#endif
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#ifndef APSTUDIO_INVOKED\r\n"
+ "#include ""targetver.h""\r\n"
+ "#endif\r\n"
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "1 TYPELIB ""ActiveXPlugin.tlb""\r\n"
+ "\0"
+END
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904e4"
+ BEGIN
+ VALUE "CompanyName", "Blender Foundation"
+ VALUE "FileDescription", "Blender 3D Plugin ActiveX Control"
+ VALUE "FileVersion", "2.48a"
+ VALUE "InternalName", "ActiveX Plugin.ocx"
+ VALUE "LegalCopyright", "GPLv2"
+ VALUE "OriginalFilename", "ActiveX Plugin.ocx"
+ VALUE "ProductName", "Blender 3D Plugin ActiveX Control"
+ VALUE "ProductVersion", "2.48a"
+ VALUE "OLESelfRegister", ""
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0409, 1252
+ END
+END
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_ABOUTDLL ICON "ActiveX Plugin.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Bitmap
+//
+
+IDB_ACTIVEXPLUGIN BITMAP "ActiveX PluginCtrl.bmp"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_ABOUTBOX_ACTIVEXPLUGIN DIALOGEX 0, 0, 170, 62
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "About ActiveXPlugin Control"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ ICON IDI_ABOUTDLL,IDC_STATIC,14,14,21,20
+ LTEXT "ActiveXPlugin Control, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
+ LTEXT "Copyright (C) 2008, ",IDC_STATIC,42,26,114,8
+ DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP
+END
+
+IDD_PROPPAGE_ACTIVEXPLUGIN DIALOG 0, 0, 250, 62
+STYLE WS_CHILD
+FONT 8, "MS Shell Dlg"
+BEGIN
+ LTEXT "TODO: Place controls to manipulate properties of ActiveXPlugin Control on this dialog.",
+ IDC_STATIC,7,25,229,16
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_ABOUTBOX_ACTIVEXPLUGIN, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 163
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 55
+ END
+ IDD_PROPPAGE_ACTIVEXPLUGIN, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 243
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 55
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE
+BEGIN
+ IDS_ACTIVEXPLUGIN "ActiveXPlugin Control"
+ IDS_ACTIVEXPLUGIN_PPG "ActiveXPlugin Property Page"
+ IDS_ACTIVEXPLUGIN_PPG_CAPTION "General"
+
+END
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+1 TYPELIB "ActiveXPlugin.tlb"
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
Added: branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.vcproj
===================================================================
--- branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.vcproj (rev 0)
+++ branches/web-plugin/source/gameengine/GamePlayer/ActiveX-ng/ActiveX Plugin/ActiveX Plugin.vcproj 2008-11-28 21:12:27 UTC (rev 17604)
@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9,00"
+ Name="ActiveX Plugin"
+ ProjectGUID="{3D161B79-3BF9-4207-BB0B-1A9FE420B1B4}"
+ RootNamespace="ActiveXPlugin"
+ Keyword="MFCActiveXProj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list