Click here to Skip to main content
15,890,512 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Executing Code on App Exit Pin
turkmeistr120-Apr-09 9:32
turkmeistr120-Apr-09 9:32 
GeneralRe: Executing Code on App Exit Pin
Luc Pattyn20-Apr-09 9:40
sitebuilderLuc Pattyn20-Apr-09 9:40 
GeneralRe: Executing Code on App Exit Pin
turkmeistr120-Apr-09 10:01
turkmeistr120-Apr-09 10:01 
GeneralRe: Executing Code on App Exit Pin
Luc Pattyn20-Apr-09 10:03
sitebuilderLuc Pattyn20-Apr-09 10:03 
QuestionHow to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab18-Apr-09 10:27
marcusab18-Apr-09 10:27 
AnswerRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
N a v a n e e t h18-Apr-09 16:42
N a v a n e e t h18-Apr-09 16:42 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab18-Apr-09 23:30
marcusab18-Apr-09 23:30 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
N a v a n e e t h19-Apr-09 6:41
N a v a n e e t h19-Apr-09 6:41 
// Following line is wrong. pDataByte is an object with type as System.Array. 
// You can't cast it as unsigned char
QByte[0] = (unsigned char)System::Convert::ToChar(pDataByte); 
First you need to get a unsigned char array from the object. Loop through each element and assign it to QByte. Sample code follows,
// Getting unsigned array from pDataByte
array<unsigned char>^ uChars = static_cast<array<unsigned char>^>(pDataByte);

// filling QByte
for(int i=0; i < uChars->Length; i++)
{
    QByte[i] = uChars[i];
}
Hope that helps Smile | :)


GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable [modified] Pin
marcusab19-Apr-09 11:04
marcusab19-Apr-09 11:04 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
N a v a n e e t h19-Apr-09 15:34
N a v a n e e t h19-Apr-09 15:34 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Luc Pattyn19-Apr-09 16:10
sitebuilderLuc Pattyn19-Apr-09 16:10 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
N a v a n e e t h19-Apr-09 17:02
N a v a n e e t h19-Apr-09 17:02 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Mark Salsbery20-Apr-09 8:31
Mark Salsbery20-Apr-09 8:31 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Luc Pattyn20-Apr-09 8:40
sitebuilderLuc Pattyn20-Apr-09 8:40 
AnswerRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Mark Salsbery19-Apr-09 6:40
Mark Salsbery19-Apr-09 6:40 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab19-Apr-09 10:55
marcusab19-Apr-09 10:55 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Mark Salsbery19-Apr-09 11:12
Mark Salsbery19-Apr-09 11:12 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab19-Apr-09 11:32
marcusab19-Apr-09 11:32 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab19-Apr-09 11:44
marcusab19-Apr-09 11:44 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
Mark Salsbery19-Apr-09 11:44
Mark Salsbery19-Apr-09 11:44 
GeneralRe: How to copy/convert System::Object^(unsigned char) to local variable Pin
marcusab19-Apr-09 11:57
marcusab19-Apr-09 11:57 
QuestionDialogBox in C++/CLI Pin
J_E_D_I9-Apr-09 11:29
J_E_D_I9-Apr-09 11:29 
AnswerRe: DialogBox in C++/CLI Pin
Mark Salsbery9-Apr-09 12:26
Mark Salsbery9-Apr-09 12:26 
AnswerRe: DialogBox in C++/CLI Pin
led mike10-Apr-09 4:37
led mike10-Apr-09 4:37 
AnswerRe: DialogBox in C++/CLI Pin
Luc 64801110-Apr-09 7:00
Luc 64801110-Apr-09 7:00 

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.