|
| CLS-compliant |
 |
Mon, 24 Mar 2008 18:17:46 +000 |
Hi everyone,
I recently re-installed vs 2005 on my server and tried to rebuild an existing
project. I get so many warning such as '_dbAcess' is not CLS-compliant.
Can someone tell me how to get rid of these warnings?
thank you
m.
|
| Post Reply
|
| Re: CLS-compliant |
 |
Mon, 24 Mar 2008 18:56:00 +000 |
You can either change the name of the variable to a CLS compliant name, or you
can add:
<CLSCompliant(False)> in front of the variable where you create it.
|
| Post Reply
|
| Re: CLS-compliant |
 |
Mon, 24 Mar 2008 19:13:48 +000 |
thank you
|
| Post Reply
|
| Re: CLS-compliant |
 |
Tue, 25 Mar 2008 15:07:10 +000 |
typing <CLSCompliant(False)> in front of the variable turned warning into
error.
these are the problematic lines Protected _dbAccess As RAPdbAccess.dbAccess
<CLSCompliant(False)>
Protected _dataReader As OleDb.OleDbDataReader <CLSCompliant(False)>
|
| Post Reply
|
| Re: CLS-compliant |
 |
Sat, 29 Mar 2008 16:27:02 +000 |
Try:
<CLSCompliant(False)> _
Protected _dbAccess As RAPdbAccess.dbAccess
<CLSCompliant(False)> _
Protected _dataReader As OleDb.OleDbDataReader
But if you rename the variables to dbAccess and dataReader without the
underscore you won't need to add the CLSCompliant part.
If the answer is helpful, please mark as answered.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|