thanks
how do you put it in release mode?
and which files do I add to the project?
On the compiler toolbar, change "Build Target" to "Release"
Note: I used the GUI to start the DLL Project.
File -> New -> Project -> "Dynamic Link Library"
It defaults to two targets "Debug" and "Release"
I edited the single file main.cpp like my sample above.
Note, if I leave out the include of "enet/enet.h" I get an error like yours. But, I needed to the other changes to get it to work.
Tim S