|
|
If your values or store in hex Right to left order Like this:
Byte3-byte2-byte1-Byte0, and each byte represents a hex value from 1-15
So your read byte0,
Then byte1 and multiply it by 16
Then byte2 and multiply it by 256
Then byte3 and multiply it by 4096
It's a simple Hex-dec conversion, and I hope I got you right..
Regards
|
|
|
|
|
Hi
My byte array store hex values
take an e.g
00 ea d4 00 This is four byte .how can i read then in as it is in a variable so that myvariable=d4ea
in vc++ there is memcpy function there should be?
|
|
|
|
|
I believe that you have not stored hexadecimal digits (0-15) in the bytes in the array, but byte values (0-255)? Am I correct?
Shift the values and add them together:
uint b1 = theByteArray[somewhere];<br />
uint b2 = theByteArray[somewhere + 1] << 8;<br />
uint b3 = theByteArray[somewhere + 2] << 16;<br />
uint b4 = theByteArray[somewhere + 3] << 24;<br />
<br />
uint offset = b1 + b2 + b3 + b4;
---
b { font-weight: normal; }
|
|
|
|
|
Hi
My byte array store hex values
take an e.g
00 ea d4 00 This is four byte .how can i read then in as it is in a variable so that myvariable=ead4
|
|
|
|
|
Your statement is contradictory. Are you storing a hexadecimal string in the byte array, or are you storing bytes like 00 ea d4 00?
If you are storing bytes, do you want a value like 00ead400 or just the middle bytes ead4?
Are you storing the bytes in reverse order, i.e. Motorola style, or are you storing them in regular Intel order?
---
b { font-weight: normal; }
|
|
|
|
|
Hi
How can i read a 4byt offset from a byt buffer in c#
Parshant
|
|
|
|
|
Hello
how do you store your bytes buffer??
If it's a bytes array:
byte Offset = MyBuffer[3];
Regards
|
|
|
|
|
Hi,
I am working on a Windows based project using C#.
Using VS 1.0 version.
I am using a datagrid.I have a problem, that if the user
modifies the data in the grid, how will we come to know
that there is a change in value in the grid.
Plz help me to solve the prob,since i am new to C#
Thanks in advance
Regards,
Vaishali
|
|
|
|
|
Hello
1- Are you using Datagrid or DatagridView?
2- Is your DataGrid Databound to a source or do you poplate it manually?
Regards
|
|
|
|
|
Hi,
1- I am using Datagrid
2- And my DataGrid Databound to a source in database(Mysql).
ie.I have a dropdown box to select say for eg. to select city.
where city list will come from database
Thanks ..
Waitin for the reply
Regards,
Vaishali
|
|
|
|
|
If you use a Dataset in your binding, try to check the value of DataSet.HasChanges property.
Regards
|
|
|
|
|
i want to make method invocation will will help my customer to take arry of Object
how can make this ??
Palestine
|
|
|
|
|
Hello
Please delete your previous post and keep only this one.
To know more about creating/using WebServices, Click here[^].
Regards
|
|
|
|
|
i want to make web service that will return Object
* how can make this web service ????
Palestine
|
|
|
|
|
Hi man
visit the following website
WEBSERVICES[^]
hi to all palestinien ones ... yes palestine not others ...
Thanks alot
Hamody
|
|
|
|
|
I built application in .net remoting,any one can know how i can build a clustering server ,this mean if my server fail call another server to complete the process.
|
|
|
|
|
I am using controls at runtime foe palying movie files.
a .mvw file opens if i double click it in mediaplayer. but when i am programatically runs the same in a mediaplayer control. it does not. the error is "Error HRESULT E_FAIL has been returned from a call to a com component". but when I am using a mpeg file then it runs properly.
|
|
|
|
|
|
Syed Mujtaba Hassan wrote: Hons
When you get to the point of doing honours, you've surely learned how to think for yourself ?
Anyhow, your teacher knows how to use the web....
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Subject: A short title describing your question.
Text: The message text containing your question.
Try again.
---
b { font-weight: normal; }
|
|
|
|
|
Hi i want to put a combobox in my datagrid, which i want to bind by xml.
I am using my datagrid in WinForms, and i am using Visual Studio 1.1
Thanks in advance.
Deepak Surana
|
|
|
|
|
the easiest way is to upgrade to .net 2.0 bcz I had the same problem a few days ago n I tried many different things too but eventually I upgraded to .net 2 and solved that but if using .net 1.1 is a compulsation then it is something to work on.
u can find one or two useful articles on this very site about making datagridcombobox, do read them out and see 4 urself..
Rocky
|
|
|
|
|
i want to create an object like labels, buttons. it has events. i don't want to use UserControl.
i wonder how windows can do these controls and their event functions. Is there any API function or any thing else.
|
|
|
|
|
dungeonsdarknight wrote: i don't want to use UserControl.
Why not? What's wrong with it?
Follow the MSDN guideline on Developing Custom Windows Forms Controls with the .NET Framework[^].
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|