SQLDriverConnect crash

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I tried to connect to a local SQL server database using SQLDriverConnect in
a VC++ project, on a Windows 2003 OS. It is an unicode project. Everytime
the code reaches SQLDriverConnect it crashes. try catch block did not work.
I tried to pick up some samples from websites and found that none of the
website did give me samples of unicode project to interact with SQL server
database.
My code fails only in Windows 2003 OS, but the same code works in XP.
When I implement the code in win32 application (not unicode) in Windows 2003
OS it works fine.

Can anyone help me?


.