I changed GetDOSEnvironment variable to GetEnvironmentStrings when convering a 16 bit code to a 32 bit one. I got the below error help to resolve the problem

mfcs42d.lib(dllmodul.obj) : error LNK2005: __pRawDllMain already defined in SLSOCKET.OBJ
Debug/slgsockd.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

I am using visual C++ 6.0

The error message says it all -- you are trying to link together two *.obj files that contain the same function.