Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsizeof(MyArray) returns wrong number Pin
Mr.Brainley25-Sep-06 3:55
Mr.Brainley25-Sep-06 3:55 
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 
Hi, i have a small problem i hope to get some help with.

I am working with the SerialPort class in .NET 2.0. I want to use the SerialPort's write() method as defined below with the following overloaded arguments.

public:
void Write (
array<unsigned char="">^ buffer,
int offset,
int count
)

The program on the other end of the serialPort is using C code. The serialPort on the other end uses a serial port read function which takes in a unsigned char array.

ie. void read(unsigned int i)

Does anyone have any ideas how i can pass my data through? (ie from a CLR array to a function that takes native arrays). I am stuck as there are no overloaded write methods in SerialPort class which allow me to pass a native array. I can only think of one solution at the moment, and that is deriving my own class inherited from SerialPort and overload the write method to take in a native array, but i have no idea to write a method which will write data to a serial port.Frown | :(

PS. most of my work is already completed in .NET so there is no chance of starting over in unmanaged C++, and the other end cannot be changed to .NET as it is legacy system.
AnswerRe: Passing CLR array to native function Pin
led mike25-Sep-06 4:42
led mike25-Sep-06 4:42 
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 

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.