Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Problems with dll and vba (excel)

andreti
Beginner
466 Views

I compiled with Intel Visual Fortran a DLLto do some mathematical computation. I called this dynamic-library from visual basic in excel. I haved some initial issues, butI read in this forum all the information regarding the comunication between the programminglanguages. So I use the !DEC$ ATTRIBUTES DLLEXPORT,STDCALL,REFERENCE statement and everything worked fine.

But when i define a local allocatable variable inside the dll, when i call the subroutine from excel, nothing happens and i get a #VALUE! error.

What is the problem? Please help me.

0 Kudos
1 Reply
Nick2
New Contributor I
466 Views
Have you tried calling your function from a Fortran program, to see if your function runs fine on its own?
0 Kudos
Reply