comp.lang.ada
 help / color / mirror / Atom feed
* Using A# & MSIL2Ada ...
@ 2005-09-09  7:55 Florian Haag
  0 siblings, 0 replies; only message in thread
From: Florian Haag @ 2005-09-09  7:55 UTC (permalink / raw)


Hi,
I'm trying to write a DLL for one of my .NET-projects. I'd like to
implement a C# interface in Ada, and then use that new Ada type from
another C# class - is this possible at all using mgnat? Some older
newsgroup postings allude that it might be.

Are there any ready-to-run examples for this? Any other A#-examples
than the test files included with mgnat at all?
The A# homepage lists a link to a zip file called "SIGAda 2004
tutorial", but that seems to be constantly unavailable.

Using Google, I found a file named Carlisle-ASharp.pdf, which contains
some lines such as "Sample in simple_net_dll, used in simple_counter"
or "See examples in simple_net_dll_callback and
simple_counter_callback" - are these examples that can be downloaded
anywhere?

Concerning my current progress, one method of the aforementioned
interface takes a parameter of type ... say, ClassB. ClassB is in
DLL2.dll, its ancestor being ClassA in DLL1.dll.
MSIL2Ada creates the ads files for DLL1.dll, but throws a
System.Reflection.ReflectionTypeLoadException exception for DLL2.dll,
saying:

At least one type in the assembly could not be loaded.
   at System.Reflection.Module.GetTypesInternal(StackCrawlMark&
stackMark)
   at System.Reflection.Assembly.GetTypes()
   at msil2ada.Class1.Main(String[] args)

I read in asharp.pdf from the A# homepage, that there seem to be some
difficulties if the ancestor of a class is in another DLL than that
class, but given the modular concept/capabilities of .NET, this must be
a very frequent situation, so I guess there must be some workaround for
this ...?

TIA,
Florian



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-09  7:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-09  7:55 Using A# & MSIL2Ada Florian Haag

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox