6.2.2- Setting Up the Telephone Object Example
Created
by Brendan Doss.
|
| << 6.2.1- The Software Telephone Object | Chapter6 | 6.2.3- Altering the Properties of an Object >> |
Setting Up the Telephone Object Example
We've supplied the telephone object on the Wrox web site. It comes as a DLL file, which has to be installed and registered before you can use it. The good news is that it is automatically installed and registered by running a self-contained exe file. Once you've run the file, you will have a telephone object, ready to include in the script of your ASP pages. Let's look at what needs to be done to install it.
Try It Out – Installing the Telephone DLL
1. Download the MyTelephone.exe file from the Wrox web site at http://www.wrox.com. You can also find full support with any problems encountered during the installation at this URL.
2. Once the file has been downloaded, you can run it to expand all of the files into a temporary directory.
3. Go to that temporary directory and run setup.exe to install the MyTelephone object. Click on OK on the first dialog to confirm installation, and then click the icon to proceed with installation.
|
Troubleshooting Problems
The differences between each individual's computer, operating system and set up sometimes means that the software installs but may fail to register correctly. If you run any of the examples later in this chapter and encounter an error generated by a call to any of the methods, such as the PlaceCall method, then this will be the problem.
The problem is easy enough to rectify, all you need to do is manually register the DLL yourself. To do that, once you've run setup.exe you'll find that a file called MyTelephone.dll has been created. It's also a good idea to stop and restart the web application manager before you use the DLL in any examples. It can be placed in any directory - the only important thing is that the file be registered in that directory. To do that, there is a file (provided by the machine's operating system) called REGSVR32.EXE. If you run that file and pass the name of the .dll as a parameter (e.g. regsvr32 MyTelephone.dll), it will register the file in that location. The best way to do this is from the command prompt: copy the .dll file to the desired directory, go to that directory, and then run regsvr32 MyTelephone.dll. The OS should find regsvr32.exe since it is usually in the WinNT/System32 folder, which is in the default path.
If it's still not working then check that the machine you are actually installing the file on is actually the web server, and not just the machine with your browser on, and then look at the web site http://p2p.wrox.com for support if you still have problems.
| << 6.2.1- The Software Telephone Object | Chapter6 | 6.2.3- Altering the Properties of an Object >> |

RSS

