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.
I read some where in the forum about this but I could not find in a search..
In making a DLL I have serveral functions/subs. One function/sub calls another. When I compile if I don't have the function/sub defined above the one that calls it I get an error message.
In C its called prototyping, I don't know what it is called in PB.
I placed the function delcarations at the top of the dll. But now I get a different error. (Block/scanned statements no allowed here.)
Question: How do you do prototyping in PB?
[This message has been edited by Shawn Tartaglia (edited April 19, 2000).]
Its pretty much the same stuff, C/asm prototypes are the same thing as
PowerBASIC's DECLARATIONS. They are best put in a seperate INCLUDE file
and called at the top of the code for either the EXE or DLL. As normal you
are safer to declare them before using them to avoid forward reference
#COMPILE DLL
#INCLUDE "MYFILE.INC" '<< put declarations in this file
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.
Comment