Measurement Studio ActiveX Controls Only Show One Function Definition for Overloaded Functions Primary Software: Measurement Studio>>Visual Basic SupportPrimary Software Version: 8.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I have a Microsoft Foundation Class application that I am converting to .NET. When I compile the application, any functions that do not use the overloaded member with the most possible parameters give an error, "function does not take X arguments", where X is the number of arguments given to that particular function call. For example, the function Plot3DMesh is defined as: CWGraph3D.Plot3DMesh xVector, yVector, zVector [, wVector]with the fourth parameter, wVector, being optional. If I attempt to pass only the three required parameters to the function call, I receive the following error when I compile: error C2660: 'AxInterop::CW3DGraphLib::AxCWGraph3D::Plot3DMesh' : function does not take 3 argumentsAlso, when using Microsoft's Intellisense, only one function definition appears in the context menu. Solution: This error message is the result of Microsoft .NET 1.1 Framework being installed, but without Service Pack 1. If you install Service Pack 1 from Microsoft's Web site, all overloaded function definitions for your ActiveX controls function properly. Related Links: How to obtain Microsoft .NET Framework 1.1 Service Pack 1 Attachments:
Report Date: 03/22/2006 Last Updated: 05/23/2007 Document ID: 3VLHAKYV |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
