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

User defined type in com server

ancientcoder
Beginner
459 Views

Please give me a clue here. I have spent days searching the internet, examples, documentation, etc.

Thanks in advance

Using Intel Fortran Compiler 10.1.011 and VS 2005(VB Dot Net) on windows XP

Trying to Configure Fortran app as COM Server

How do you configure an exposed method's argument to accept a User Defined type?

We have a type (kind) defined in the Fortran code with a matching structure in our VB code.

Does the object have to be passed in as a pointer?

What options do you select in the hie screen?

The options are:

Assumed-Shape

By Reference

Dimensions

Fortran Type

IDL Type

Intent

Is Optional

Assume the argument is to accept the type named MyUserType and want it passed in by ref

Would the options look like

Assumed-Shape = False

By Reference = True

Dimensions = 0

Fortran Type = TYPE(MyUserType)

IDL Type = Variant

Intent = [in,out]

Is Optional = False

or

Assumed-Shape = False

By Reference = True

Dimensions = 0

Fortran Type = INTEGER(INT_PTR_KIND())

IDL Type = *IUnknown

Intent = [in,out]

Is Optional = False

or

Assumed-Shape = False

By Reference = True

Dimensions = 0

Fortran Type = TYPE(MyUserType)

IDL Type = *IUnknown

Intent = [in,out]

Is Optional = False

Or ??

0 Kudos
0 Replies
Reply