Problem in accesing functions in a dll

Hi All,

I have a strange problem...
I have VS2005 on WinXP and am making a Windows Project.When I ran the project I got an error
"Unable to find an entry point name "foo" in dll "foo.dll".
However the dll is present in Windows\System32 directory and the Path also references the directory
So I added a reference to the dll in the System32 folder but it showed an error that "A reference to ....dll cannot be added.Please make sure that the file is accessible, and that it is a valid assembly or COM component".
Next I ran "tlbimp foo.dll" from VS2005 command prompt.I got an error "The input file 'foo.dll' is not a valid type library.So I ran "regsvr32 foo.dll" and I got an error "foo.dll was loaded, but the DLLRegisterServer entry point was not found.This file cannot be registered".All I want is to make use of the functions in foo.dll.Any ideas will be appreciated.

[976 byte] By [sanjuv] at [2007-12-25]
# 1

There are many causes to your problem.

What language is used of foo.dll?

gqlu at 2007-8-31 > top of Msdn Tech,Visual C#,Visual C# General...
# 2
I wish I knew.It is a third party dll.Thank you very much for replying.
sanjuv at 2007-8-31 > top of Msdn Tech,Visual C#,Visual C# General...
# 3

OK, but that doesn't matter.

You can check out what functions the dll exports by using dumpbin with /exports options。

gqlu at 2007-8-31 > top of Msdn Tech,Visual C#,Visual C# General...