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

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


OLE server

chanda3@h27hkgp2.oocl.com
Thursday, July 11, 1996

Environment: VC++ 4.0 / Win 95/NT

Hi,

I'm writing an OLE server DLL using MFC and want to have some constants
defined inside it, just as what you see with VB object browser
(constantXXX=8 sthg like that).

My question is how can I do that with MFC as the class clz only provides
ways of adding methods & property? 

thanks for your time.



Vilas Patil -- vilasp@rpsadf.atlantaga.ncr.com
Wednesday, July 17, 1996


Hi:

You should include following in your ODL file

module Constants
{
     const short SomeConstant = 5;
}

Note that the name & values are for example.

Rebuild the MakeLibrary, and thats all.

Vilas

 ----------
From: owner-mfc-l
To: mfc-l
Subject: OLE server
Date: Thursday, July 11, 1996 2:48PM

Environment: VC++ 4.0 / Win 95/NT

Hi,

I'm writing an OLE server DLL using MFC and want to have some constants
defined inside it, just as what you see with VB object browser
(constantXXX=8 sthg like that).

My question is how can I do that with MFC as the class clz only provides
ways of adding methods & property?

thanks for your time.




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