Re: can not load the dll



right click the oss.DLL file and choose "view dependencies" - you'll see the DLLs that are loaded automatically when you load oss.dll

Alex Groysman via .NET 247 wrote:

I created a C++ code.
COmpiled it to get a DLL.
When I run dumpbin /exports oss.dll
i get all my exports to a sreen lke _function@4.
SO it looks fine i guess.
Now when I try to do
[DllImport("oss.dll")]
and then call to function in the dll i get erro:
can not load ossapu.dll.
WHat ossapi.dll?
I never called to any osapi.dll.
WHat does that compiler did wrong (or I did?).

--------------------------------
From: Alex Groysman

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>rjNRhX7naEuzM+WeYaMGSA==</Id>
.



Relevant Pages

  • Re: moving a AFX DLL from VS 2003 to either 2005 or 2008 causes issue at loadlibrary
    ... I have a DLL that if compiled under Visual Studio 2003, it will load fine with load library. ... Even though its told in the compiler options to link MFC staticly, depends told me it needed mfc90.dll and msvcr90.dll. ... is it possible that you have linked with some other static libraries that are dependent on the MFC and CRT DLLs? ... Let's have a gander inside that HH_CW.dll.intermediate.manifest to see what dependencies it may be mentioning. ...
    (microsoft.public.vc.mfc)
  • Re: moving a AFX DLL from VS 2003 to either 2005 or 2008 causes issue at loadlibrary
    ... I have a DLL that if compiled under Visual Studio 2003, it will load fine with load library. ... to make the same DLL work after changing the compiler? ... You say it is statically linked to MFC, but what about other dependencies? ...
    (microsoft.public.vc.mfc)
  • Re: moving a AFX DLL from VS 2003 to either 2005 or 2008 causes issue at loadlibrary
    ... I have a DLL that if compiled under Visual Studio 2003, it will load fine ... You say it is statically linked to MFC, ... Even though its told in the compiler options to link MFC staticly, ...
    (microsoft.public.vc.mfc)
  • Re: Exposing bool to non-MS, non-C++ callers
    ... the functions in this DLL accept a structure as an argument. ... The compiler doesn't help catch places where I neglect ... the C++ bool type is defined as one byte. ... depends on whether the Exe caller will push a value larger than 1 byte. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: msvc*.dll loading
    ... ALL main.exe which trys to load (via ... LoadLib) a DLL which is compiled with one of the VC9 CRT DLLs (or trys to ... any other compiler, and the main trys to load the DLL, you will see an ...
    (microsoft.public.vc.language)

Loading