Answered by:
UTILDEFS.H equivalent in c#

Question
-
Hi,
I am converting c++ project to c#. In c++ methods like 'ar_get_latest','ar_loadslv'and 'ar_init_slave'are been used which belongs to UTILDEFS.H. Which c# dll ll comprise methods mentioned above?
Wednesday, July 1, 2015 1:21 PM
Answers
-
I'm not aware of any standard C++ functions called ar_get_latest(), ar_loadslv() and ar_init_slave(), so I cannot tell you what the C# equivalent is. I am assuming that those functions were written specifically for the C++ project, so they will need to manually be re-implemented in C#.
- Proposed as answer by davidbaxterbrowneMicrosoft employee Wednesday, July 1, 2015 2:12 PM
- Edited by JeffreyFerguson Wednesday, July 1, 2015 2:13 PM
- Marked as answer by Kristin Xie Wednesday, July 15, 2015 8:06 AM
Wednesday, July 1, 2015 2:10 PM -
Hi,
>>Which c# dll ll comprise methods mentioned above?
The convention is that declaration (functions, classes, etc) are in .h files which are
#include
d in implementation (definition), or .cpp files. For most cases you're fine in collapsing X.h and X.cpp to a single X.cs file.But we don't know how to implement these methods in your C++, I am afraid we cannot help you. In addition, you'll improve C# skills if convert it manually to C#.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Edited by Kristin Xie Thursday, July 2, 2015 9:07 AM
- Marked as answer by Kristin Xie Wednesday, July 15, 2015 8:06 AM
Thursday, July 2, 2015 9:06 AM
All replies
-
I'm not aware of any standard C++ functions called ar_get_latest(), ar_loadslv() and ar_init_slave(), so I cannot tell you what the C# equivalent is. I am assuming that those functions were written specifically for the C++ project, so they will need to manually be re-implemented in C#.
- Proposed as answer by davidbaxterbrowneMicrosoft employee Wednesday, July 1, 2015 2:12 PM
- Edited by JeffreyFerguson Wednesday, July 1, 2015 2:13 PM
- Marked as answer by Kristin Xie Wednesday, July 15, 2015 8:06 AM
Wednesday, July 1, 2015 2:10 PM -
Hi,
>>Which c# dll ll comprise methods mentioned above?
The convention is that declaration (functions, classes, etc) are in .h files which are
#include
d in implementation (definition), or .cpp files. For most cases you're fine in collapsing X.h and X.cpp to a single X.cs file.But we don't know how to implement these methods in your C++, I am afraid we cannot help you. In addition, you'll improve C# skills if convert it manually to C#.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Edited by Kristin Xie Thursday, July 2, 2015 9:07 AM
- Marked as answer by Kristin Xie Wednesday, July 15, 2015 8:06 AM
Thursday, July 2, 2015 9:06 AM