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

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


wrapp structure OLE controls

Bernard JOURDAIN -- bjourdain@afp.com
Friday, January 17, 1997

Environment: NT 4.0 MSVC 4.0
Hi,

J have a little problem with an OLE control :

My stuff like this :

J have a class that use a structure and methods like this :

typedef struct 
{
   UINT n;
   COLORREF crBack;
   ...
} EDITCONFIG;

void CMyControl::SetConfig(EDITCONFIG& ediConfig)
{
   ...
}

EDITCONFIG& CMyControl::GetConfig(EDITCONFIG& ediConfig)
{
   ...
}

J want to made an implementation of a COM wrapper to EDITCONFIG that
exposes the embedded struct via a dual/dispatch properties. Can you
advise which kind of MFC base class, can i use ?

-- 

Best regards

Bernard JOURDAIN



Bernard JOURDAIN -- bjourdain@afp.com
Monday, January 20, 1997

Bernard JOURDAIN wrote:
> 
> Environment: NT 4.0 MSVC 4.2
> Hi,
> 
> I have a little problem with an OLE control :
> 
> My stuff like this :
> 
> I have a class that use a structure and methods like this :
> 
> typedef struct
> {
>    UINT n;
>    COLORREF crBack;
>    ...
> } EDITCONFIG;
> 
> void CMyControl::SetConfig(EDITCONFIG& ediConfig)
> {
>    ...
> }
> 
> EDITCONFIG& CMyControl::GetConfig(EDITCONFIG& ediConfig)
> {
>    ...
> }
> 
> I want to made an implementation of a COM wrapper to EDITCONFIG that
> exposes the embedded struct via a dual/dispatch properties. Can you
> advise which kind of MFC base class, can i use ?
> 
> --
> 
> Best regards
> 
> Bernard JOURDAIN

--




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