Using the CD-ROM Lab Solutions

 < Free Open Study > 



 On the CD   The companion CD-ROM contains complete solutions for all of the lab work in this book. The solutions are indicated in the text with the icon at the left.

To install these files onto your hard drive, double-click on the Labs.exe self-extracting archive. This will move all files onto your hard drive under C:\COM ATL\Labs. Also note that each project will need to be recompiled before you can test the solutions!

Beginning with Chapter 3, every "raw C++" lab makes use of a custom *.reg file which must be merged into your system registry. If you forget to do so, the client solutions will not work! Be aware that the *.reg files make use of hard-coded path names, which more likely than not will not be the same as where you have chosen to install the sample code. Thus, you will need to edit the path to your specific path. For example, the CarInProcServer lab in Chapter 3 has the following *.reg file listing. Modify the section in bold to the correct path:

HKEY_CLASSES_ROOT\CLSID\{7AD2D539-EE35-11d2-B8DE-0020781238D4}\InprocServer32 =  c:\My Documents\ATL\Labs\Chapter 03\CarInProcServer\Debug\CarInProcServer.dll 

Also realize that the ATL solutions must be registered on your machine before the clients can make use of them. ATL servers do not make use of *.reg files, but enter the correct information programmatically. To register the ATL sample solutions, rebuild the project. This will automatically register the COM server.



 < Free Open Study > 



Developer's Workshop to COM and ATL 3.0
Developers Workshop to COM and ATL 3.0
ISBN: 1556227043
EAN: 2147483647
Year: 2000
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net