Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWIPGeolocationClient::Execute() always false
#3
This version is now running:

TIWIPGeolocationClient* pCurClient;

TIWIPGeolocationClient::MaxErrorCount = 10;
TIWIPGeolocationClient::Enabled = false;

if((pCurClient = new TIWIPGeolocationClient(this)) != NULL)
{
   // Interface and key
   pCurClient->IPGeoApiInterface = TIPGeoApiInterface(CurIndex);
   pCurClient->ApiKey = theApiKey;

   // Execute GeoApi function
   if(pCurClient->Execute(theIPAddress) == true)
   {
     // Retrieve API response
   }
}

In my opinion, the changes made to the general component TIWIPGeolocationClient for the version IW16.0.9 are certainly very helpful for the component developer's testing,
but may be rather hindering for practical use due to the implicit error handling.
A component developer should not make any assumptions about how his component will ultimately be used in an application environment.
Reply


Messages In This Thread
RE: TIWIPGeolocationClient::Execute() always false - by JuergenS - 05-29-2025, 11:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)