2009-09-30 00:39:43 +04:00
|
|
|
extern int __declspec(dllimport) example_dll_function(void);
|
2012-04-02 18:40:13 +04:00
|
|
|
extern int __declspec(dllimport) example_dll_gen_function(void);
|
2009-10-05 22:39:23 +04:00
|
|
|
#ifdef EXAMPLE_DLL_2
|
2009-09-30 00:39:43 +04:00
|
|
|
extern int __declspec(dllimport) example_dll_2_function(void);
|
|
|
|
#endif
|
2016-05-16 17:34:04 +03:00
|
|
|
int example_exe_function(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2009-09-30 00:39:43 +04:00
|
|
|
int main(void)
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
return example_dll_function() + example_dll_gen_function() +
|
2009-10-05 22:39:23 +04:00
|
|
|
#ifdef EXAMPLE_DLL_2
|
2009-09-30 00:39:43 +04:00
|
|
|
example_dll_2_function() +
|
|
|
|
#endif
|
|
|
|
example_exe_function();
|
|
|
|
}
|