- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a fortran subroutine, I am trying to use the text function getcharabcwidthsfloat.
The call to the command is
getcharabcwidthsfloat(hdc,1,ntv,ABC)
and I get the compiler error The shape matching rules of actual arguments and dummy arguments have been violated. [ABC]
At the top of the subroutine i have
use dfwinty
use gdi32
use gdi32
and define ABC to be of type T_ABCFLOAT
type (T_ABCFLOAT) ABC(0:255)
Any suggestions to why the compilation failed
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just use ABC(1) the last argument of GetCharABCWidthsFloat is (automatically but possibly incorrectly) traslated as a scalar to Fortran. Since it's a "assumed-size" array anyway, ABC(1) will do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Brilliant - thanks

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page