Guest User

Untitled

a guest
Dec 13th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 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. #ifdef DLL1_EXPORTS
  45. #define DLL1_API __declspec(dllexport)
  46. #else
  47. #define DLL1_API __declspec(dllimport)
  48. #endif
  49.  
  50. DLL1_API void first_func(void);
  51. DLL1_API void second_func(void);
  52.  
  53. #include "stdafx.h"
  54. #include "Dll1.h"
  55. #include "Dll2.h"
  56.  
  57. DLL1_API void first_func(void)
  58. {
  59. cout << "First function in first dlln";
  60. three_func();
  61. }
  62.  
  63. DLL1_API void second_func(void)
  64. {
  65. cout << "second function in first dll.n";
  66. four_func();
  67. }
Add Comment
Please, Sign In to add comment