Hi all,
I'm using C++ Builder5. I want to get data from an edit-box and
send it to a development kit. The dev-kit can only receive char
and no char*
here's a part of my code:
char* Data_byte = 0x00;
UCHAR outBuffer[64];
WORD outPacketSize;
outBuffer[0] = Data_byte;
...
...
void __fastcall TForm1::Data_Ed itChange(TObjec t *Sender)
{
Data_byte=Data_ Edit->Text.c_str() ;
}
I get an error -> Can't convert char* to char. Does anyone
have a solution for my problem?
So I just need to get a byte from the edit-box and store this
in a variable.
thnx in advance,
Chris
I'm using C++ Builder5. I want to get data from an edit-box and
send it to a development kit. The dev-kit can only receive char
and no char*
here's a part of my code:
char* Data_byte = 0x00;
UCHAR outBuffer[64];
WORD outPacketSize;
outBuffer[0] = Data_byte;
...
...
void __fastcall TForm1::Data_Ed itChange(TObjec t *Sender)
{
Data_byte=Data_ Edit->Text.c_str() ;
}
I get an error -> Can't convert char* to char. Does anyone
have a solution for my problem?
So I just need to get a byte from the edit-box and store this
in a variable.
thnx in advance,
Chris
Comment