Silverfrost Forums

Welcome to our forums

Troubles with MSWINMOD.F90 usage

29 Nov 2006 5:55 #1340

I've used MSWINMOD.F90 (found in include folder) in my program because it seems to contain more WIN32 API definitions than WIN32API.INS. The compiler became VERY angry!! There is a huge number of functions with arguments defined as WINSTRING, WOUTSTRING, or WINREF, and all of these functions are rejected by FTN95 with a message:

***** Bad argument descriptor in C_EXTERNAL**

Help file and WIN32API.INS defines these arguments as INSTRING, OUTSTRING, STRING and REF. If I'll change all bad descriptors to these words, would it save a day?

PS: Yes, MSWINMOD.F90 seems to be outdated, and I used outdated WIN API functions. With appropriate choice of WIN API functions WINDOWS.INS is fine!

29 Nov 2006 11:26 #1346

Vladimir

mswinmod.f90 is included for information only. A .MOD file has already been built for you (probably mswin.mod) and all you need is 'USE mswin' in your code.

Please login to reply.