I have Win7 64bit. In my project, I'm using Win API functions from user32.dll for DDE communication. In MS VS2008, everything worked without problems, but now I'm trying to upgrade project to MS VS2012 (on the same PC and OS) and API function call leads to program crash.
It is specifically this function:
[DllImport("user32.dll", EntryPoint = "DdeAccessData", CharSet = CharSet.Ansi)]
internal static extern string DdeAccessDataString(IntPtr p, out int datasize);
And it's call:
string result = Dde.DdeAccessDataString(da, out datasize);
I'm trying to debug it someway, but without success. I'm only able to to get message, that "Windows has triggered a breakpoint" on this line.
Can you suggest any approach how make it working?