
"Access violation" accessing a DLL
Quote:
>Hello you vc wizards,
>I have the following problem when I try to access from my application to a
>class hosted in a provided DLL :
>"Access violation, Memory can't be written".
>The provided DLL has not been compiled with vc, but with c++ builder.
>Any clue on how I could fix this ?
I presume, since you post this question to a ...vc newsgroup, that
your application is built using
Visual C++.
There is no guarantee that the C++ object model, calling
conventions and register usage are compatable across
different vendors' C++ compilers, unless they both adhere
to some known conventions such as (for example) the COM
binary conventions.
If you are sure that those conventions are the same between
BCB and VC for the class involved, then there is not enough
information to offer any clues other than: read the code more
carefully, rebuild everything, and fire up a de{*filter*} suited
for the site of the violation.
--Larry Brasfield
Above opinions may be mine alone.