comp.lang.ada
 help / color / mirror / Atom feed
* object ada, visual c and tasking combined.
@ 2002-02-15  8:09 john donoghue
  2002-02-15 18:06 ` Stephen Leake
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: john donoghue @ 2002-02-15  8:09 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-02-27 20:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-15  8:09 object ada, visual c and tasking combined john donoghue
2002-02-15 18:06 ` 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

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