- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
==============================================
use dfwin
....
if (Loword(wParam).EQ.IDC_Something) then
...
return
end if
if (Loword(wParam).EQ.IDC_Something) then
...
return
end if
==============================================
use nothing!!!
...
if (iand(wParam,16#ffff).EQ.IDC_Something) then
...
return
end if
...
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?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's no difference. LOWORD is perhaps slightly more readable, but your mileage may vary.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
to do my own hiword or loword functions? but how?
shiptar

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