0

Can any help, please>

Can anyone provide me with the basics of passing (interprocess) a bitmap?

Send & Receive in C#

CreateFileMapping, I belive, is still the only way to do this.

Many thanks in advance.

Joel Coehoorn
  • 362,140
  • 107
  • 528
  • 764
user183185
  • 25
  • 8

2 Answers2

0

Are both applications written in .NET? If so, please take a look at WCF (Windows Communication Foundation).

See: IPC Mechanisms in C# - Usage and Best Practices..

Community
  • 1
  • 1
Chris Andrews
  • 1,742
  • 3
  • 19
  • 30
  • Many thanks all. Yes they are both .net, but have to be in .Net2 for the moment. In WCF there's a class that takes care of MMF in full. What a pain. – user183185 Oct 06 '09 at 14:22
0

this article is a little old but has some sample code that demonstrates it's usage.

http://msdn.microsoft.com/en-us/library/aa446520.aspx

there are numerous other samples on MSDN as well as the web. Moving a biap this way won't be easy though, you'll have to save it to a MemoryStream first.

csharptest.net
  • 53,926
  • 10
  • 66
  • 86
  • Thanks all for your help. In the end I managed to convert and old bit of c++ to C# for the MMF mechanism that I required. Using a file would have been too slow. It works as I need it to. Again, thaks all – user183185 Oct 07 '09 at 11:04