comp.lang.ada
 help / color / mirror / Atom feed
* Q: How to do memory access with gnat
@ 1997-07-20  0:00 Michael Erdmann
  1997-07-20  0:00 ` Samuel Tardieu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michael Erdmann @ 1997-07-20  0:00 UTC (permalink / raw)



Hi

i like to do something like this in Ada95  (excuse the C-example):

	typedef struct  {  ..,other_data;   char data[1];  }  Msg_data; 
	Msg_Data	*shared;

	// get some memory from the system
	DosGetSharedMemory( ..., &shared... )

	// copy data into shared memory 
	for( i ,,,, )
	   shared->data[i] := some_data[i];

In  Ada95  i am not able to copy data from an Ada object into a some external
memory.
Any idea ?
 






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

end of thread, other threads:[~1997-07-22  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-20  0:00 Q: How to do memory access with gnat Michael Erdmann
1997-07-20  0:00 ` Samuel Tardieu
1997-07-20  0:00   ` Michael Erdmann
1997-07-20  0:00 ` Tucker Taft
1997-07-20  0:00   ` Q: How to do memory access with gnat - os.ADB (0/1) Michael Erdmann
1997-07-20  0:00   ` Q: How to do memory access with gnat - OS.ADS (0/1) Michael Erdmann
1997-07-20  0:00   ` Q: How to do memory access with gnat - OS.ADS (1/1) Michael Erdmann
1997-07-22  0:00 ` Q: How to do memory access with gnat Michael Erdmann

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