Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bytes and converting from C

Status
Not open for further replies.

LesleyAnn

Technical User
Feb 3, 2004
1
GB
I am using an ActiveX to communicate via serial comms to a gas analyser. Works well. Now have different brand of analyser and can't get my head around method of formatting the command to the analyser. Have been given example of C program by manufacturer where the message is loaded as follows:
BYTE Msg0 [ ] = { 6, 3, 3, 0, 0, 0, 0xFA };
How would I do this in PowerBuilder and how is my variable defined?
Have tried the following
is_comms = char(6) + char(6) + char(3) + char(3) + char(0) + char(0) + char(0) + char(250)
Does not work.
Anyy C and PowerBuilder programmers out there who can help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top