Click here to Skip to main content
15,867,986 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I've discovered an important bug in VS2019.
I'm developing an Excel addin.
From a C# DLL, I call an Intel Fortran DLL.
The C# DLL is linked with Excel-DNA. All works perfectly before I added a
further application button in the ribbon.
After this software adding, I've got an inexplicable error to the Fortran DLL:
"The specified procedure could not be found.
(Exception from HRESULT: 0x8007007F)."
What is the reason? How can I fix it?

What I have tried:

I've controlled the name of Fortran procedure, which I've not changed and I've put attention to the letters case by C# side, because for Fortran language, it doesn't matter.
Posted
Updated 25-Feb-22 3:23am
v2
Comments
Richard MacCutchan 25-Feb-22 7:10am    
We cannot see your code, so it is impossible to guess what the problem is. And if you think this is a bug in Visual Studio then you should report it to Microsoft.
Maciej Los 27-Feb-22 12:23pm    
Sorry, but based on so small piece of information about your issue, we aren't able to guess what's wrong.
#realJSOP 28-Feb-22 5:43am    
It's not a bug in VS2019. It's a bug in your code. The problem is that the function you've linked to the button doesn't exist in the DLL. Are you sure that your API reference is correct for the version of the DLL you're using?

I don't know if VS2019 can browse non-dot net assemblies, but have you tried that to see if the desired method exists in the DLL?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900