02-20-2008 08:50 AM
PInvoke.TestForError(
Me._handle, pInvokeResult) Me._disposed = false End Sub
where the parameter Instrument_Handle is the 4th parameter specified in the XML doc's... yet the actual SUB declaration only has 3 arguments.
While these warnings do not appear to cause a problem in the application execution, they are annoying. To the NI people who might read this... Can this be corrected? What is the purpose of this 4th parameter?
I could go into niSwitch.vb and remove the 4th parameter from all the Sub declarations, but this is something that NI should clean up.
Thanks!
02-21-2008 07:06 AM
I've now added the niDMM.vb wrapper module to my project so that I am using both the niSwitch and niDMM wrappers. niDMM actually gives more warnings than the niSwitch wrapper. Now I have so many warnings from the two wrappers that I'm now getting an "Warning 1 Maximum number of warnings has been exceeded. " warning.
I suppose that I could go into the two wrappers and edit out the 4th parameter, but I really do not want to modify the NO wrappers. NI should be doing this themselves to correct the problem.
NI... How do we go about resolving this problem?
02-21-2008 03:40 PM
02-22-2008 05:34 AM
Jonathan,
Thanks for the reply. I will take a look at your approach. I still will not be overly happy with the remaining warnings, but at least the number is more manageable. I still believe that this issue should be looked at by NI and the problem corrected properly. I think I'll make a support call. I'll post here if I get a good answer. Thanks again for your response!