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

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


Warning: unable to get moniker from client site

Pekka Kilponen -- pekka.kilponen@hut.fi
Tuesday, September 17, 1996

Environment: NT 4.0 / VC++4.0

I am having following TRACE message everytime I select
an OLE object in my view:

"Warning: unable to get moniker from client site"

It is coming from function
"BOOL COleClientItem::GetLinkSourceData(LPSTGMEDIUMlpStgMedium)"
in MFC/src/olecli1.cpp file.

Do you have any idea what this message means and what
should I do to get rid of it?

There is no comments on source file neither on online-help
about this mysterious message.

Pekka Kilponen
http://mordor.cs.hut.fi/~pkilpo/pkilpo.html




Fredrik Gunne -- fgunne@agema.se
Thursday, September 19, 1996

I am having following TRACE message everytime I select
an OLE object in my view:

"Warning: unable to get moniker from client site"

When you select the OLE object, the container starts a drap-and-drop operation. This 
involves (among else) getting the object's "link source data", using GetLinkSourceData.
The link source data is simply a File!Item moniker representing the object. To get the File part,
the OLE object asks its client site for the File moniker. This ends up in a call to 
COleDocument::GetMoniker, which returns NULL if the documents has not been given a name, 
i.e.it's unsaved.

So, to get rid of the message: save the document.





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