Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access violation

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
I have a strange pb with my application:
My app is a dlg application in which i have to use a ADO connection with an Access database:
CString strTemp;
strTemp.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\SwaptionCalculator\\ParameterFile.mdb;");
_bstr_t strCnn(strTemp);

In the last line there is a pb i have never met before today(i would like to specify that this lines haven't be changed since i have started my application, and it runned very well before today!)
So, if i try to run my application, a message arrives, telling me this thing:
"unhandled exception, ....0x00000005. Access Violation"
This happened when the app is at line of the following declaration:

_bstr_t strCnn(strTemp)

So, i would like to know what is the problem, and i thank in advance people who can help me

gerald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top