DSInternals/Src/DSInternals.Replication.Int.../unmanaged.h

8 lines
365 B
C++
Raw Normal View History

2016-02-02 23:19:21 +00:00
/*
Including this header will disable managed code in a C++ file, even if compiled with the /CLR parameter.
We need to do this with files generated by MIDL.
Otherwise, we get "The Array Bounds Are Invalid" error from at least one RPC call on the x86 platform.
Strangely enough, this hack is not needed on the x64 platform.
*/
#pragma once
#pragma managed(push, off)