I have a class in C#
public class RequestInfo
{
public string barcode { get; set; }
public string title { get; set; }
public string name { get; set; }
}
I am calling a C# function from C++
TResult.RequestInfo RequestInfo();
I registered the C# using REGASM which created a TLB file and on C++ compile I get a TLH file.
RequestInfo in C++ is shown as follows in the generated TLH file:
struct __declspec(uuid("e2e15930-fd1a-31de-a166-bf330e327677"))
/* dual interface */ _RequestInfo;
and the C# function as follows in the TLH File:
virtual HRESULT __stdcall RequestInfo (
/*[out,retval]*/ struct _RequestInfo * * pRetVal ) = 0;
I call the C# function from C++ as follows:
_RequestInfo *info;
pICS->RequestInfo(&info);
The function is called and no errors generated; however:
- I do not know if I am defining the info variable correctly
- I do not know how to read the info variable with the data that the C# function filled.
Help Please!