can not load the dll



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: 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: Memory allocation methods
    ... all modules are compiled against the same CRT' DLL with the same compiler. ... that case you restrict yourself to a simple C-based API for the DLL. ... I prefer to use either exceptions (but writing exception-safe code is quite ...
    (microsoft.public.win32.programmer.kernel)
  • COBOL Compiler options
    ... calls to CICS. ... we do not document this DLL problem nor have compiler options ... use of DLL's with the integrated translator (for cases where it is valid ...
    (bit.listserv.ibm-main)
  • Re: Export class from dll
    ... Remember that C++ classes describe not only the general characteristics of ... Only when the DLL ... about the compiler not knowing the details of a CBox, ... How does the compiler know what CBox is? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: ASP.NET application load time after some change
    ... This utility combines multiple .NET dll's into one dll file. ... The speed can also be affected by how much stuff is in viewstate. ... controls such as Labels or Controls who have their value set in the Load ... because the compiler only needs to compile it once. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading