I've not got any experience in developing C++ but I'm trying to help a developer call a web service I've written in VB.NET. One of the methods is named GetNextImageForSuitabilityCheck() and doesn't take any parameters. However, according to the header file that has been created for the service, the method expects a couple of parameters. See below for the code in the header file.
Therefore, when we call the method in code without passing parameters, the following error occurs:
error C2660: 'MoleTestWSClass::CMoleTestWSClassT<>::GetNextImageForSuitabilityCheck' : function does not take 0 arguments
Please can someone help me out with this? I'm sorry for the vagueness of this post but when it comes to C++ I don't have a clue but I'm giving all the information I have available.
Because probably in C# or VB.NET there is another layer of abstraction that provides this argument by itself, so that you do not need to do it by hand in those languages. So this is not the problem of C++ here, but rather reading the documentation of web services in .NET. Webservices are usually not called directly - there is usually a huge amount of code that is responsible for creating, sending, receiving and parsing the requests.
Apparently, whatever you're using transforms the functions so that the return value is passed through a parameter and the new return value of the function just indicates whether the call could be performed correctly.
Still, it seems odd that this requires the construction of a temporary object.
You really should read the documentation for the program that does this transformation.