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

a question?

shiptar
Beginner
726 Views
==============================================
use dfwin
....
if (Loword(wParam).EQ.IDC_Something) then
...
return
end if
==============================================
use nothing!!!
...
if (iand(wParam,16#ffff).EQ.IDC_Something) then
...
return
end if
==============================================
in the first one i think i have to use dfwin, while in the second one i dont....
what is the difference between them?
0 Kudos
5 Replies
Jugoslav_Dujic
Valued Contributor II
726 Views

There's no difference. LOWORD is perhaps slightly more readable, but your mileage may vary.

Jugoslav

0 Kudos
shiptar
Beginner
726 Views

i thought it makes difference. in the first one i had to declare "use dfwin" so the programwouldnt work on the machine on which visual fortran is not installed. and in the second one i thought it gives no error since it doesnt use any fortran library.

plus is it possible to install "redistributables self-installing kit"?

(as far as i understood it installs fortran libraries automatically...)

thank you

0 Kudos
Jugoslav_Dujic
Valued Contributor II
726 Views
USE DFWIN has no relationship whatsoever with requirement of presence of CVF run-time library. What matters is setting in Project/Settings/Fortran/Libraries/Use run-time library -- if there's one of DLL versions listed, it will result in smaller executables, but you'll have to redistribute CVF run-time library along (DFORRT.dll being the most important part or redistributables kit).
You can see the dependencies of your exe by opening it in "Dependency walker" tool from CVF program group -- for statically-linked RTLs, you will normally find only default Win32 libraries (Kernel32, User32 etc.)
Jugoslav
0 Kudos
Steven_L_Intel1
Employee
726 Views
What I'd suggest is writing your own HIWORD and LOWORD functions and put them in your own module (maybe call them something else). This would be both portable and readable, though for portability, use the Z'ffff' form of hexadecimal constant.
0 Kudos
shiptar
Beginner
726 Views

hi,

to do my own hiword or loword functions? but how?

shiptar

0 Kudos
Reply