- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to report, that the T_MSG definition in ifwinty.f90 seems to be not defined correctly. I had problems using this type on my 64bit application and couldnt get any reasonable results from the GetMessage function, so I defined T_MSG2, which works. Seems that the sequence alignment does not work correctly in the 64bit version.
TYPE T_MSG ! origilal definition
SEQUENCE
integer(HANDLE) hwnd ! handles HWND
integer(UINT) message ! knowns UINT
integer(fWPARAM) wParam ! typedefs WPARAM
integer(fLPARAM) lParam ! typedefs LPARAM
integer(DWORD) time ! knowns DWORD
TYPE (T_POINT) pt ! typedefs POINT
END TYPE
TYPE T_MSG2 ! my definitions
integer(HANDLE) hwnd ! handles HWND
integer(UINT) message ! knowns UINT
integer(fWPARAM) wParam ! typedefs WPARAM
integer(fLPARAM) lParam ! typedefs LPARAM
integer(DWORD) time ! knowns DWORD
TYPE (T_POINT) pt ! typedefs POINT
END TYPE
TYPE T_MSG ! origilal definition
SEQUENCE
integer(HANDLE) hwnd ! handles HWND
integer(UINT) message ! knowns UINT
integer(fWPARAM) wParam ! typedefs WPARAM
integer(fLPARAM) lParam ! typedefs LPARAM
integer(DWORD) time ! knowns DWORD
TYPE (T_POINT) pt ! typedefs POINT
END TYPE
TYPE T_MSG2 ! my definitions
integer(HANDLE) hwnd ! handles HWND
integer(UINT) message ! knowns UINT
integer(fWPARAM) wParam ! typedefs WPARAM
integer(fLPARAM) lParam ! typedefs LPARAM
integer(DWORD) time ! knowns DWORD
TYPE (T_POINT) pt ! typedefs POINT
END TYPE
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you copy the definition from IFWINTY.F90 or are you USEing the predefined module? The module is compiled with /align:sequence so that the components of SEQUENCE types are naturally aligned, which it seems to be what is wanted. If you take off SEQUENCE, you get much the same effect (but perhaps other issues).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I worked with a copy of ifwinty.f90. I did not take ino account of the /align option
Ok then ifwinty.90 should be ok.
Ok then ifwinty.90 should be ok.
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