- PowerPoint PPT Presentation

About This Presentation
Title:

Description:

http://www.icst.pku.edu.cn/CompCourse COM ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 20
Provided by: docsHuih
Category:
Tags:

less

Transcript and Presenter's Notes

Title:


1
????????
  • ???
  • ??????????????
  • http//www.icst.pku.edu.cn/CompCourse

2
??
  • ????COM?????
  • ????COM??
  • ????COM??????????
  • ????COM???????
  • ????COM??
  • ???????????(?)
  • ???????????(?)

3
COM?????
  • ?COM?????????
  • ?????????????????
  • COM?IUnknown????????????
  • ??????,??????????????????????????????
  • ??????
  • COM???????
  • vtable,???C??????COM??
  • COM??????vtable?????

4
COM?????(?)
  • ??COM?????
  • COM???COM?????????
  • ?????????
  • IDL
  • ????????IDL????
  • interface?coclass?library???????
  • ??COM???C?????
  • ?????????????????

5
COM??
  • ???????
  • ???COM??????
  • ????????COM??
  • DllGetClassObject??????
  • ???????????????????
  • ??CLSID,??InprocServer32
  • ??ProgID,??InprocServer32
  • ??????????????COM??,CLSID????,ProgID????
  • ???????
  • ??COM??????????
  • ?????

6
COM??(?)
  • COM?
  • COM??????????
  • ??COM??????????CoCreateInstance-gtCoGetClassObject
    -gt-gtDllGetClassObject-gtIClassFactory-gt-gtCreateIn
    stance-gtreturn
  • COM????
  • COM??????????
  • ??????????????????
  • ??????HRESULT

7
COM????
  • ?????
  • ????????????,?????
  • ??
  • ????????????client/server
  • ????,???????????????????
  • ??
  • ???????????????
  • ??????????IUnknown??,??????????????1
    ??????IUnknown ????2 ????????IUnknown ????

8
COM?????
  • Marshaling????
  • ??marshaling??????????????
  • proxy/stub???
  • ??????????
  • marshaling - transport - unmarshaling
  • marshaling???
  • ??????????????
  • COM?????????

9
COM????
  • COM????????
  • COM?????????????,???????????????
  • ?????
  • STASTA???????????
  • MTAMTA???????????,?MTA??
  • ???????marshaling,???????????marshaling

10
COM???
  • ????
  • ?????????????????
  • ?????????????????
  • ???????????????????????

11
?C???COM??
  • ????
  • ?????????????ATL??
  • ????????COM?? MFC??

12
Patterns(??)
  • Factory method
  • Builder
  • Bridge
  • Composite
  • Iterator
  • Strategy

13
PatternsFactory Method
14
PatternsBuilder
15
PatternsBridge
16
PatternsComposite
17
Patterns Iterator
18
Patterns Strategy
19
???????
  • ????
  • ??,2??
  • COM??????????????
  • pattern?????????patterns??????,???????????
  • ????100,????50
  • ?????50,???????
Write a Comment
User Comments (0)
About PowerShow.com