Question : compile this code with Delphi 2010

what is the best change to convert this code to D2010 ??   source compiler D7
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
function GetIPAddress: string;
var    phoste : PHostEnt;
       Buffer : array [0..100] of char;
       WSAData : TWSADATA;
begin
  result := '';
  if WSAStartup($0101, WSAData) <> 0 then exit;
  GetHostName(Buffer, SizeOf(Buffer));
  phoste :=GetHostByName(buffer);
  if phoste = nil then result := '127.0.0.1' else
  result := StrPas(inet_ntoa(PInAddr(phoste^.h_addr_list^)^));
  WSACleanup
end;

Answer : compile this code with Delphi 2010

They haven't updated the Upgrade Guide in that link yet...it's on the documentation link for 4.1. Here it is:
http://www.vmware.com/pdf/vsphere4/r41/vsp_41_upgrade_guide.pdf

I haven't ran 4.1 upgrade yet, but what I did for 4 was the similar suggestion you made above...I migrated VMs off my host, disconnected my datastore storage (SAN-based, so all I did was disconnect my fibre), performed fresh install on my host, reconnected my shared storage, then migrated VMs back (then I upgraded VMware Tools then Hardware on my VMs). It's more cautious this way...and I tend to side with the way of caution :)

~coolsport00
Random Solutions  
 
programming4us programming4us