z***@gmail.com
2016-08-30 07:29:25 UTC
General description of the problem : I have a DLL which exports many functions. I want to check which of those exported functions are the functions that are actually in use (in the source code of an application that uses this DLL).
So here is the same question in details :
I have a file (MyFuncs.h) which contains a many lines of the which looks like :
MY_API int function_0(int param_0); // Descriptiom_0
MY_API int function_1(int param_1, int param_1); // Descriptiom_1
MY_API int function_2(); // Descriptiom_0 djdjdjd
MY_API int function_3(void); // Descriptiom_0 s''s's
Comment: The function name is ALWAYS the third word.
I have a directory named C:\MyDir which contains many files of source (*.cpp and *.h).
I need a script that searches for the "all of the functions" in C:\MyDir*.cpp and also in C:\MyDir*.h
Does anybody know how to help? Any scripting language is good, as long as it runs on Windows_7 (WinXP could be nice).
Any advice ?
Thanks
Zmau
So here is the same question in details :
I have a file (MyFuncs.h) which contains a many lines of the which looks like :
MY_API int function_0(int param_0); // Descriptiom_0
MY_API int function_1(int param_1, int param_1); // Descriptiom_1
MY_API int function_2(); // Descriptiom_0 djdjdjd
MY_API int function_3(void); // Descriptiom_0 s''s's
Comment: The function name is ALWAYS the third word.
I have a directory named C:\MyDir which contains many files of source (*.cpp and *.h).
I need a script that searches for the "all of the functions" in C:\MyDir*.cpp and also in C:\MyDir*.h
Does anybody know how to help? Any scripting language is good, as long as it runs on Windows_7 (WinXP could be nice).
Any advice ?
Thanks
Zmau