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

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

Add additional resources here starting at ID number 300

Add additional resources here starting at ID number 300 - раздел Образование, And the CoLib   This Should Be Simple To Duplicate. All You Are Specifying Is...

 

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 libraries as the comment suggests. CoLib will register every type lib in the list that appear at the IDD_TypeLibresource number and on. There can only be one registrar file, so if you have multiple objects, you must hand edit these scripts into a single script.

MyCom.IDL Interface Definition File

 

 

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

MyCom2.idl, the interface definition file

I will not pretend that I understand Interface Definition Language or syntax. All I can state is the following code works. I have Jeremy of Collake Software (http://www.collakesoftware.com/main.stm) to thank for the outline of this file (cause I stole mine from him).

 

// MyCom2.idl : IDL source for MyCom2.ocx (or dll)

//

import "oaidl.idl";

import "ocidl.idl";

[

uuid(F8CE5E42-1135-11d4-A324-0040F6D487D9),

helpstring("MyCom2 1.0 Type Library"),

version(1.0)

]

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

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

And the CoLib

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

Если Вам нужно дополнительный материал на эту тему, или Вы не нашли то, что искали, рекомендуем воспользоваться поиском по нашей базе работ: Add additional resources here starting at ID number 300

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

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

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

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,

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

Coclass MyCom2
{ [default] interface IMyCom2; } }; There isn't much to say here, basically you *MAY* us

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
Реклама
Соответствующий теме материал
  • Похожее
  • Популярное
  • Облако тегов
  • Здесь
  • Временно
  • Пусто
Теги