Results 1 to 4 of 4

Thread: Using Delphi DLL on C++

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Quote Originally Posted by Relfos View Post
    I could use LoadLibrary and load everything manually, but that's around 400 functions
    You'll need to declare them anyway.

    There are a lot of time I didn't use DLL from C, but I remember it depends a lot from the compiler you're using. GCC, Borland C and Visual have different ways to define the "external" function. IIRC the simplest was GCC, just adding "extern" as a prefix:

    Code:
    extern pascal int myfoofunction (int param);
    Remember that you need the "pascal" word too (some compilers define a "PASCAL" macro too) and that names are lower-case.
    Last edited by Ñuño Martínez; 18-06-2012 at 12:13 PM.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •