Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a cpp code base. in this they are consuming another dot net project dll.

this dll exposes a method called CalculateDiscounts(string input)

Now I need to find out the line where they are calling this method.

Is there any way to check this?

Where dependency references are configured like .csproj in .NET.

Not familiar with C++ projects.

What I have tried:

Find option don't help me here, because many methods are with same names in cpp code
Posted
Comments
Richard MacCutchan 27-Jan-23 7:12am    
You need to search the C++ source code to find the reference.
Virendra S from Bangalore, Karnataka 27-Jan-23 7:15am    
I hope that is what I'm trying to do it, In case of C# we easily find it by looking at Using Namespace section. is there any similar things in C++?
Richard MacCutchan 27-Jan-23 9:58am    
Yes, there is a section at the beginning of source files (.h as well as .cpp) that lists #include xxx directives. One of these should refer to the library that the code is using.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900