Guest User

Untitled

a guest
Dec 13th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. void first_func(void)
  6. {
  7. cout << "First function in first dlln";
  8. three_func();
  9. }
  10. void second_func(void)
  11. {
  12. cout << "second function in first dll.n";
  13. four_func();
  14. }
  15.  
  16. _declspec(dllexport) void three_func(void)
  17. {
  18. three_func();
  19. }
  20.  
  21. _declspec(dllexport) void four_func(void)
  22. {
  23. four_func();
  24. }
  25.  
  26. #include "stdafx.h"
  27. #include <iostream>
  28. using namespace std;
  29.  
  30. void three_func(void)
  31. {
  32. cout << "three function in second dlln";
  33. second_func();
  34. }
  35. void four_func(void)
  36. {
  37. cout << "four function in second dllnНу нифига себе.";
  38. }
  39. _declspec(dllexport) void second_func(void)
  40. {
  41. second_func();
  42. }
  43.  
  44. #define COMPILING_DLL1
  45.  
  46. #ifdef DLL1_EXPORTS
  47. #define DLL1_API __declspec(dllexport)
  48. #else
  49. #define DLL1_API __declspec(dllimport)
  50. #endif
  51.  
  52. DLL1_API void first_func(void);
  53. DLL1_API void second_func(void);
  54.  
  55. #include "stdafx.h"
  56. #include "Dll1.h"
  57. #include "Dll2.h"
  58.  
  59. DLL1_API void first_func(void)
  60. {
  61. cout << "First function in first dlln";
  62. three_func();
  63. }
  64.  
  65. DLL1_API void second_func(void)
  66. {
  67. cout << "second function in first dll.n";
  68. four_func();
  69. }
Add Comment
Please, Sign In to add comment