I'm trying to write DLL with a function that accepts a string, manipulates it and returns shorter version of it. Previously I was able to create similar DLL that accepts and returns "int" type, but for "string/char" type I can't figure out how to do it.
I tried using 'std:string'/'char'/'char*'/'const char*' as a type of function and argument, but compiler just wouldn't accept it.
I.e. when I try using type 'char*' I get error
Warning C4273 'my_func': inconsistent dll linkage
If somebody knowledgeable could point out what I'm doing wrong here, I'll be very grateful.
Also, generally, what would be the most suitable data type here? (I intend to use this DLL function for long strings ~200MB)