- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a problem with this prototype in user32.f90? The MS documentation indicate that the function name includes an s after the word part "window", but this prototype does not. I'm getting a link error.
subroutine DisableProcessWindowGhosting () bind(C,name="DisableProcessWindowGhosting")
!DEC$ ATTRIBUTES STDCALL :: DisableProcessWindowGhosting
end subroutine DisableProcessWindowGhosting
https://msdn.microsoft.com/en-us/library/ms648415(v=vs.85).aspx
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try:
Copy the interface from user32, paste into your PROGRAM/SUBROUTINE that calls it, add the 's', see if it compiles and links (then test to see if it runs as expected). I'd suggest not editing the user32 copy at this time. Rather create a module to contain the fixes. Example: user32_fixes.f90 this way the changes are documented and when installing updates, you can verify if fix made it into the distribution.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes thanks. I had already done that. It works fine with the modification.
jimdempseyatthecove wrote:
Try:
Copy the interface from user32, paste into your PROGRAM/SUBROUTINE that calls it, add the 's', see if it compiles and links (then test to see if it runs as expected). I'd suggest not editing the user32 copy at this time. Rather create a module to contain the fixes. Example: user32_fixes.f90 this way the changes are documented and when installing updates, you can verify if fix made it into the distribution.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Given that it is a bind(c) interface it will be a new one added in PSXE 17.0 so it is more likely to have a problem than one that has been there years and picked over by lots of people. Some of these interfaces probably hardly ever get used IMO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry about that. Kevin, please escalate this to the RTL folks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reporting this. I notified Development to have this corrected in a future update/release.
(Internal tracking id: DPD200419409)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page