C2660 error on VC++ .NET

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!

[839 byte] By [Karthik.T] at [2007-12-16]
# 1
The method definition has 4 arguments. Why are you passing only 3 arguments when you call it ?
MikeDanes at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
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

Karthik.T at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified