I didn't mean the .dll code, I meant the header you are using in the Lite-C File. However, i saw you have done this just in the Lite-C file. Change your header to "BSTR Get_SAttributValue(STRING* file, STRING* xpath, STRING* attribut)". Make sure you have defined BSTR in the lite-c file. However, you can't use str_copy with that type.

The difference is, that Lite-C cares about types. C-Script had no type check in its compiler. It's important now that you always use the correct type when calling .dll functions.


Always learn from history, to be sure you make the same mistakes again...