I have C++ code which is called from C# using reflection and etc.
The weird thing I encountered is while on C++ side function declaration looks like this
dppFUNC(HRESULT) dppOnlineGetBalanceInfo(
On C# side it is declared as
[DllImport("dppClientModule.dll", CallingConvention = CallingConvention.StdCall)]
private static extern UInt32 dppOnlineGetBalanceInfo(
Why is the return type on C# code uint
? Should not it be int
?
What problems can it cause? It has been used like this now, and I would like to know what problems could it cause?
The linked question as duplicate seems different because the result of MAKEHRESULT (C# version) there in accepted answer is int, why?