(Background)
I am developing a program in F# aiming to simulate a mobile network with base stations, terminals (aka mobiles, both stationary and moving), landscape features impacting coverage and QoS. Common network features like cell-breathing and handover problems is also simulated.
In case you don't know F#, it is a functional language from Microsoft and is part of the .NET family.
I have had BBC Basic for Windows for quite some time (probably over 5 years) but never really did any serious stuff with it. Having migrated to BBCSDL I am now ready to use that as the graphical frontend for my simulation. (And just to nip a possible question in the bud: Why do I not use VB.NET for the UI stuff? Well, I prefer BBCSDL. Period.)
(My Problem)
I would like to call the functions I have developed in my F# program from a BBCSDL program. Compiling the F# as a DLL and then doing some simple tests with SYS "LoadLibrary" were not successful. Searching the web and this forum for the past 3 days have yielded very little apart from what is stated in the section "Introduction to the Windows API".
The actual simulation cycle would also be moved from F# to the BBCSDL program. Speed is not a key factor at this stage.
(My Question)
How can I call the F# functions from my .NET DLL in BBCSDL?
(Example F# program. Hello World, kind of...)
Code: Select all
namespace BBCSDL
module Say =
let hello name =
printfn "Hello %s" name
Hakan