en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nl en en en en en en en en en en de en de en de en de fr en en en en nl en en en en en fr en en fr pt en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
W98 and W2K subtlety
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Join Date: Jan 1999
W98 and W2K subtlety
18 May 2001, 05:13 AM
How is this for subtlety:
'......................................................................................... 'The EXE code ' GLOBAL pxbor DECLARE FUNCTION x2d LIB "Plotengn.dll" (x AS DOUBLE) AS LONG ' OR DECLARE FUNCTION x2d LIB "Plotengn.dll "(x AS DOUBLE) AS LONG . . '.......................................................................................... 'The DLL code ' ' GLOBAL pxbor ' ' FUNCTION x2d(x AS DOUBLE) EXPORT AS LONG x2d=x+pxbor END FUNCTION
Either declaration works perfectly in Win98.
In Win2K the first declaration statement works properly but the second one, although there is no error diagnostic, causes incorrect values to be returned by the function. The value of the global variable pxbor is ignored and taken as zero so the function simply returns the value of x.
This one was very difficult to find. Hope it saves someone else some time.
Join Date: Aug 1998
18 May 2001, 05:24 AM
Interesting observation Bern... I've passed this to R&D to see if the compiler can strip unnecessary whitespace from the LIB clause.
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 01:05 AM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.