Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- void first_func(void)
- {
- cout << "First function in first dlln";
- three_func();
- }
- void second_func(void)
- {
- cout << "second function in first dll.n";
- four_func();
- }
- _declspec(dllexport) void three_func(void)
- {
- three_func();
- }
- _declspec(dllexport) void four_func(void)
- {
- four_func();
- }
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- void three_func(void)
- {
- cout << "three function in second dlln";
- second_func();
- }
- void four_func(void)
- {
- cout << "four function in second dllnНу нифига себе.";
- }
- _declspec(dllexport) void second_func(void)
- {
- second_func();
- }
- #define COMPILING_DLL1
- #ifdef DLL1_EXPORTS
- #define DLL1_API __declspec(dllexport)
- #else
- #define DLL1_API __declspec(dllimport)
- #endif
- DLL1_API void first_func(void);
- DLL1_API void second_func(void);
- #include "stdafx.h"
- #include "Dll1.h"
- #include "Dll2.h"
- DLL1_API void first_func(void)
- {
- cout << "First function in first dlln";
- three_func();
- }
- DLL1_API void second_func(void)
- {
- cout << "second function in first dll.n";
- four_func();
- }
Add Comment
Please, Sign In to add comment