>Link: fatal error lnk1561 and link: fatal error lnk1168: Solutions

In the VS 20XX custom project properties, select “General” on the left, “Use of MFC” on the right, and select “Use of MFC in Shared DLLs” next to it, as shown in Figure 1

Figure 1
LINK: fatal error LNK1561: cannot open E:\ test1.exe to write 1> in VS 20XX MFC; The operation to build project “test1.vcxproj” has completed – failed.
 
Solution: Change Settings: Linker ->; Advanced – & gt; Change the entry point to WinMainCRTStartup, as shown in Figure 2.

Figure 2
It’s done!! As shown in figure 3

Figure 3
Also, if a LINK: fatal error LNK1168 is reported, as shown in Figure 4

Figure 4.
This usually means that the program that was run last time did not shut down properly.
Indicate that the interface is not related, the program did not exit. Check if the task manager has a process called xx. exe, open the task manager, find the process called xx. exe, and close it. Then recompile the connection.
 
 
 
 
 
 


Read More: