Solved

what does the following do

Posted on 2006-06-25
5
251 Views
Last Modified: 2010-04-16
I have an example app i found on the web which uses the following line to create a command

cmd="\x02\x06\x33\x31\x30\x33\x03";

what does it actually do? Is there  a low level language being used?

Thanks!!
0
Comment
Question by:Halon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 11

Accepted Solution

by:
Agarici earned 250 total points
ID: 16981714
it creates a string which contains the chars with those hex values: cmd[0] = 0x02, cmd[1] = 0x06, cmd[2] = 0x33 and so on (i can tell you that 0x33 is '!' 0x31 is '▼' and 0x30 is '▲' )

the basic idea is that you can use '\x' escape sequence to specify a char in a string by its hex value.

hth,
A.
0
 
LVL 4

Expert Comment

by:SmithJW
ID: 16982365
the string is just hex encoded character codes which you can look up here
http://www.lookuptables.com/

what else can you tell us about the sample code?
where is this command used?

no low level language is being used, but without some context its impossible to say what is actually happening.

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question