exe or .obj.) /DBUILDING_DLL defines the PRINT_API macro for this particular building process so that the printHello symbol is exported from this DLL.
/DBUILDING_DLL为这个特定的构建过程定义了 PRINT_API宏,以便从这个 DLL导出printHello符号。
Consider the example in Listing 1, where you try to create a small.dll file that has a single function, printHello, which is called from the main routine in the main.cpp file.
请考虑清单1中的示例,在这个示例中,您尝试创建一个小的. dll文件,其中仅包含一个函数printhello,并且在main .cpp文件的main例程中调用了这个函数。
Consider the example in Listing 1, where you try to create a small.dll file that has a single function, printHello, which is called from the main routine in the main.cpp file.
请考虑清单1中的示例,在这个示例中,您尝试创建一个小的. dll文件,其中仅包含一个函数printhello,并且在main .cpp文件的main例程中调用了这个函数。
应用推荐