[2089]Another Incorrect VB Code analysis???

In the solution i'm currently working, methods of some Forms are accessed static (Classname.Methodname). R# flags this as error "Cannot access non-shared sub 'Show' in shared context". In VB there is always a default instance of a form which can be accessed in that way, so the code is valid.

Another annoying code analysis problem is, that some implicit conversions are marked as errors.  The solution i'm working on does heavy Interop with Excel. Each time when a value is assigned to an Excel-property the error "Cannot convert 'xxx' to ???", for example


error.jpg
Regards
Klaus

6 comments
Comment actions Permalink

Please could you create small solution which demonstrates this problem? Thank you in advance.

0
Comment actions Permalink

here is the sample :)



Attachment(s):
ExcelCom.sln.zip
0
Comment actions Permalink

Hmm.... The archive contains only .sln file....

0
Comment actions Permalink

oops...?:|

didn't know what happened. Here comes the solution again.



Attachment(s):
ExcelCom.zip
0

Please sign in to leave a comment.