| |
|
|
|
Errata and Enhancements
for
Understanding and Programming COM+
Understanding and Programming COM+
A Practical Guide to Windows 2000 DNA
ISBN: 0-13-023114-2
by Robert J. Oberg
Copyright (c) 2000 Prentice Hall PTR
Please send any errata you
discover or enhancements you
would like to suggest to:
oberg@objectinnovations.com.
Typos will be fixed in next printing of book.
Other errata and enhancements will be
posted below.
Please download the latest update
for the CD-ROM.
p. 200 (top) The line
*pName = bstr;
should read
*pName = bstr.Detach()
as discussed on page 172. The client
program
NameTest
in the function
OnGetname()
calls
Release()
in the improper place, and there is
a memory leak due to constructing
the
_bstr_t
wrapper object improperly. The constructor
should pass false as second parameter,
avoiding the creation of a copy of
the BSTR. Then the BSTR will be
deallocated properly. The
update file
for the CD-ROM fixes these problems.
p. 348 To take advantage of
VC6 MTS support for building COM+ components,
you should do one more thing. When you
insert a new ATL object and choose
MS Transaction Server Component, go to
the MTS tab and check "Support IObjectControl."
In using the released version of Windows 2000
you may get link errors when building
this example. You can fix them
via Project | Settings, Link tab.
Add the Object/Library comsvcs.lib.
|
|
Copyright © 2004 • Object Innovations, Inc.
|
|