Go to Project Property Page/Cofniguration Properties

General/Configuration Type, change as “Dynamic Library(.dll)”

C/C++/Code Generation/Runtime Library, change as “/MDd”

C/C++/Preprocessor/Preprocessor Definitions, add macro “YOURDLL_EXPORTS”

Linker/System/SubSystem, change as “Windows(/Subsystem:windows)”

Linker/Advanced/Import Library, change as ...$(TargetName).lib

Create an header contains the export interfaces

#endif

And then add a dllmain.cpp file contains the allocation and deallocation for this dll
int lhs, rhs);
as the abovev code, the Add function will be explored outside to invoke. If you want to explore an entire class, you should declare a class like this way:
int lhs, rhs);
};


相关文章:

  • 2021-07-31
  • 2021-10-28
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-09-21
  • 2021-05-21
猜你喜欢
  • 2022-01-15
  • 2021-05-26
  • 2022-12-23
  • 2022-01-23
  • 2021-06-03
  • 2021-10-10
  • 2021-11-08
相关资源
相似解决方案