an old chestnut but i'm driving myself round in circles trying to make this work!
i have a routine written in C under VS2017:
int checkout_(char *feature, char version, char option, char *mess)
And i want to set the 'mess' string back in FTN.
under VS, i can see that:
-
mess 0x32a20ed0 \'Licensed number of users already reached.\\nFeature: REP5\\nLicense path: @localhost Licensing error:-4,132\' char *
what do i have to set in my interface routine in FTN do get this back?
i've tried:
c_external checkout 'checkout_' (string, string, string, outstring) : integer4 c_external checkout 'checkout_' (string, string, string, string) : integer4 c_external checkout 'checkout_' (string, string, string, ref) : integer*4
with: ierr = checkout(feature_t, ver_t, opt_t, mess)
what's thee correct way to do it, pretty please!
K