Looking for a preprocessor directive in c# for importing dll based on whether the executable is 64bit or 32 bit:
#if WIN64
[DllImport(\"ZLIB64.dll\", Calling
You'll have to add a conditional compilation symbol for each target platform in your project's properties, in the Build tab. Simply add a symbol for the given Platform as determined by the Platform drop-down at the top of the Build form. Changing Platform will allow you do add different symbols that apply only to a build for that platform.