Sending Image to C++
-
Hi is there a way i can send or give access\reference to Buffer i have with BMP image inside to another object application written in C++ unmaneged?
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace LoadImageBMP { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { mLoadImagetoBuffer(); pb1.Image = System.Drawing.Image.FromFile(@"M:\Inbox\Card.bmp"); } private void mLoadImagetoBuffer() { //(@"M:\Inbox\Card.bmp"); Image Mbmp; Mbmp = System.Drawing.Image.FromFile(@"M:\Inbox\Card.bmp"); } } }
i want to semd give acess to Mbmp. any idea would help.Have a nice Day
-
Hi is there a way i can send or give access\reference to Buffer i have with BMP image inside to another object application written in C++ unmaneged?
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace LoadImageBMP { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { mLoadImagetoBuffer(); pb1.Image = System.Drawing.Image.FromFile(@"M:\Inbox\Card.bmp"); } private void mLoadImagetoBuffer() { //(@"M:\Inbox\Card.bmp"); Image Mbmp; Mbmp = System.Drawing.Image.FromFile(@"M:\Inbox\Card.bmp"); } } }
i want to semd give acess to Mbmp. any idea would help.Have a nice Day
I think you must first take a look at how to use managed code in unmanaged world. http://www.codeproject.com/managedcpp/ijw\_unmanaged.asp
-
I think you must first take a look at how to use managed code in unmanaged world. http://www.codeproject.com/managedcpp/ijw\_unmanaged.asp