Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: sizeof(MyArray) returns wrong number Pin
prasad_som25-Sep-06 4:14
prasad_som25-Sep-06 4:14 
AnswerRe: sizeof(MyArray) returns wrong number Pin
toxcct25-Sep-06 4:54
toxcct25-Sep-06 4:54 
AnswerRe: sizeof(MyArray) returns wrong number Pin
Zac Howland25-Sep-06 5:37
Zac Howland25-Sep-06 5:37 
AnswerRe: sizeof(MyArray) returns wrong number Pin
Zodiacon25-Sep-06 6:57
Zodiacon25-Sep-06 6:57 
QuestionDialog Control Border Problem Pin
Tracy Hanahan25-Sep-06 3:51
Tracy Hanahan25-Sep-06 3:51 
QuestionA Simple Namespace Extension Question... Pin
Dave Kerr25-Sep-06 3:40
Dave Kerr25-Sep-06 3:40 
QuestionPassing CLR array to native function Pin
flackjack25-Sep-06 3:20
flackjack25-Sep-06 3:20 
AnswerRe: Passing CLR array to native function Pin
led mike25-Sep-06 4:42
led mike25-Sep-06 4:42 
The SerialPort class does NOT send a managed array. It writes the contents of the array to the port.

flackjack wrote:
which takes in a unsigned char array.

flackjack wrote:
ie. void read(unsigned int i)

unsigned char is NOT EQUAL to unsigned int

so whatever it actually is, you need the data in your managed array to be of the same byte size so the read() function will work correctly. Once you are clear what the read() signature is you can find documentation on MSDN that shows the managed to unmanaged byte size mapping. Also PInvoke.net[^] might be another source of useful information.


led mike

GeneralRe: Passing CLR array to native function Pin
flackjack25-Sep-06 14:37
flackjack25-Sep-06 14:37 
GeneralRe: Passing CLR array to native function Pin
flackjack27-Sep-06 13:47
flackjack27-Sep-06 13:47 
QuestionCrash when a modal dialog is opened !! Pin
hatemtaleb25-Sep-06 3:19
hatemtaleb25-Sep-06 3:19 
QuestionRe: Crash when a modal dialog is opened !! Pin
prasad_som25-Sep-06 3:51
prasad_som25-Sep-06 3:51 
AnswerRe: Crash when a modal dialog is opened !! Pin
Hamid_RT25-Sep-06 4:22
Hamid_RT25-Sep-06 4:22 
Questionsmart pointers Pin
shadrach_india25-Sep-06 3:07
shadrach_india25-Sep-06 3:07 
AnswerRe: smart pointers Pin
Zac Howland25-Sep-06 3:13
Zac Howland25-Sep-06 3:13 
AnswerRe: smart pointers Pin
Hamid_RT26-Sep-06 6:57
Hamid_RT26-Sep-06 6:57 
QuestionAdditional debugging tools for Visual C++ 6 Pin
KellyLynch25-Sep-06 2:01
KellyLynch25-Sep-06 2:01 
AnswerRe: Additional debugging tools for Visual C++ 6 Pin
Zac Howland25-Sep-06 3:15
Zac Howland25-Sep-06 3:15 
GeneralRe: Additional debugging tools for Visual C++ 6 Pin
KellyLynch25-Sep-06 5:15
KellyLynch25-Sep-06 5:15 
GeneralRe: Additional debugging tools for Visual C++ 6 Pin
Zac Howland25-Sep-06 5:38
Zac Howland25-Sep-06 5:38 
Questionhow can i Remove leading spaces and trailing spaces from my database ? Pin
Bravoone_200625-Sep-06 1:49
Bravoone_200625-Sep-06 1:49 
AnswerRe: how can i Remove leading spaces and trailing spaces from my database ? Pin
_AnsHUMAN_ 25-Sep-06 1:59
_AnsHUMAN_ 25-Sep-06 1:59 
AnswerRe: how can i Remove leading spaces and trailing spaces from my database ? Pin
Viorel.25-Sep-06 2:06
Viorel.25-Sep-06 2:06 
Question64-Bit Arithmetics on 32-Bit system Pin
Mr.Brainley25-Sep-06 0:42
Mr.Brainley25-Sep-06 0:42 
AnswerRe: 64-Bit Arithmetics on 32-Bit system - Figured it out Pin
Mr.Brainley25-Sep-06 0:56
Mr.Brainley25-Sep-06 0:56 

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.