summaryrefslogtreecommitdiff
path: root/extensions/test
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2002-03-12 12:25:19 +0000
committerJoachim Lingner <jl@openoffice.org>2002-03-12 12:25:19 +0000
commitfa2e859b812186c38c8566b61fb8c158b6ba6ad2 (patch)
tree4f02a7c7ce23b8447118a5845000f860c3b72450 /extensions/test
parentf0017e33c807d635121c174b962a73fbef714756 (diff)
*** empty log message ***
Diffstat (limited to 'extensions/test')
-rw-r--r--extensions/test/ole/AxTestComponents/AxTestComponents.idl5
-rw-r--r--extensions/test/ole/AxTestComponents/Basic.cpp18
-rw-r--r--extensions/test/ole/AxTestComponents/Basic.h11
3 files changed, 26 insertions, 8 deletions
diff --git a/extensions/test/ole/AxTestComponents/AxTestComponents.idl b/extensions/test/ole/AxTestComponents/AxTestComponents.idl
index a155f8665d21..7436e6640aa3 100644
--- a/extensions/test/ole/AxTestComponents/AxTestComponents.idl
+++ b/extensions/test/ole/AxTestComponents/AxTestComponents.idl
@@ -2,9 +2,9 @@
*
* $RCSfile: AxTestComponents.idl,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jl $ $Date: 2000-10-12 13:17:46 $
+ * last change: $Author: jl $ $Date: 2002-03-12 13:25:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -160,6 +160,7 @@ import "ocidl.idl";
[id(68), helpstring("method inMulDimArrayVariant2")] HRESULT inMulDimArrayVariant2([in] SAFEARRAY(VARIANT) val);
[id(69), helpstring("method inMulDimArrayByte")] HRESULT inMulDimArrayByte([in] SAFEARRAY(unsigned char) val);
[id(70), helpstring("method inMulDimArrayByte2")] HRESULT inMulDimArrayByte2([in] SAFEARRAY(unsigned char) val);
+ [id(71), helpstring("method outMore")] HRESULT outMore([out]long* val1, [out]long* val2);
};
diff --git a/extensions/test/ole/AxTestComponents/Basic.cpp b/extensions/test/ole/AxTestComponents/Basic.cpp
index 856db544d93f..70088af9b064 100644
--- a/extensions/test/ole/AxTestComponents/Basic.cpp
+++ b/extensions/test/ole/AxTestComponents/Basic.cpp
@@ -2,9 +2,9 @@
*
* $RCSfile: Basic.cpp,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jl $ $Date: 2000-10-12 13:18:22 $
+ * last change: $Author: jl $ $Date: 2002-03-12 13:25:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,7 +64,13 @@
/////////////////////////////////////////////////////////////////////////////
// CBasic
+CBasic::CBasic(): m_cPrpByte(0),m_nPrpShort(0),m_lPrpLong(0),m_fPrpFloat(0), m_dPrpDouble(0),m_PrpArray(0)
+{
+}
+CBasic::~CBasic()
+{
+}
STDMETHODIMP CBasic::inByte(unsigned char val)
{
@@ -956,3 +962,11 @@ void CBasic::printMulArray( SAFEARRAY* val, VARTYPE type)
+
+STDMETHODIMP CBasic::outMore(long* val1, long* val2)
+{
+ // TODO: Add your implementation code here
+ *val1= 111;
+ *val2= 112;
+ return S_OK;
+}
diff --git a/extensions/test/ole/AxTestComponents/Basic.h b/extensions/test/ole/AxTestComponents/Basic.h
index f32468ac3082..812b301069f0 100644
--- a/extensions/test/ole/AxTestComponents/Basic.h
+++ b/extensions/test/ole/AxTestComponents/Basic.h
@@ -2,9 +2,9 @@
*
* $RCSfile: Basic.h,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jl $ $Date: 2000-10-12 13:18:22 $
+ * last change: $Author: jl $ $Date: 2002-03-12 13:25:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,10 +73,12 @@ class ATL_NO_VTABLE CBasic :
public IDispatchImpl<IBasic, &IID_IBasic, &LIBID_AXTESTCOMPONENTSLib>
{
public:
- CBasic(): m_cPrpByte(0),m_nPrpShort(0),m_lPrpLong(0),m_fPrpFloat(0), m_dPrpDouble(0),m_PrpArray(0)
+ CBasic();
+ ~CBasic();
+/* CBasic(): m_cPrpByte(0),m_nPrpShort(0),m_lPrpLong(0),m_fPrpFloat(0), m_dPrpDouble(0),m_PrpArray(0)
{
}
-
+*/
DECLARE_REGISTRY_RESOURCEID(IDR_BASIC)
DECLARE_PROTECT_FINAL_CONSTRUCT()
@@ -88,6 +90,7 @@ END_COM_MAP()
// IBasic
public:
+ STDMETHOD(outMore)(/*[out]*/long* val1, /*[out]*/long* val2);
STDMETHOD(inMulDimArrayByte2)(LPSAFEARRAY val);
STDMETHOD(inMulDimArrayByte)(LPSAFEARRAY val);
STDMETHOD(inMulDimArrayVariant2)(LPSAFEARRAY val);