Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

How to set up a function to be called from vb.net 2005

john_lott
Beginner
358 Views

What is the proper format to export a function for use in another language ? Also is there a requirement for byte alignment when using structure.

My sample function might be to take a integer(4) as a parameter, double it and return the value.

Thanks in advance

John

0 Kudos
1 Reply
Steven_L_Intel1
Employee
358 Views
Have you looked at the VB--Calls-Fortran sample provided?

As for structures, if you are sharing a structure with another language you will need to understand how that language (VB or whatever) lays out the structure. On the Fortran side, I recommend giving the corresponding derived type the BIND(C) attribute for maximum interoperability. You can deal with any alignment yourself.
0 Kudos
Reply