comp.lang.ada
 help / color / mirror / Atom feed
From: john donoghue <donoghue@chariot.net.au>
Subject: object ada, visual c and tasking combined.
Date: Fri, 15 Feb 2002 18:39:49 +1030
Date: 2002-02-15T18:39:49+10:30	[thread overview]
Message-ID: <3C6CC24D.D013A4AC@chariot.net.au> (raw)

Hi all,

I have a problem that perhaps someoneelse has encountered before and
found a way around.
Firstly, I have some legacy ada code that amongst other things displays
some stuff on a display via a custom graphics controller board.
Recently it has been decided to upgrade that by replacing the existing
graphics code with a visual c front end.

All well and good, I can build a gui in visual c in several cpp files
and link it in after defining a few pragmas to access the c
functionality  - first problem with objectAda ...
it complains about conflicts between libcd.lib having variables that are
alreadt defined.
And also it complains about linking in some of the visual c dll's etc
and unresolved symbols and more.

After getting sick of that, I decided to try compiling the gui part in
to a dll and link that to the ada code ... hey it works ... but to be
compatible with the old graphics stuff, the dll has to also call a few
ada functions that are within the main ada application ... no problem
... let's send a structure from the ada code to the visual c code on
initialization that contains pointers to the functions that the c code
will need to call later.
... It seems to work ... next problem .... The visual c windowing stuff
is in its own task, and there is also another C task that needs to wait
on an ada function to return with data - but everytime I call the
"pointered" functions from these tasks the app spits the dummy (
terminates with a exception that provides no name or message or
anything. )
I am guessing that you cant call the ada functions from the other C
tasks since they are in other tasks to the ada functions :) ... but is
there a way around it?

Cheers,
  John





             reply	other threads:[~2002-02-15  8:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-15  8:09 john donoghue [this message]
2002-02-15 18:06 ` object ada, visual c and tasking combined Stephen Leake
2002-02-15 18:34   ` tmoran
2002-02-15 20:29     ` john donoghue
2002-02-16  4:14 ` Steve Doiel
2002-02-23 13:36 ` Nick Roberts
2002-02-25 12:05   ` john donoghue
2002-02-25 13:20     ` Frank J. Lhota
2002-02-25 20:10     ` Randy Brukardt
2002-02-27 20:53       ` john donoghue
replies disabled

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