Now we'll proceed with the definition of the COM object, the interface, and the methods. This class is named BeepObj and has an interface called IBeepObj:
- Look at the "Class View" tab. Initially it only has a single item in the list. Right click on "BeepServer Classes" item.
- Select "New ATL Object…". This step can also be done from the main menu. Select the "New ATL Object" on the Insert menu item.
- At the Object Wizard dialog select "Objects". Choose "Simple Object" and press Next.
- Choose the Names tab. Enter short name for the object: BeepObj. All the other selections are filled in automatically with standard names.
|
|
| Figure 4-5 |
- Press the "Attributes" tab and select: Apartment Threading, Custom Interface, No Aggregation. Actually, the aggregation isn't important for this server.
- Press OK. This will create the Com Object.
0 comments:
Post a Comment