Sumit Bhatnagar

Hello! I am using windows API functions in my program , to be specific i am using the IcmpCreateFiel() and IcmpSendEcho() functions.

For this i have added these hader files:

- icmpapi.h

- ipexport.h

i also read in the documentation that "iphlpapi.lib" needs to be linked as well. So, what i have done is using the floowing path

"VC 6->projects->settings->Link"

i have added the "iphlpapi.lib" in the space provided for Object / Library modules. But when i run the program the following error occurs :

"The procedure entry point IcmpSendEcho could not be located in the dynamic link library iphlpapi.dll"

Am i missing some important step Please suggest what should be done about his problem.




Re: Visual C++ General Dll issue

Sarath.

Make sure that you are using correct version of DLL par to the lib file you are linking.

You can set the order of lib directories it through Tools->Options->Directories tab





Re: Visual C++ General Dll issue

Sumit Bhatnagar

Thank you for replying.

I have tried setting the library path through the path u wrote, but, the same problem persists.

If i am correct , the appliation can not enter the function only if the functions path is not correctly specified. We have taken care for this by specifying the correct path. But as the problem is still there, can you please suggest me any other alternative.






Re: Visual C++ General Dll issue

Prasad Somwanshi

Use dependency walker to check if function in question is seen as exported.



Re: Visual C++ General Dll issue

Sumit Bhatnagar

I am new to VC++ language. Could you please elaborate on how this would help in identifying the cause, as well as how do you invoke it.




Re: Visual C++ General Dll issue

Prasad Somwanshi

Dependency walker is shipped with MS development environment as tools. It is used to determine all dlls on which this dll/exe is dependent.

Refer http://www.dependencywalker.com/ .