Help for this page

Select Code to Download


  1. or download this
    my $DLL = 'D:\path\to\CrappyLibrary.dll';
    my $IP = "192.168.186.140";
    ...
    ...
    
    my $result = $RegisterClient2->Call($client_id, $IP);
    
  2. or download this
    my $RegisterClient2 = Win32::API->new($DLL, 'int _cdecl RegisterClient
    +2(int *pnClientId, char *pszIPAddress)');
    
  3. or download this
    my $RegisterClient2 = Win32::API->new($S{DLL_path}, 'RegisterClient2',
    + 'PP', 'I', '_cdecl');
    my $result = $RegisterClient2->Call($client_id, $IP);
    
  4. or download this
    my $hash{IP} = "192.168.186.140";
    my $result = $RegisterClient2->Call($client_id, $hash{IP});
    # fails
    
  5. or download this
    int GetServerData2(int nClientId, int *pnSetup, double *pdTime,double 
    +*pdX, double *pdY, double *pdZ, double *pdTotal)
    
  6. or download this
    my $GetServerData2 = Win32::API->new($S{DLL_path}, 'GetServerData2', '
    +IPPPPPP', 'I', '_cdecl');
    
  7. or download this
    my ($time, $Ex, $Ey, $Ez, $Eabs, $SAR);
    $time = $Ex = $Ey = $Ez = $Eabs = 5.0;
    my $result = $GetServerData2->Call($client_id, $read_setup_no, $time, 
    +$Ex, $Ey, $Ez, $Eabs);