Help for this page

Select Code to Download


  1. or download this
    C:\_32\c>type double.h
    double __declspec(dllexport) my_double(int);
    C:\_32\c>
    
  2. or download this
    C:\_32\c>type double.c
    #include "double.h"
    ...
           return (double) num;
    }
    C:\_32\c>
    
  3. or download this
    C:\_32\c>cl /Gz /LD double.c
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 
    +80x86
    ...
       Creating library double.lib and object double.exp
    
    C:\_32\c>
    
  4. or download this
    C:\_32\c>dumpbin /exports double.dll
    Microsoft (R) COFF/PE Dumper Version 7.00.9466
    ...
            7000 .text
    
    C:\_32\c>
    
  5. or download this
    C:\_32\c>type double.pl
    use Win32::API;
    ...
    $ret = $function->Call(123);
    print $ret, "\n";
    C:\_32\c>
    
  6. or download this
    C:\_32\c>perl double.pl
    Can't call method "Call" on an undefined value at double.pl line 5.
    
    C:\_32\c>
    
  7. or download this
    C:\_32\c>type double_test.c
    #include <stdio.h>
    ...
        return 0;
    }
    C:\_32\c>
    
  8. or download this
    C:\_32\c>cl double_test.c double.lib
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 
    +80x86
    ...
    double_test.exe : fatal error LNK1120: 1 unresolved externals
    
    C:\_32\c>
    
  9. or download this
    C:\_32\c>cl -c double.c
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 
    +80x86
    ...
    double.c
    
    C:\_32\c>
    
  10. or download this
    C:\_32\c>cl double_test.c double.obj
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 
    +80x86
    ...
       Creating library double_test.lib and object double_test.exp
    
    C:\_32\c>
    
  11. or download this
    C:\_32\c>double_test.exe
    123.000000
    
    C:\_32\c>