Help for this page

Select Code to Download


  1. or download this
    typedef
    struct myTable { 
     void* opaque;  ///< Opaque pointer to storage
    } myTable;
    
  2. or download this
    __declspec(dllimport) myTable myTableCreate();
    __declspec(dllimport) enum myStatus myTableLoadFromFile(char const* fi
    +lename, MyTable* pointToMyTable);
    
  3. or download this
    Win32::API::Struct->typedef( myTable => qw{PVOID opaque;});
    my $CreateTable = new Win32::API("myDll.dll","myTable myTable Create()
    +");
    my $LoadTableFromFile = new Win32::API("myDll.dll","int myTableLoadFro
    +mFile(char const* filename, LPMyTable pointToMyTable)")
    
  4. or download this
    my $LeftTable = $CreateTable->Call();
    my $pathTableLft = 'C:/Temp/Requests/CapBuy.TBL';
    my $isLoaded = $LoadTableFromFile->Call($pathTableLeft,$LeftTable);
    print($isLoaded);