Index: /trunk/Utilities/MaxMindGeoLite/Location.h =================================================================== --- /trunk/Utilities/MaxMindGeoLite/Location.h (revision 50) +++ /trunk/Utilities/MaxMindGeoLite/Location.h (revision 51) @@ -102,4 +102,8 @@ } } + SIZE_T GetCount() const throw() + { + return __super::GetCount(); + } BOOL Lookup(INT nIdentifier, const CLocation** ppLocation = NULL) const throw() { @@ -194,4 +198,8 @@ pszDataPointer = pszSeparator + 1; } + } + SIZE_T GetCount() const throw() + { + return __super::GetCount(); } BOOL Lookup(ULONG nAddress, const CBlock** ppBlock = NULL) const throw() @@ -497,4 +505,6 @@ DECLARE_PROTECT_FINAL_CONSTRUCT() +DECLARE_QI_TRACE(CLocations) + BEGIN_COM_MAP(CLocations) COM_INTERFACE_ENTRY(ILocations) @@ -519,4 +529,6 @@ //DECLARE_PROTECT_FINAL_CONSTRUCT() + DECLARE_QI_TRACE(CLocation) + BEGIN_COM_MAP(CLocation) COM_INTERFACE_ENTRY(ILocation) @@ -540,4 +552,5 @@ { m_Location = Location; + _Z2(atlTraceGeneral, 2, _T("Initialized, Location.m_sCountryCode %hs, .m_sRegion %hs, .m_sCity %hs\n"), Location.m_sCountryCode, Location.m_sRegion, Location.m_sCity); } @@ -728,4 +741,5 @@ m_LocationArray.Initialize(sLocationPath); m_BlockArray.Initialize(sBlockPath); + _Z2(atlTraceGeneral, 2, _T("Initialized, m_LocationArray.GetCount() %d, m_BlockArray.GetCount() %d\n"), m_LocationArray.GetCount(), m_BlockArray.GetCount()); } @@ -791,4 +805,6 @@ DECLARE_PROTECT_FINAL_CONSTRUCT() +DECLARE_QI_TRACE(CLazyLocations) + BEGIN_COM_MAP(CLazyLocations) COM_INTERFACE_ENTRY(ILazyLocations) @@ -880,4 +896,5 @@ { CRoCriticalSectionLock DataLock(m_DataCriticalSection); + _Z2(atlTraceGeneral, 2, _T("Query for Locations, m_pLocations 0x%p\n"), m_pLocations); return m_pLocations; } Index: /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.c =================================================================== --- /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.c (revision 50) +++ /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.c (revision 51) @@ -7,5 +7,5 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Sun Feb 12 00:46:15 2012 +/* at Sun Feb 12 12:28:00 2012 */ /* Compiler settings for MaxMindGeoLite.idl: Index: /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.h =================================================================== --- /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.h (revision 50) +++ /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_i.h (revision 51) @@ -5,5 +5,5 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Sun Feb 12 00:46:15 2012 +/* at Sun Feb 12 12:28:00 2012 */ /* Compiler settings for MaxMindGeoLite.idl: Index: /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_p.c =================================================================== --- /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_p.c (revision 50) +++ /trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite_p.c (revision 51) @@ -5,5 +5,5 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Sun Feb 12 00:46:15 2012 +/* at Sun Feb 12 12:28:00 2012 */ /* Compiler settings for MaxMindGeoLite.idl: Index: /trunk/Utilities/MaxMindGeoLite/Web/test.asp =================================================================== --- /trunk/Utilities/MaxMindGeoLite/Web/test.asp (revision 51) +++ /trunk/Utilities/MaxMindGeoLite/Web/test.asp (revision 51) @@ -0,0 +1,31 @@ +<%@Language="JScript"%> +<% + geoLocations = new ActiveXObject("AlaxInfo.MaxMindGeoLite.LazyLocations"); + //geoLocation = geoLocations.Item("alax.info"); + geoLocation = geoLocations.Item("80.92.234.64"); +%> + +
+ +