Tell me how to correctly compile an application created using the form designer in VS10, so that it runs on machines with no studio . I understand that all used libraries should be written into the program code. After setting the Use MFC in a Static Library in the settings of the project, nothing has changed, however, the command line error D8016 gave an error: '/ clr' and '/ MT' threaded Debug DLL (/ MDd) . In general, I nup and I need help :)

    1 answer 1

    And whose is the form constructor? For WinAPI\MFC or for Windows Forms? Judging by an error you use C++\CLI . You cannot use static linking with it. Only dynamic.

    If you really write using Windows Forms, then you better use C #. It is intended for this purpose more and there is no library that requires Visual C ++ to be linked.