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

Managed C++/CLI

 
AnswerRe: C# and c++/cli problem on x86 OS Pin
Dave Kreskowiak10-Jun-21 19:51
mveDave Kreskowiak10-Jun-21 19:51 
QuestionManaged c++ how to memcpy a handle reference Pin
yehiga146728-May-21 0:25
yehiga146728-May-21 0:25 
AnswerRe: Managed c++ how to memcpy a handle reference Pin
Victor Nijegorodov28-May-21 1:25
Victor Nijegorodov28-May-21 1:25 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
yehiga146728-May-21 1:55
yehiga146728-May-21 1:55 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
Victor Nijegorodov28-May-21 2:45
Victor Nijegorodov28-May-21 2:45 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
Richard MacCutchan28-May-21 3:01
mveRichard MacCutchan28-May-21 3:01 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
yehiga146728-May-21 3:26
yehiga146728-May-21 3:26 
AnswerRe: Managed c++ how to memcpy a handle reference Pin
Fly Gheorghe25-Jan-22 10:15
Fly Gheorghe25-Jan-22 10:15 
//Assuming int is on 4 bytes
typedef union u
{
int i;
byte b[4];
} U;

U x;
x.b[0] = 0 // Put first byte here
x.b[1] = 0 // second byte here, etc.

// Then use x.i as an integer

// Keep in mind that on Intel CPUs, integer values are represented in memory in reverse order.
// This means that hex value 0x11223344 will be represented in memory as 0x44, 0x33, 0x22, 0x11
// This is called little-endian vs. big-endian representation.
// There can be CPUs that uses the other convention.

// Make a small test project and play around with some values etc.
QuestionHow to make Serial Port static from the designer? Pin
yehiga146726-May-21 18:11
yehiga146726-May-21 18:11 
SuggestionRe: How to make Serial Port static from the designer? Pin
Richard MacCutchan26-May-21 22:14
mveRichard MacCutchan26-May-21 22:14 
GeneralRe: How to make Serial Port static from the designer? Pin
yehiga146726-May-21 22:18
yehiga146726-May-21 22:18 
GeneralRe: How to make Serial Port static from the designer? Pin
Richard MacCutchan26-May-21 22:59
mveRichard MacCutchan26-May-21 22:59 
QuestionManaged c++ float/double/integer to String and vice-versa? Pin
yehiga146725-May-21 23:46
yehiga146725-May-21 23:46 
AnswerRe: Managed c++ float/double/integer to String and vice-versa? Pin
Victor Nijegorodov26-May-21 0:05
Victor Nijegorodov26-May-21 0:05 
GeneralRe: Managed c++ float/double/integer to String and vice-versa? Pin
yehiga146726-May-21 1:12
yehiga146726-May-21 1:12 
GeneralRe: Managed c++ float/double/integer to String and vice-versa? Pin
Victor Nijegorodov26-May-21 1:41
Victor Nijegorodov26-May-21 1:41 
QuestionButton image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 2:03
yehiga146725-May-21 2:03 
AnswerRe: Button image is not updating to new image when Serial Port received new data Pin
jsc4225-May-21 3:43
professionaljsc4225-May-21 3:43 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 20:10
yehiga146725-May-21 20:10 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
jsc4225-May-21 23:22
professionaljsc4225-May-21 23:22 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 23:53
yehiga146725-May-21 23:53 
QuestionHow to pass a function pointer an argument in managed C++ Pin
yehiga146724-May-21 2:25
yehiga146724-May-21 2:25 
AnswerRe: How to pass a function pointer an argument in managed C++ Pin
Richard MacCutchan24-May-21 5:00
mveRichard MacCutchan24-May-21 5:00 
GeneralRe: How to pass a function pointer an argument in managed C++ Pin
yehiga146724-May-21 17:44
yehiga146724-May-21 17:44 
AnswerRe: How to pass a function pointer an argument in managed C++ Pin
Richard Andrew x6424-May-21 5:28
professionalRichard Andrew x6424-May-21 5:28 

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.