GeoIP Win32 COM Client v1.0 Copyright (c) 2003 MaxMind LLC http://www.maxmind.com/ support@maxmind.com July 7th, 2003 I. OVERVIEW GeoIP enables you to easily lookup the country that an IP address orginates from. II. INSTALL Copy GeoIPDemo.dat to C:\Program Files\GeoIP\GeoIPDemo.dat Copy GeoIPCOM.dll to the "system32" folder, usually found in C:\WINNT. Register the COM object. This is done from the command line as follows: C:\> cd winnt\system32 C:\WINNT\system32> regsvr32 GeoIPCOM.dll III. USAGE Examples for calling the GeoIP COM object from specific languages are included with this archive. The examples available are: GeoIPTest.asp - Example ASP (Active Server Pages) script GeoIPTest.cfm - Example ColdFusion script. GeoIPTest.pl - Example Perl script. This requires the Win32::OLE extensions, and has been tested with ActivePerl 5.6. GeoIPTest.pas - Example Delphi code. GeoIPTest.py - Example Python script. GeoIPTest.php - Example PHP script. GeoIPTest.vb - Example Visual Basic code. IV. Troubleshooting. If you get an error "Application object error 'ASP 0197 : 80004005 Cannot add object with apartment model behavior to the application intrinsic object.", change the IIS virtual server's application attribute AspExecuteInMTA from "0" to "1" so it will run in 'multi-threaded apartment'