From: dotBomb on
Hi,

I am calling SqlConnect as suggested by this article:
http://msdn.microsoft.com/en-us/library/ms711810(VS.85).aspx

On a 64-bit Vista Ultimate Sony Vaio laptop, I have noticed that SqlConnect
always looks for the DSN in the 64-bit collection of ODBC connections. How
can I get access, via MFC functions, to the 32-bit collection of ODBC
connections?

Thank you,

Daniel Kemper, MCP, MCTS
From: Goran on
On Feb 1, 3:51 pm, dotBomb <dotB...(a)discussions.microsoft.com> wrote:
> Hi,
>
> I am calling SqlConnect as suggested by this article:http://msdn.microsoft.com/en-us/library/ms711810(VS.85).aspx
>
> On a 64-bit Vista Ultimate Sony Vaio laptop, I have noticed that SqlConnect
> always looks for the DSN in the 64-bit collection of ODBC connections.  How
> can I get access, via MFC functions, to the 32-bit collection of ODBC
> connections?

What, your 32-bit code looks amongst 64-bit connections? That's
strange, I'd count that as a system bug, and that's not how I saw
things work when I use 32-bit code (tried on Vista 64 bit enterprise).

If you want your 64-bit code to use 32--bit ODBC, I don't think you
should be able to do that. That AFAIK would mean loading 32-bit
drivers (DLLs, mind) into a 64-bit process.

Goran.