рефераты конспекты курсовые дипломные лекции шпоры

Реферат Курсовая Конспект

Coclass MyCom2

Coclass MyCom2 - раздел Образование, And the CoLib { [Default] Interface Imycom2;...

{

[default] interface IMyCom2;

}

};


There isn't much to say here, basically you *MAY* use MSVC to write this file for you as described in Creating COM objects in ASM. However, do check that IDispatch is working correctly. The CoLib lib uses the type library here to perform the IDispatch functions, and a bad type lib means no IDispatch.

 

 

--------------------------------------------------------------------------------------------------------------------

MyCom.rgs Resource Script File

 

If you use MSVC to define your .idl file, you also get the MyCom2.rgs registrar file. The registrar file looks like so:

 

– Конец работы –

Эта тема принадлежит разделу:

And the CoLib

Include masm colib oaidl inc... Include masm colib colib inc... Includelib masm colib colib lib new library...

Если Вам нужно дополнительный материал на эту тему, или Вы не нашли то, что искали, рекомендуем воспользоваться поиском по нашей базе работ: Coclass MyCom2

Что будем делать с полученным материалом:

Если этот материал оказался полезным ля Вас, Вы можете сохранить его на свою страничку в социальных сетях:

Все темы данного раздела:

Component Object Library
Copyright © Dec 28, 2000 by Ernest Murphy ernie@surfree.com For educational use only. All commercial use only by written license.   Re-written Dec 28 2000 for the MA

PUBLIC ClassMap ; need to export ONLY the ClassMap
  All the library code is included by the linker as it resolves all the symbols, that is all we need do to fully invoke the library functions.   Our class will

MyCom2IMap InterfaceItem { pIID_IMyCom2, OFFSET vtableIMyCom2 } END_INTERFACE_MAP
END_INTERFACE_MAPis a macro to define a NULL interface to mark the end of the InterfaceMap.   Each object needs type library support. It needs a pointer to t

IMyCom2 Interface
;-------------------------------------------------------------------------- ; sIID_IMyCom2 TEXTEQU <{0F8CE5E41H, 01135H, 011D4H,

Add additional resources here starting at ID number 300
  This should be simple to duplicate. All you are specifying is the type library file and the resistrar script file. Should you have multiple objects, just keep adding the type librar

Interface IMyCom2 : IDispatch
{ [propget, id(0), helpstring("property Value")] HRESULT Value([out, retval] long *pVal); [propput, id(0), helpstring("pro

NoRemove CLSID
{ ForceRemove {F8CE5E43-1135-11d4-A324-0040F6D487D9} = s 'MyCom2 Class' { ProgID = s 'MyCom.MyCom2.1'

EXPORTS DllCanUnloadNow @1 PRIVATE DllGetClassObject @2 PRIVATE DllRegisterServer @3 PRIVATE DllUnregisterServer @4 PRIVATE
  This file is mostly boilerplate. All you need define is the LIBRARY name, which is optional as you really do not need the .lib file for a COM dll. The export names are always the sa

Хотите получать на электронную почту самые свежие новости?
Education Insider Sample
Подпишитесь на Нашу рассылку
Наша политика приватности обеспечивает 100% безопасность и анонимность Ваших E-Mail
Реклама
Соответствующий теме материал
  • Похожее
  • Популярное
  • Облако тегов
  • Здесь
  • Временно
  • Пусто
Теги