SQLDriverConnect() gives "user breakpoint" and no more help



I'm having a hard time getting this SDK's ODBC library to work for me.
I've been following the guide in the MSDN, but whenever I call
SQLDriverConnect(), I can select the machine source (in this case, it
uses the MySQL Connector/ODBC) then ok the login screen, and get a
"user breakpoint" before the function can return. That's not much help,
and I'm not aware of any exceptions I can trap. Here's my code:

SQLHDBC m_sqlconnection;
SQLHENV m_sqlenv;

....

SQLRETURN nReturn = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE,
&m_sqlenv);
assert(nReturn == SQL_SUCCESS || nReturn == SQL_SUCCESS_WITH_INFO);

nReturn = SQLSetEnvAttr(m_sqlenv, SQL_ATTR_ODBC_VERSION,
(SQLPOINTER)SQL_OV_ODBC3, 0);
assert(nReturn == SQL_SUCCESS || nReturn == SQL_SUCCESS_WITH_INFO);

nReturn = SQLAllocHandle(SQL_HANDLE_DBC, m_sqlenv, &m_sqlconnection);
assert(nReturn == SQL_SUCCESS || nReturn == SQL_SUCCESS_WITH_INFO);

SQLCHAR lpszStringOut[1024];
SQLSMALLINT nOutSize;
nReturn = SQLDriverConnect(m_sqlconnection, m_hWnd, (SQLCHAR *)"", 0,
lpszStringOut, 1024, &nOutSize, SQL_DRIVER_PROMPT);

Did I forget anything?

.



Relevant Pages

  • Re: howd they do that
    ... This is the main frame page's source: ... Once you're signed into Subscriber Services: ... You CANNOT "view source" at MSDN once you're logged in. ... Step-by-Step Guide for ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MSH Language Reference
    ... content on MSDN. ... other convenient print file format on a chapter by chapter or book basis ... I really like the guide, but I'm much better in consuming printed data ... to find a Language Reference for MSH. ...
    (microsoft.public.windows.server.scripting)
  • Re: MSH Language Reference
    ... I really like the guide, but I'm much better in consuming printed data ... TDM wrote: ... to find a Language Reference for MSH. ... have a few links at MSDN, ...
    (microsoft.public.windows.server.scripting)
  • Re: great guide for steam shower buyers
    ... LBB wrote: ... just want to share it with those who are having a hard time ... included into ebay's product guide database. ... else, or new cars for a dollar, you're a spammer. ...
    (alt.home.repair)
  • Re: MSH Language Reference
    ... I really like the guide, but I'm much better in consuming printed data ... content in the SDK is updated? ... I had already downloaded the docs you reference, but the MSDN ...
    (microsoft.public.windows.server.scripting)

Loading