Subj : Whats going on now
To   : Nick Andre

Date : Mon Nov 14 2005 04:39 am

NA> For example, WSOCKSQB has a routine called WSINIT, which does nothing
NA> but return an integer and has no parameters to pass. How do I call that
NA> from Pascal?

{$L WSOCKSQB.OBJ}
function WSINIT:integer;near;external;

begin
  writeln(WSINIT)
end.


  Untested, from the top of my head, and I'm not sure if this worked with
versions of TP older than BP7. You might have to change 'near' to 'far' if
that's the way the object file is compiled.

---
* Origin: news://felten.yi.org (2:203/2)