I have one. Net DLL, which I need to call from a third party application The third party application does not support the loading of the managed DLL and therefore I am using c ++ / CLI DLL which displays the basic c ++ function called by the application as shown below.
Third Party Applications - & gt; C ++ / cli DLL - & gt; .NET DLL
My problem is that my c ++ / cli dll crashes with "Access violation" error when it tries to call the function from .NET dll. If I call the .NET DLL directly from the VC + console application, this problem does not occur.
Do you think I will create C ++ / CLI DL with the CRR option, Studio?
I followed the suggestion of Hans Pacente and debug it, the exception I was getting was a "file not found exception". My scenario is
Third party app - & gt; C ++ / CLI DL - & gt; .Net managed DLL
In the same folder as the third party exe problem solved. Placing Net managed DLL. Now my question is
"Can I get C ++ / CLI DL? Instead of looking at Net DLL in a specific path, in the same folder as the third party app." < P> Thanks
You have to debug it. Right-click the project in the Solution Explorer window, Properties, Debugging Set the command property in the path of EXE which is going to load your DLL, Set the Command Argents and the Working Directory Set Breakpoint on the Exported Function. Press F5.
Comments
Post a Comment