S
sandy_pt_in
Hi plz plz plz help me .... i am struggling to get image in
picturebox. I am writing code in C# to display image in a
picturebox.To do this I am calling function from VC++ dll which is
provided by the third party.
function call in dll is somthing like this
DrawImage(Hdc,Rect); // function in VC++ dll
Here I have created RECT structrue in C# which is similar to VC++ RECT
and passing that as a second argument in DrawImage funciton.But
problem is creating
device context !!! As pictureBox in a C# does not have hdc I wrote
following code to get Device Context
objFusion.m_hdc= GetDC(pictureBox1.Handle);
//where objFusion is obj which calls DrawImage function from the dll
it didnot didnot work... can you please help on this?? probably can
you give me some sample code or line where i can get this information.
picturebox. I am writing code in C# to display image in a
picturebox.To do this I am calling function from VC++ dll which is
provided by the third party.
function call in dll is somthing like this
DrawImage(Hdc,Rect); // function in VC++ dll
Here I have created RECT structrue in C# which is similar to VC++ RECT
and passing that as a second argument in DrawImage funciton.But
problem is creating
device context !!! As pictureBox in a C# does not have hdc I wrote
following code to get Device Context
objFusion.m_hdc= GetDC(pictureBox1.Handle);
//where objFusion is obj which calls DrawImage function from the dll
it didnot didnot work... can you please help on this?? probably can
you give me some sample code or line where i can get this information.