summaryrefslogtreecommitdiff
path: root/dtrans/test
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-02-26 14:29:45 +0000
committerJoachim Lingner <jl@openoffice.org>2001-02-26 14:29:45 +0000
commitc0777736a5c9e908cde882df0095b03649f79601 (patch)
treecf8269beedfc9d9a6a008456c01b44d8df637b37 /dtrans/test
parentd7937501a65b31674362e6a5413d14ab961f6601 (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/test')
-rw-r--r--dtrans/test/win32/dnd/atlwindow.cxx8
-rw-r--r--dtrans/test/win32/dnd/dndTest.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/dtrans/test/win32/dnd/atlwindow.cxx b/dtrans/test/win32/dnd/atlwindow.cxx
index 6333a1900ea3..415332775b23 100644
--- a/dtrans/test/win32/dnd/atlwindow.cxx
+++ b/dtrans/test/win32/dnd/atlwindow.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: atlwindow.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jl $ $Date: 2001-02-20 12:55:53 $
+ * last change: $Author: jl $ $Date: 2001-02-26 15:29:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -146,7 +146,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
// create the DragSource
- Reference< XInterface> xint= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDragAndDropSource"));
+ Reference< XInterface> xint= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDragSource"));
m_xDragSource= Reference<XDragSource>( xint, UNO_QUERY);
Reference<XInitialization> xInit( xint, UNO_QUERY);
@@ -155,7 +155,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
xInit->initialize( Sequence<Any>( ar, 2) );
//create the DropTarget
- Reference< XInterface> xintTarget= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDragAndDropTarget"));
+ Reference< XInterface> xintTarget= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDropTarget"));
m_xDropTarget= Reference<XDropTarget>( xintTarget, UNO_QUERY);
Reference<XInitialization> xInitTarget( xintTarget, UNO_QUERY);
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx
index 369ed597bb46..ec1134611085 100644
--- a/dtrans/test/win32/dnd/dndTest.cxx
+++ b/dtrans/test/win32/dnd/dndTest.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dndTest.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jl $ $Date: 2001-02-20 12:55:53 $
+ * last change: $Author: jl $ $Date: 2001-02-26 15:29:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -100,7 +100,7 @@ Reference< XMultiServiceFactory > MultiServiceFactory;
int main( int argc, char *argv[ ], char *envp[ ] )
{
HRESULT hr;
- if( FAILED( hr=OleInitialize(NULL )))
+ if( FAILED( hr=CoInitialize(NULL )))
{
_tprintf(_T("CoInitialize failed \n"));
return -1;
@@ -118,7 +118,7 @@ int main( int argc, char *argv[ ], char *envp[ ] )
_Module.Term();
- OleUninitialize();
+ CoUninitialize();
return 0;
}