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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.