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.

Passing Strings

Phares__Cliff
Beginner
341 Views

How are Fortran DLLs built which allow string trafficback and forthwith VB6, VS2005, C, C# and Fortran ?

Is there one simple way to accomodate any caller ?

Thanks,

Cliff Phares

0 Kudos
1 Reply
Steven_L_Intel1
Employee
341 Views
If you're willing to have the caller do what is necessary to pass the string in a way Fortran will understand, then the default works fine - declare the argument as CHARACTER(*). This means passing the length by value at the end of the argument list.

If you want the caller to just pass what all those languages think of as a string, then no.
0 Kudos
Reply