none
dll calls RRS feed

  • Question

  • Hi, is it possible to use dll calls in small basic with a dll written in C or c++ and how to do this ?

    I want to use the swiss ephemeris dll : swedl32.dll, very useful and easy to computer astronomical position of planets; It's based on the NASA's jpl de 406 program.

    ftp://ftp.astro.com/pub/swisseph/sweph.zip

    Tess.

    Wednesday, September 14, 2011 2:24 PM

Answers

  • SmallBasic can load an extension dll that is written for it, public static methods with the attribute [SmallBasicType], they must be .Net 3.5 SP1 and target AnyCPU platform - you can use C++/CLR for this or create a wrapper to a C++ dll, but you have to create different dlls for 32 and 64 bit machines I think since C++ targets x86 or x64 platforms only - much easier with C# or VB.
    Wednesday, September 14, 2011 5:29 PM
    Moderator