I'm interfacing with an Access database and so have to use either of two connection strings (Jet or Ace) depending on my platform selection (i.e. x86 or x64). The code that I'm working on could be compiled with either platform so I need a way to detect the platform "bitness". I've been told I can use IntPtr
but I'm not sure how.
Thanks.
Edits:
Just want to say, this is NOT a duplicate! In the suggested link, the OP is asking for the Operating system's bitness, not the process's. And they are talking about .NET 2.0. I haven't seen anything in 2.0 in like three years.