[Build 12] VB Code analysis error
In the code i maintain. a structure is defined which is used to marshal values to a native code library:
I didn't thought about that the variables of the structure are defined as char() and did some calculation with the variable "Monat":
VB compiler throws error BC30311 (could not convert 1-dimensional char array to double). R# only warns about runtime errors. "Option Strict Off" is set by default, because the code is migrated from VB6 and won't work with "Strict On". If i change the option to "OptionStrict On" R# also marks the line as error.
Regards
Klaus
Please sign in to leave a comment.