SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vcvars32.bat
  2.  
  3.  lib /def:yourfile.def /out:yourfile.lib
  4.      
  5. lib /def:yourfile.def /machine:x64 /out:yourfile64.lib
  6.      
  7. implib.exe /s mydll.lib mydll.dll
  8.      
  9. // Function declaration
  10. __declspec(dllexport) void  foo(void);
  11.      
  12. // Function definition
  13. #include <A.h>
  14. void foo(void) {
  15. ; // definition
  16. }
  17.      
  18. // Load time dynamic linking:
  19. // Application should include X.lib (not X.dll) in the project setting
  20.  #include <A.h>
  21.  int main() {
  22.  foo();
  23.  return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top