I want to have a function in C language file which can return string as output and I want to access that function from Managed Code i.e C# and get that string as return value. Any help or links related to this would be great for me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this a method in a common library, or a custom library? The more common ones can be found on pinvoke.net. If not, MSDN has an article on Platform Invoking using
DllImportthat may be useful.