I have some c++ .lib files(unmanaged) and I want to create a WCF service in which all the functions written in lib files can be called and finally can be used in distributed system (web, android, iphone).
Doubts:
Do I need a DCOM object to communicate cpp lib to c# and then DCOM dll is called in WCF.
Does WCF service automatic marshal from cpp to c# (using System.Runtime.InteropServies)
- I am not sure if late binding in WCF can do the magic?
Some points which I found while rnd.
I know how to create a dll from .lib file in vc++ but here problem comes to be "Intersect of cpp class functions in c# code." . Example in cpp, I had created a function getData(char* ch). Now how to call this function passing string,say; "Hello World". It gives a error as (can't overload to datatype SByte*). Tried Sbyte.Parse() and Sbyte.TryParse() but no luck.
I am sorry if it sounds confusing but any sort of help in the form of links or sample code will be highly appreciated.
Thanks,
Abhay