Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9476a735
Kaydet (Commit)
9476a735
authored
Nis 17, 2003
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS sdk01 (1.3.20.1.6); FILE MERGED
2003/03/13 11:39:21 jsc 1.3.20.1.6.1: #107908# catch exception
üst
19633396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
DocumentLoader.cxx
odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+12
-2
No files found.
odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
Dosyayı görüntüle @
9476a735
...
@@ -102,8 +102,18 @@ int SAL_CALL main( int argc, char **argv )
...
@@ -102,8 +102,18 @@ int SAL_CALL main( int argc, char **argv )
Reference
<
XUnoUrlResolver
>
resolver
(
xInterface
,
UNO_QUERY
);
Reference
<
XUnoUrlResolver
>
resolver
(
xInterface
,
UNO_QUERY
);
// Resolves the component context from the office, on the uno URL given by argv[1].
// Resolves the component context from the office, on the uno URL given by argv[1].
xInterface
=
Reference
<
XInterface
>
(
try
resolver
->
resolve
(
sConnectionString
),
UNO_QUERY
);
{
xInterface
=
Reference
<
XInterface
>
(
resolver
->
resolve
(
sConnectionString
),
UNO_QUERY
);
}
catch
(
Exception
&
e
)
{
printf
(
"Error: cannot establish a connection using '%s':
\n
%s
\n
"
,
OUStringToOString
(
sConnectionString
,
RTL_TEXTENCODING_ASCII_US
).
getStr
(),
OUStringToOString
(
e
.
Message
,
RTL_TEXTENCODING_ASCII_US
).
getStr
());
exit
(
1
);
}
// gets the server component context as property of the office component factory
// gets the server component context as property of the office component factory
Reference
<
XPropertySet
>
xPropSet
(
xInterface
,
UNO_QUERY
);
Reference
<
XPropertySet
>
xPropSet
(
xInterface
,
UNO_QUERY
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment