Home > Software engineering > C console program calls the MFC generated DLL interface can be generated, but how to do information
C console program calls the MFC generated DLL interface can be generated, but how to do information
Time:10-09
Figure 1 is a MFC dynamic library DLL export functions, figure 2 is a common console application, figure 3 is to run screenshot, but now you can call out the interface, but don't return a value, can't do data interaction, is there any way to put the interface in the return value of the returned to the source program
CodePudding user response:
Inside the DLL interface design is not good
CodePudding user response:
You can change your interface function prototype, see what data you need to pass out, Such as int show (TYPE * TYPE,... );
CodePudding user response:
is now a call after the show, the initiative on the interface, the main program cannot do processing, can't get the return value, also did not print, can't return to the interface data -....