How can I remove this link warning? You can see code segment that causes this warning.
static AFX_EXTENSION_MODULE GuiCtrlsDLL = { NULL, NULL }; //bla bla //
That warning is usually caused by a duplicate definition of a function with different use of dllimport. Are you sure you didn't do this?