15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


file associated with OLE item

Paul.B.Folbrecht@JCI.Com
Monday, January 20, 1997

     Environment: VC++ 4.1, Windows95 & NT 4.0
     
     Is there a way to get the name of the file associated with an embedded 
     or linked OLE item, assuming the item was created from a file?  I 
     didn't find anything in COleClientItem.
     
     -Paul Folbrecht
     Compuware Corp.



Paul.B.Folbrecht@JCI.Com
Monday, January 20, 1997

     Environment: VC++ 4.1, Windows95 & NT 4.0
     
     Is there a way to get the name of the file associated with an embedded 
     or linked OLE item, assuming the item was created from a file?  I 
     didn't find anything in COleClientItem.
     
     -Paul Folbrecht
     Compuware Corp.



Bing Hou -- hou@tfn.com
Thursday, January 23, 1997


Looking over the interfaces that a server implements, it seemed none of 
them provides a way to retrive the file name. When run embedded, after 
editing the object, if chose to save it, the container always treats it as 
a new file, that hinted me that OLE probably tosses away the file name 
after the object is created.(could well be wrong)

The only way I can think of to work around this is to modify the 
COleClientItem's CreateFromFile and CreateLinkFromFile functions where you can 
keep a reference of the file name that is being worked on.

Bing Hou
hou@tfn.com
======================
  Jambalaya Baby!!!
======================

______________________________ Reply Separator _________________________________
Subject: file associated with OLE item
Author:  Paul.B.Folbrecht@JCI.Com at Internet
Date:    1/20/97 8:49 AM


     Environment: VC++ 4.1, Windows95 & NT 4.0
     
     Is there a way to get the name of the file associated with an embedded 
     or linked OLE item, assuming the item was created from a file?  I 
     didn't find anything in COleClientItem.
     
     -Paul Folbrecht
     Compuware Corp.



Kenneth A. Argo -- argo@rias.COM
Friday, January 24, 1997

When you perform a imbed function the original file name is meaningless =
since the paste is the content of the file at the time of the paste.  If =
you are doing a link you have what is referred to as a miniker (UK slang =
for nickname) which references the original file name.

Ken


______________________________ Reply Separator =
_________________________________
Subject: file associated with OLE item
Author:  Paul.B.Folbrecht@JCI.Com at Internet
Date:    1/20/97 8:49 AM


     Environment: VC++ 4.1, Windows95 & NT 4.0
    =20
     Is there a way to get the name of the file associated with an =
embedded=20
     or linked OLE item, assuming the item was created from a file?  I=20
     didn't find anything in COleClientItem.
    =20
     -Paul Folbrecht
     Compuware Corp.





| Вернуться в корень Архива |