DLLs from other languages

This is a discussion on DLLs from other languages within the Windows Programming forums, part of the Platform Specific Boards category; If one was to generate a DLL using another programming language (VBasic, MATLAB, etc) can that DLL be called from ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    82

    DLLs from other languages

    If one was to generate a DLL using another programming language (VBasic, MATLAB, etc) can that DLL be called from a C++ program, and if so, what is the proper syntax for doing so? Is it language-dependent? If it is, is there anywhere where the various calling conventions can be found?
    Claus Hetzer
    Compiler: Borland 5.5 (on Windows)
    Solaris CC (on Unix)
    Known Languages: C++, MATLAB, Perl, Java

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I want to say yes. Name mangling is an issue many times. My only experience has been calling a DLL written in assembler from a c program and a dll written in c from a pascal program.

    As for doing this, you should use LoadLibrary() to open the dll GetProcAddress() to get the functions and FreeLibrary() to unload and clean up after the dll.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Protection of DLLs
    By Poche in forum C# Programming
    Replies: 5
    Last Post: 06-04-2009, 09:30 PM
  2. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 03:25 AM
  3. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 08:32 PM
  4. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  5. Can't load string from resource DLL's string table
    By s_k in forum Windows Programming
    Replies: 4
    Last Post: 07-15-2003, 07:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21