Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement