Click here to Skip to main content
14,458,710 members

Managed C++/CLI

 
QuestionHow to send double value as 8 uint8 values?? Pin
cahit2316-Aug-06 2:17
Membercahit2316-Aug-06 2:17 
AnswerRe: How to send double value as 8 uint8 values?? Pin
Christian Graus16-Aug-06 3:25
mveChristian Graus16-Aug-06 3:25 
GeneralRe: How to send double value as 8 uint8 values?? Pin
cahit2316-Aug-06 3:51
Membercahit2316-Aug-06 3:51 
QuestionGraphics::FromImage Pin
yiwpyos16-Aug-06 2:14
Memberyiwpyos16-Aug-06 2:14 
AnswerRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 3:28
mveChristian Graus16-Aug-06 3:28 
GeneralRe: Graphics::FromImage Pin
yiwpyos16-Aug-06 23:39
Memberyiwpyos16-Aug-06 23:39 
GeneralRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 23:42
mveChristian Graus16-Aug-06 23:42 
QuestionReceiving A Byte Array from dll? [modified] Pin
majidbhutta16-Aug-06 0:52
Membermajidbhutta16-Aug-06 0:52 
Hello All!

I have been unable to receive a Byte[] in MC++. Whats the right syntax


this is the C# dll method.

public byte[] GetPictureBytes(Image _Pic)
{
byte[] _rtval = null;


MemoryStream mstr = new MemoryStream();

_Pic.Save(mstr, ImageFormat.Jpeg);

_rtval = mstr.GetBuffer();

return _rtval;
}
Now i have to call this C# dll method in VC++.NET 2005

the syntax that i m using to call and receive this byte array is as follows but its creating some error.
"
array<byte^>^ myImage = gcnew array<byte^>^(1);
myImage = dllobj->GetPictureBytes(_myImage);
"
OR
"array<byte^>^ myImage = gcnew array<byte^>^(1);
myImage = dllobj->GetPictureBytes(_myImage);"
// dllobj is of C# dll Class type that contains metod GetPictureBytes(Image _Pic);
// _myImage is Image type

i have used some other combinations also to receive the Byte array but cant having some errors. Plz guide me writing correct syntax to receive this Byte array in VC++.Net
THNX in Advance



-- modified at 5:55 Wednesday 16th August, 2006
Questionpixil detection? Pin
Droze15-Aug-06 7:36
MemberDroze15-Aug-06 7:36 
AnswerRe: pixil detection? Pin
Jun Du17-Aug-06 6:15
MemberJun Du17-Aug-06 6:15 
GeneralRe: pixil detection? Pin
Droze17-Aug-06 11:56
MemberDroze17-Aug-06 11:56 
QuestionFax Routing, Please Help Pin
a_kiani15-Aug-06 3:16
Membera_kiani15-Aug-06 3:16 
AnswerRe: Fax Routing, Please Help Pin
Milton Karimbekallil15-Aug-06 19:22
MemberMilton Karimbekallil15-Aug-06 19:22 
QuestionHow can i use dll function in c++.net ? please help . Pin
nattafy15-Aug-06 2:39
Membernattafy15-Aug-06 2:39 
AnswerRe: How can i use dll function in c++.net ? please help . Pin
guestcat17-Aug-06 1:44
Memberguestcat17-Aug-06 1:44 
QuestionHow to stop USB Mass Storage Device window popping out Pin
mmhu11-Aug-06 5:35
Membermmhu11-Aug-06 5:35 
AnswerRe: How to stop USB Mass Storage Device window popping out Pin
Christian Graus14-Aug-06 19:26
mveChristian Graus14-Aug-06 19:26 
GeneralRe: How to stop USB Mass Storage Device window popping out Pin
mmhu15-Aug-06 12:07
Membermmhu15-Aug-06 12:07 
QuestionHow to use WndProc or WindowsProc function Pin
mmhu9-Aug-06 7:45
Membermmhu9-Aug-06 7:45 
AnswerRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil10-Aug-06 23:57
MemberMilton Karimbekallil10-Aug-06 23:57 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu11-Aug-06 5:24
Membermmhu11-Aug-06 5:24 
GeneralRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil13-Aug-06 21:47
MemberMilton Karimbekallil13-Aug-06 21:47 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu14-Aug-06 3:17
Membermmhu14-Aug-06 3:17 
GeneralRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil15-Aug-06 19:00
MemberMilton Karimbekallil15-Aug-06 19:00 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu17-Aug-06 12:05
Membermmhu17-Aug-06 12:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.