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

Managed C++/CLI

 
Questioncan u help me Pin
scorpioninstyle28-Oct-06 9:08
scorpioninstyle28-Oct-06 9:08 
AnswerRe: can u help me Pin
Christian Graus28-Oct-06 11:27
protectorChristian Graus28-Oct-06 11:27 
QuestionLinux Active Process List Pin
feritunal27-Oct-06 22:52
feritunal27-Oct-06 22:52 
AnswerRe: Linux Active Process List Pin
George L. Jackson28-Oct-06 6:20
George L. Jackson28-Oct-06 6:20 
QuestionBYTE to unsigned char Pin
samkook27-Oct-06 12:54
samkook27-Oct-06 12:54 
AnswerRe: BYTE to unsigned char Pin
Christian Graus27-Oct-06 15:54
protectorChristian Graus27-Oct-06 15:54 
GeneralRe: BYTE to unsigned char Pin
samkook27-Oct-06 19:12
samkook27-Oct-06 19:12 
GeneralRe: BYTE to unsigned char Pin
Christian Graus28-Oct-06 2:19
protectorChristian Graus28-Oct-06 2:19 
samkook wrote:
I posted in this forum because i'm using a mix of managed and not managed c++, but it's true that my question wasn't about managed, sorry.


That's cool, if you're using managed, then the only issue is, more people would see if you posted in the other forum Smile | :)

samkook wrote:
but since i can't put a byte into an unsigned char like this: unsignedCharVar = BYTEVar


A BYTE is a typedef, if you need to cast it, I'd be really surprised, but if you did, casting it would totally work.

Your problem is completely different. You don't have an unsigned char, you ( for reasons I do not understand ) have an array of unsigned chars, which has a length of one. Why do you need an array ?

You're also setting iCompteur to 0, and trying to go 1 minus that for your index. This will, of course, blow up.

Your problem has nothing to do with conversion between two types ( which are the same ). Don't try to index outside the array (0-1 is outside the array ) and don't try to set an array to equal a value. Set a value IN the array on the left, as you are on the right.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: BYTE to unsigned char Pin
samkook28-Oct-06 9:08
samkook28-Oct-06 9:08 
GeneralRe: BYTE to unsigned char Pin
Christian Graus28-Oct-06 11:26
protectorChristian Graus28-Oct-06 11:26 
GeneralRe: BYTE to unsigned char Pin
Mark Salsbery29-Oct-06 17:23
Mark Salsbery29-Oct-06 17:23 
QuestionUser Painted TextBox Pin
Tojiro26-Oct-06 8:39
Tojiro26-Oct-06 8:39 
Questionwriting test results in XML file using CPPUnit Pin
jayart26-Oct-06 5:21
jayart26-Oct-06 5:21 
QuestionUnmanaged pointer in managed collection Pin
Jose M Castellanos26-Oct-06 1:15
Jose M Castellanos26-Oct-06 1:15 
AnswerRe: Unmanaged pointer in managed collection Pin
User 58385226-Oct-06 13:41
User 58385226-Oct-06 13:41 
AnswerRe: Unmanaged pointer in managed collection Pin
George L. Jackson28-Oct-06 6:45
George L. Jackson28-Oct-06 6:45 
Questionread all files form a CD Pin
Iv0125-Oct-06 14:01
Iv0125-Oct-06 14:01 
AnswerRe: read all files form a CD Pin
Jonathan [Darka]25-Oct-06 21:14
professionalJonathan [Darka]25-Oct-06 21:14 
QuestionTemplate question Pin
User 58385224-Oct-06 15:16
User 58385224-Oct-06 15:16 
AnswerRe: Template question Pin
Rob Graham24-Oct-06 17:07
Rob Graham24-Oct-06 17:07 
GeneralRe: Template question Pin
User 58385224-Oct-06 18:48
User 58385224-Oct-06 18:48 
QuestionUnderstanding Templates Pin
Nathan Farrar23-Oct-06 4:51
Nathan Farrar23-Oct-06 4:51 
AnswerRe: Understanding Templates Pin
led mike23-Oct-06 7:56
led mike23-Oct-06 7:56 
AnswerRe: Understanding Templates Pin
Michael Dunn23-Oct-06 13:28
sitebuilderMichael Dunn23-Oct-06 13:28 
AnswerRe: Understanding Templates Pin
George L. Jackson23-Oct-06 13:31
George L. Jackson23-Oct-06 13:31 

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.