You can not link the acknex.lib to a plugin. Besides, a plugin is a DLL - a dynamically linked library - not a win32 console app.
There are many tutorials on the web about the first steps with VC++ and the basics of C++ programming under Windows. Once you've got the basics, just read under "External languages" how to write a lite-C plugin. It's really easy, but you need at least some basic understanding of VC++ and the plugin SDK. Otherwise you'll only get frustration, but not a working plugin.
http://manual.conitec.net/prog_started.htm