library statement not working

I want to create a dll in borland pascal 7 (tp7). I looked a the help for the "library" clause but I can't seem to get it to work and there are no examples.
can someone show me how to use it or tell me why it isn't working?
[hr]
http://owensoft.20m.com
check out my current projects: http://www.owensoft.net

Comments

  • First of all, you must have Borlanf Pascal (not TURBO Pascal).
    Go to Compile->Target and select Protected Mode

    Here is what a DLL sourcecode should look like :
    [code]
    LIBRARY LibName;
    {$D Some text about what Dll does; facultative}

    INTERFACE

    PROCEDURE Proc1(Param1 : Type1, .....);
    ....

    IMPLEMENTATION

    PROCEDURE Proc1; EXPORT {Prepares Proc to be exported}
    BEGIN
    ......
    END;

    ....

    EXPORTS Proc1, Proc2, Proc3, ..... {Don't forget : exportS}
    {Exports procs}

    BEGIN
    {init of dll, facultative}
    END.
    [/code]

    code not checked. There may be some errors, i've not written Dlls since a lot.
    Hope it helps.
    DexterMagnigfic at yahoo.fr

  • ws borland pascal released after turbo pascal? I don't remember it, is it the same thing as "TPX"? I remember a version of pascal in which you can see the object hierarchy and is larger that turbo (and comes with sames). Is "TPX" the same as "Borland Pascal"? can you give me a link where I can find it exactly?
    [hr]
    http://owensoft.20m.com
    check out my current projects: http://www.owensoft.net

  • : ws borland pascal released after turbo pascal? I don't remember it, is it the same thing as "TPX"? I remember a version of pascal in which you can see the object hierarchy and is larger that turbo (and comes with sames). Is "TPX" the same as "Borland Pascal"? can you give me a link where I can find it exactly?

    If you run TPX that means you probably have Turbo Pascal, which isnt the same as Borland Pascal (you use BP to start the Borland Pascal IDE). Turbo Pascal can only create real mode applications and Borland Pascal can create real mode or protected mode.

    I dont think Borland sells any DOS Pascal compilers anymore, so it could be pretty difficult to find a copy. Maybe EBay or something...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories