none
C2660 error on VC++ .NET RRS feed

  • Question

  • Hello!

    I am passing parameters from VC++ .NET to and from C#.NET.

    I am getting an error on the VC++.NET side, which says

    c:\Documents and
    Settings\karthik\Desktop\Research\ManufAgTestProjekt\ASAP_MAS_Extension\MAS_Extension.cxx(483): error C2660: 'InterfaceProtocol::InterfaceProtocol::GetNextJob' : function does not take 3 arguments

    The code for calling the method is

    Code:

    PtrReference->MethodA(IntegerA, StringA, PointerA);

    On C# side, the method is defined as:

    Code:

    public void MethodA( int IntegerA, string stringA, string PointerName, ref string PointerA)

    I need to pass IntegerA and StringA to C# and return the value to PointerA onthe VC++ .NET.

    How do I go about it? I would appreciate any tips/suggestions!!! and BTW.. I am a novice to .NET and programming concepts

    Thanks a much!
    Sunday, July 3, 2005 1:20 AM

Answers

  • The method definition has 4 arguments. Why are you passing only 3 arguments when you call it ?
    Sunday, July 3, 2005 6:40 AM
    Moderator

All replies

  • The method definition has 4 arguments. Why are you passing only 3 arguments when you call it ?
    Sunday, July 3, 2005 6:40 AM
    Moderator
  • Hello...

    Yeah was able to solve the bug... in the code... As Mike said the number of arguments I passed was incompatible with the arguments defined in the function.

    Thanks!

    Karthik
    Sunday, July 3, 2005 8:35 PM