I have a function in C++ that returns pointer values:
fPosFirst( int &aId, char *aNname, char *aDirectory );
But I have to pass this to C#. How can I do that?
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.
This is VB.NET syntax, but you should be able to convert this to C# easily enough.
Now if aNname and aDirectory should have been const char *, you can use String instead of StringBuilder and it gets a lot easier.