- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have a C# dll which contains APIs to communicate with our company apps. I have created an additional static library in C++ CLI to consume these APIs through languages like native C++ and Fortran. The library works well with native C++ and most times with Fortran. However, some values change randomly over time in the Fortran code while running. The values being exchanged are validated to be correct. The problem is with local Fortran variables. They change over course of execution.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Try: __declspec(dllexport) extern "C" double GetValue(...
Jim Dempsey
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Try: __declspec(dllexport) extern "C" double GetValue(...
Jim Dempsey
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Also, Fortran does not support Structured Exception Handling. Thus the Fortran->C++ wrapper function should be compiled without SEH (though it can use SEH features).
Jim Dempsey
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thank you Jim. The calling convention was the issue as you pointed out.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable