Long Is Faster Yet It's 4 Bytes And Integer Is 2 Bytes, And Other Data Type Questions
I read in the MSDN library that a long data type should be used whenever possible because it is the processors native data type and therfore more efficient. Why is this if it's 4 bytes and the integer is 2 bytes?Also, it sayed you should only use decimal when absolutely neccessary when dealing with math so that the math co-proccessor is utilized less. What data type can I use that when divided by an indivisable value won't return a decimal value? I usually use the round() functiln.Any help would be great thanks.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Bytes To Long Integer
Hi, I'd like to get a certain value from an avi video, but I'm not really sure how to do this. Byte 4 - 7 contains the real size of an avi video. These 4 bytes need to be converted to a long integer (I think).
In the example (screenshot):
Byte 4 = EA
Byte 5 = B9
Byte 6 = 8C
Byte 7 = 0E
EA B9 8C 0E = 244103658 bytes (original file size).
Does anybody know how to get Byte 4 - 7 and convert it, so I get the long integer value?
Thanks.
Copying Data From A Block Of Bytes To Integer Array
Hi!
I am trying to work a way to record audio using the windows API - getting input from device, processing it (I need to check the value of the samples) and then writing it to a file...
I have a WAVEHDR struct (actually an array called inHdr of them), and its lpdata field points to a block of BUFFER_SIZE bytes (I used GlobalAlloc to get the block), filled by the audio device.
I want to pass the contents of these bytes to an array of integer, so that I can manipulate them comfortably (my samlpe is 16-bit).
I tried to do it by using a temp string which worked - my code looked something like this (without the manipulation bit - just copying the bytes to an array and writing the array to fle) :
Dim sBuff As String
sBuff=Spze(BUFFER_SIZE)
CopyMemory ByVal sBuff,ByVal inHdr(i).lpData,BUFFER_SIZE
mmiowrite filePointer,sBuff,BUFFER_SIZE
following the same actions, i imagined doing something like this should providew the same results:
Dim sBuff(BUFFER_SIZE/2) As Integer
CopyMemory sBuff(0),inHdr(i).lpData,BUFFER_SIZE
mmiowrite filePointer,sBuff(0),BUFFER_SIZE
but it doesn't - and instead I get only white noise in my file.
What is my mistake? anyone knows a way to copy the samples data from the memory block to an integer array - so each cell would contain a sample, and so later I could manipulate the samples easily. (I am using BUFFER_SIZE/2 in the second code because i figured every cell in an int array is 2 bytes - I am not sure about it, but when trying BUFFER_SIZE instead I still got the same white noise),
can anyone correct my code - or point me in the right direction for doing so? Thanks a lot
4 Bytes To Single Data Type
How do you convert a floating point number received in four bytes from MSComm.Input into a VB Single Data Type number?
2 Bytes To Integer
Hi!!!
I need a function to converter 2 byte to an integer.
If you know CaClipper its like the function Bin2I
thanks!!!
Bytes To Integer
I just built a usb data logger and am writing the interface in VB, I am getting a 10 bit result from an A/D as two bytes. First byte contains bits 0-7, the second byte contains bits 8-9 of the 10 bit value in bits 6,7.
e.g. 11111111 11000000
I want to convert these two bytes into an integer, what is the easiest way to do it?
thanks
Paddy
2 Memory Bytes Into Integer?
I have an application where I read the EEPROM memory of an imbedded controller. Since I wanted to minimize the code requirements in the controller, it sends each memory location - sequentially, byte-by-byte. This means of course, that any data type other than a byte, is sent (via RS-232) as a byte as well. So in many instances, I will receive an integer that is stored in EEPROM as 2 separate bytes, longs as 4 bytes, and so on. And strings are received individual bytes as well. As I have a full memory map to work with, I know which byte(s) need to be reconstructed back into their original form. With me so far?
Within VB, I take each byte, tagged with it's memory location (in decimal), that location's value and save it to a file. No problem as this works exactly as I want.
Building strings from its individual bytes is no biggie. But reconstructiing integers, singles, etc from these individual bytes is another matter. I don't think I can simply add two bytes together to get the original integer's value, yes?
Thanks in advance.
Convert Two Bytes In An Arry Into One Integer
I have two bytes in separate variables but together they make a large integer. How can I get that integer?
Example
Var1 = 03
Var2 = 51
Integer = 849
How do I programatically convert the two bytes into the number?
TIA....
- Jake
Convert Long Data Type To Integer Data Type
I am trying to convert an array from a long data type to an integer data type. When I use the Cint() function I am getting an overflow error. Is there a way around this? Basically what I am trying to do is to convert two successive 16 bit representations (stored as a long) number into a floating point using the MoveMemory API. The .ReadResults is an OCX defined function that reads MyLongData(j) from Memory and stores into a long data type.
Code:
Dim MyIntData(2) As Integer
Dim MyLongData(2) As Long
Dim fValue As Single
Dim j As Integer
For j = 0 To 1
MyStatus = MbMasterV71.ReadResults(hConnect, Slave, Cmd, RegStart + j, MyLongData(j))
Next j
MyIntData(0) = CInt(MyLongData(0))
CopyMemory fValue, MyIntData(0), 4
Extracting Bytes From Long
My program requires that I add bytes from a Long value to a byte array.
I came up with this function to extract Bytes 0, 1, 2, & 3 from a Long.
Can someone verify that this is in fact correct?
Code:
Function ByteFromLong(Word As Long, ByteNo As Integer) As Byte
ByteFromLong = ((Word And (2 ^ (8 * ByteNo + 8) - 2 ^ (8 * ByteNo))) / 2 ^ (8 * ByteNo))
End Function
Converting 4 Bytes To A Long...
Hello, i'm reading 4 bytes from an another process memory which is supposed to be a socket handle. In vb handles are of the type long, how would i go about to convert these 4 bytes to a long?
the bytes are read from left to right (obviously), so the first byte would be the one most at the left.
example: 123 196 111 44
but i know that from converting hex that it's the last byte (byte 4) that's the one least significant (the one worth 44 in my example). does this apply in converting to a long as well?
mylong = mylong Or Buff(0)
mylong = mylong Or (Buff(1) * 2 ^ 8)
mylong = mylong Or (Buff(2) * 2 ^ 16)
mylong = mylong Or (Buff(3) * 2 ^ 24)
where Buff(0) contains 123 and Buff(3) contains 44
or should it be the other way around? (4:th byte first)
Merging 2 Bytes To Make An Integer (Resolved)
Hello,
If I load all file details into a binary array how would I convert two of those binary entries into an integer or long?
e.g
VB Code:
Dim FileBinary() as byte Dim intFile as integer Dim intTest as integer 'Read in the whole file to a binary array intFile = FreeFile ReDim FileBinary(Len(Filename)) Open Filename For Binary Access Read As intFile Len = 1 Get intFile, 1, FileBinary Close intFile 'How do I now read the first two elements as though they were an integer intTest = FileBinary(0) & Filebinary(1) 'doesnt work
I hope this makes sense. The application I am writting reads in a third part file and needs to be read in as bytes so that I can process the file correctly. i cant therefore load in the value straight to an integer as I dont actually know its an integer until I have the file information.
2 BYTES From Binary File = 1 Integer Value. (Resolved)
I have a file with binary data. There are all integer values.
I GET data from file into an Array like this:
VB Code:
Open arc For Binary As #FileNumber ReDim Buffer(LOF(FileNumber)) Get #FileNumber, , Buffer
With that code each Item in the array(Buffer) is 1 Byte, even if I declare Buffer as Integer()
I need exacly half of the items, 2 bytes each one.
Copying A Block Of Bytes To An Integer Aray
Hi!
I am trying to work a way to record audio using the windows API - getting input from device, processing it (I need to check the value of the samples) and then writing it to a file...
I have a WAVEHDR struct (actually an array called inHdr of them), and its lpdata field points to a block of BUFFER_SIZE bytes (I used GlobalAlloc to get the block), filled by the audio device.
I want to pass the contents of these bytes to an array of integer, so that I can manipulate them comfortably (my samlpe is 16-bit).
I tried to do it by using a temp string which worked - my code looked something like this (without the manipulation bit - just copying the bytes to an array and writing the array to fle) :
Dim sBuff As String
sBuff=Spze(BUFFER_SIZE)
CopyMemory ByVal sBuff,ByVal inHdr(i).lpData,BUFFER_SIZE
mmiowrite filePointer,sBuff,BUFFER_SIZE
following the same actions, i imagined doing something like this should providew the same results:
Dim sBuff(BUFFER_SIZE/2) As Integer
CopyMemory sBuff(0),inHdr(i).lpData,BUFFER_SIZE
mmiowrite filePointer,sBuff(0),BUFFER_SIZE
but it doesn't - and instead I get only white noise in my file.
What is my mistake? anyone knows a way to copy the samples data from the memory block to an integer array - so each cell would contain a sample, and so later I could manipulate the samples easily. (I am using BUFFER_SIZE/2 in the second code because i figured every cell in an int array is 2 bytes - I am not sure about it, but when trying BUFFER_SIZE instead I still got the same white noise),
can anyone correct my code - or point me in the right direction for doing so? Thanks a lot
How Do I Fillmemory In Words (2 Bytes) And Dwords (4 Bytes)
I've made a program in DirectX7 that involves Direct Memory Addressing to the backbuffer surface to draw pixels super fast.
Heres the URL:
http://www.planet-source-code.com/vb...55262&lngWId=1
For the scanline program within it, I'm only limited to the Fillmemory API that only fills 1 byte memory blocks at a time (ByVal Fill As Byte), limiting me to only 256 colors.
Declare Sub FillMemory Lib "kernel32.dll" Alias "RtlFillMemory" (Destination As Any, ByVal Length As Long, ByVal Fill As Byte)
Now I want it to where I can fill memory in words (Integer = 2 Bytes) and dwords (Long = 4 Bytes). That way I have 65536 colors to choose from (2 bytes per pixel for 16 bit color) when I fill in words and 4294967296 colors to choose from (4 bytes per pixel for 32 bit color) when I fill in dwords. Replacing the Byte to Integer caused it to add 256 to every increment, showing its still limited as 1 byte.
Andre Lamothe (Author of many game programming books) has this assembly source to do what I want, but I don't really want the hassle of trying to mix assembly with VB and require everyone who uses my code to "make sure you have this add-in" and download MASM/TASM/NASM. Too much of a hassle if you ask me. Plus I don't really know much of assembly. Anyways, heres the source:
inline void Mem_Set_WORD(void *dest, USHORT data, int count)
{
// this function fills or sets unsigned 16-bit aligned memory
// count is number of words
//Write_Error("{");
_asm
{
mov edi, dest ; edi points to destination memory
mov ecx, count ; number of 16-bit words to move
mov ax, data ; 16-bit data
rep stosw ; move data
} // end asm
//Write_Error("}");
} // end Mem_Set_WORD
///////////////////////////////////////////////////////////
inline void Mem_Set_QUAD(void *dest, UINT data, int count)
{
// this function fills or sets unsigned 32-bit aligned memory
// count is number of quads
_asm
{
mov edi, dest ; edi points to destination memory
mov ecx, count ; number of 32-bit words to move
mov eax, data ; 32-bit data
rep stosd ; move data
} // end asm
} // end Mem_Set_QUAD
#End If
/////////////////////////////////////////////////////////
Is there any way I can do it WITHOUT the reliance of assembly? A mix of CopyMemory and FillMemory might help solve my problem in theory, just can't figure out how to do it. THANX.
-Jacob Roman
How To Put 4 Bytes Of Info Into Long Variable
I am trying to read four bytes of info separately from four diffrent ports and I wanted to put all those four bytes together to make one Long Variable so that I can use that as a single variable consisting of four bytes. Is there anyway I can do that in VB6. Please help soon.
Convert Long To Dword To Bytes
Hello,
lets say I have a long: 345,678
I need VB to convert to a dword: 5464E
Then convert that to bytes: 4E 46 05
How?
Many thanks for any help
- Jake
How To Split Float,Long And Int Into Set Of Bytes
hi guys,
I have done this in C With Unions and Structure but how to do this in VIsual Basic.
How To split a 4 byte IEEE format Float number to 4 respective character bytes. e.g. 1234.56 = hex= 0x449A51EB this is a floating no convert this in
ch1 = 0x44h,
ch2 = 0x9Ah
ch3 = 0x51h
ch3 = 0xEBh
Also how to split Long integer which is also 4 bytes
I can do this in C by using union, by declaring inside , a floating point number and then structure of 4 characters.
please help
Yogi
Convert Long To Bytes For MSComm.Output
I have a problem with sending Long Integer (32bit) over MSComm to a device that takes only 8-bits at a time. I have large numbers to send over... here is a C code that does it, but don't know how to do it in VB:
u8 cmd4[]= {(u8)((N&0xff0000)>>16),(u8)((N&0xff00)>>8),(u8)(N&0xff)};
cmd=cmd4;
writeDevice(cmd,3);
where N is the Long (32bit), writeDevice is similar to MSComm.Output
Any help greatly appreciated!
Converting 4 Bytes From A Byte Array To A Long Value.
I want to convert 4 bytes (from a byte array) into a long value.
This code gives me an overflow:
Code:
Dim number as long, baite(3) as byte
baite(0) = &H21
baite(1) = &H30
baite(2) = &H1
baite(3) = &H0
number = baite(0) + (baite(1) * 256) + (baite(2) * 256 * 256) + (baite(3) * 256 * 256 * 256)
Anyone got any hints?
Read Real Type (6-bytes) In A Binary Files
Hi everyone,
I need your help.
I'm trying to read a binary file written in Pascal. I want to read a real type (6-bytes) with VB6 but I can't figure out how.
Please someone help me
Bruno
Bytes And Mega Bytes
Dear all,
What is the conversion factor to convert from
Mega bytes to bytes
Giga bytes to bytes
Terabytes to bytes
that all
I know 1 kB=1024 bytes
Thanks in advance.
Bytes Sent <> Bytes Received
I am writing a graphical interface to a monitor process running on one of our Tandem systems, using the WinSock SendData and GetData subroutines. The number of bytes (112) that I think I am sending does not equal the number of bytes (113) received by the monitor process. The extra byte at the end of the record is a NULL. Everything else in the record looks good.
The monitor process will be written in C. At the moment, I am sending to a test server (also written in C) that does some checking of the header info and sends back a simple text message. The header contains the total record byte count. Since it is off by one, an error occurs.
I am hoping someone can tell me where I am picking up the extra byte and if it is an error or not. If it's not an error, then I will just have to increment the record size by 1 and handle the extra byte in the monitor process.
Here is the code involved:
<snippets>
' Globals -------------------------------------------------
Public Type dclStdHeader
ttl_len As Long ' long ttl_len;
msgtype As Long ' long msgtype;
orig_id As Long ' long orig_id;
seq_num As Long ' long seq_num;
tran_type As Long ' long tran_type;
user_def(32) As Byte ' char user_def[32];
End Type
Public Type dclMonitorReq
req_hdr As dclStdHeader
reqid As Integer ' short req;
sysname As String * 8 ' char sys[8];
byCust As String * 8 ' char byCust[8];
byProc As String * 8 ' char byProc[8];
byType As Integer ' short byType;
getProcs As Integer ' short getProcs;
getExceps As Integer ' short getExceps;
End Type
Public MonitorRequest As dclMonitorReq
Public sizeofMonitorReq As Integer
Public ByteArray() As Byte
Public Declare Sub CopyMemory Lib "KERNEL32" _
Alias "RtlMoveMemory" (hpvDest As Any, _
hpvSource As Any, _
ByVal cbCopy As Long)
' Code ----------------------------------------------------
sizeofMonitorReq = LenB(MonitorRequest) ' computes to 112
Public Sub Send_Request(ByVal RecNum As Integer)
' Send the request
Dim bArray() As Byte
Dim vTData As Variant
Dim lLen As Long
' 1st we need to store the record length in the header
' and then convert the record to a byte array so that
' it can be assigned to a variant
With MonitorRequest
.req_hdr.ttl_len = sizeofMonitorReq
lLen = LenB(.req_hdr.ttl_len)
ReDim ByteArray(lLen)
CopyMemory ByteArray(0), .req_hdr.ttl_len, lLen
Swap_Endian lLen ' convert to big endian
CopyMemory .req_hdr.ttl_len, ByteArray(0), lLen
End With
ReDim bArray(sizeofMonitorReq) As Byte
CopyMemory bArray(0), MonitorRequest, sizeofMonitorReq
vTData = bArray
tcpClient.SendData vTData
End Sub
</snippets>
I suspect that a variant ends with a NULL character, but I haven't found anything to confirm this. If so, then in the statement vTData = bArray, bArray is copied to vTData and a NULL is appended increasing the length to 113. If not, then my guess would be that the SendData routine is appending the extra byte.
If all of the above are wrong, then I must be doing something wrong, but I have no idea what that may be.
Can anyone set me straight?
Data To Bytes
I need to convert data for each data type to its storage byte form.
For instance you save an integer to a file, i you read that file 'for binary' you get a 2 byte string. For Long & Single its a 4 byte string, etc...
I dont want to create a temp file and save values to it just to read from everytime, thats dumb. Im thinking i probably need to create an algorithm to figure each data type but im hoping theres an easier way i guess...
Orrrr if anyone has already created such algorithms, that would be cool too.
Why?: sending data of type single, in a UDT through my winsock. (yes i know UDT's dont go thru winsock but thas why i need this function, so i can make it all a string and then convert back)
How Can I See Incoming Data Bytes?
hi!!
can anyone tell me how can i see how big in Bytes are incoming data???
this dosnt work!!:
Me.Caption = Winsock1.bytesRecevided
why dosnt it work????!!!
How To Read 2 Bytes Of Binary Data
Hi!
Hope someone knows this.
I have file that consists of binary data. The file has a field of data values that spans 2 bytes long. I am trying to read in the 2 bytes of data into a variable to retrieve the data back in decimal value. However, i only have integer and byte datatypes. I thought Vb allowed the short datatype but i was not able to use it.
Would anyone know how i can read multibyte binary data?
Any ideas would be helpful. Thanks.
Using Bytestotal, Receiving Data A Certain Number Of Bytes At A Time?
Hello,
I will try and make this as concise as possible.
I have a winsock socket accepting data, I want all of the data to be accepted into memory but some pieces of data are in excess of 65535 bytes (Max byte size for a string). How would I go about getting small chunks of the incoming data and then storing them each in a new string array element. The array will have to be created on-the-fly as the exact amount of data is never known.
I thought of something along these lines: (Considering there was 100,000 bytes of incoming data). I understand 65535 may not actually work as it is close to the limit but it is the theory I am looking for.
'bytestotal = 100000bytestotal / 65535This would equal 1.525 (approx)Use the round function to round 1.525 (= 2 array elements)Redim the array with 2 elementsSomehow get the first 65535 only of the incoming data and store in first array elementGet the rest of the data (100000 - 65535) = 34465 bytes of remaining data and store in second array element.
Am I along the right lines and how would I implement this in a practical sense?
Many thanks in advance,
Jord
Data Type - Integer To Number
Ok I am having trouble querying my database with a user entered value.
The user enters and ID no. in a text field which is then cast to an Integer to be safe:
'Check if the user entered a reservation number to search from
If (ReservationNumberField.Text <> "") Then
'Check if what was entered was actually a number
If IsNumeric(ReservationNumberField.Text) = True Then
iReservationNum = CInt(ReservationNumberField.Text)
Then iReservationNum is passed to a method which accesses the database and executes an SQL query on a table. The Reservation Number is the primary key of this table and as a result is stored as an "autonumber"....upon running the query I get a "data type mismatch" error:
"SELECT * FROM reservation WHERE reservationID = '" & reservationNum & "' "
I assume this is because I am looking for an Integer in a column of "autonumbers".....
What do I do??
Thanks!
Edit: Oh...I did do a search first, couldn't find anything
How To Add Data From 2 Textbox Of Type Integer
hello everyone..can anybody help me?...
i wanna add two data from textbox ttotal and tpayment...
i will display the valu i got in a textbox tvalue...but i couldnt get it rite..
for example the current value of ttotal = 2000 and tpayment = 200...
i use the formula tvalue = ttotal + tpayment
the program gives me an answer of 2000200 instead 0f 2200...
anybody knows why?
Do You Like The Bytes :]]]
How to put 4 bytes by one statement.
e.g.:
Instead of
Put #1, 1, 8
Put #1, , 6
Put #1, , 23
to put them - 8 & 6 & 23 by 1 command
Bytes
I have an integer variable that has one 1 and the rest is 0's. How can I take that variable and start reading it as 1's and 0's. It would be easier for soemthings to read that variable by 1's(to activate something) and 0's(To diactivate something). Instead of doing this
if variable = 9 then
do this
and this
end if
By doing the way above I would have to have an If statement for each combination.
becuase 9 is 1001. It would be faster to do something like this:
if byte(var, 1) = 1 then
do this
end if
if byte(var, 4) = 1 then
do this
end if
I don't want to convert the number to Binary. I want to convert the variable to binary. If you convert a number to binary the decimal is ignored. Goto the calculator that comes with windows open it and type in "1.3" or any other number with a decimal. Convert that to binary and then back to decimal and you get 1. There are also problems when converting negative numbers. So it would be easier for me to read the variables binary data. Is that possible?
It should be posible becuase if you look at the api constants for most of them what they equal are things like 01000. Or similar with only one 1 and the rest are 0's.
Thanx in advance!
Gdi Plus Where Are The Bytes?
I don't know if I'm overkilling this question but perhaps you can help. I've gotten OnErrOr's gdiplus7.zip downloaded and incorporated into a project. My task is simple. I want to load a bitmap (a small black and white logo) from a file using LoadFromFile and then send the bytes of the bitmap to the printer. I've looked at ALL the gdiplus functions and all the methods that the GURU exposed in the wrappers and there is no access to the bytes. The closest I am coming is the loadfromresource method which loads the bytes in the global array but I'm not reading from a resource file...
Now I'm pretty sure I could just use the handle of the bitmap and the GetDIBits API call but I'm trying to make sure I'm not missing something and I thought that the GDI Plus functions were supposed to replace all the API calls...
Guidance?
Reassurance?
UltiAnimal
Bytes
is vb capable of going to cetrain offsets in a file and editing single bytes?
if so wht do i need to know?
WPM && Bytes
How can i use WriteProcessMemory when writing more than 4 bytes?
Example:
Code:
WriteProcessMemory pHandle, &H666666, &H9090, 1, 0&
The above works fine.
Example 2:
Code:
WriteProcessMemory pHandle, &H123456, &H909090909090, 1, 0&
This one doesn't work.
How can I use WriteProcessMemory when writing more than the 4 bytes?
Bytes
HEy,my prog copyies it self to C:/ and F:/ how cud i make it copy the file to the C:/ wiv like about 350kbs,and the one wat gets copied to F:,is somit like 1mb thanks!
Get The Bytes Of A UDT??!?
Hello all,
I have a problem in that the speed of my program at start up is very slow.
I know that it is because of the decryption of my datafile.
What I use at the moment:
VB Code:
Crypt mstrPath, MSTRCode Open mstrPath For Binary Access Read As #1 Get #1, , DataFileClose #1 Crypt mstrPath, MSTRCode
Now, not only is this unsecure (because it leaves the file unencrypted for a small amount of time), but it is slow.
It has to decrypt it, read it, then encrypt again.
Datafile is a user defined type, but how can I put it into a byte array, then encrypt it using my encryption scheme?
I guess basically, I ned to know how to go from UDT -> Byte Array, and back again.
Thanks in advance,
Bytes To KB/MB/GB
anyone have any good code for using the filesize in bytes and converting it to KB/MB/GB respectivly...
what I mean is.. if it is over a gig then display in GIGS but if not display in MB but if it isn't a MB then display in KB and if it isn't a KB then just display the bytes
Bytes Per Second
For my file transfering program, how do I get the bytes per second that a file is being sent out at, or being received at?
Bytes
How can I tell how many bytes a string is? I'm sending strings to a server, but if they are over 2048 bytes, then my connection is dropped.
Pi In 4 Bytes
Does anyone know how I can packet a number like Pi = 3.1415 (to just 4 decimal places), into 4 bytes for transmission?
I'm not too familiar with byte transfer, i.e. how do I store the signed byte, base, exponet, and mantissa?
Any help would be gretly appreciated.
Thank you
Why 2 Bytes?
Whilst looking something up in the MSDN libary, i noticed that in VB, the boolean data types takes up 2 bytes. Why would something that is only true or false need 2 bytes? Surely it could be done with 1 bit eg, 1 = true, 0 = false?
There are't different degrees of true and false are there?
VB6: Using Bytes
I am trying to create a packet in VB6 byte by byte but Im not sure how to do it the way I want.
I want it like so:
packet = &H00, &H4C, &H36
How must I go about doing this?
Thanks,
Ramsey
Bytes In, Bytes Out
Hello
I am working on the project where I need to get the number of bytes recived and sent from/to internet. I am using a LAN connection and this program should run on each computer and control the users. I am loking for the answer already two weeks on internet but I didn't find it yet.
If anyone knows how to do it please help me.
My mail is shurik335@hotmail.com
I will be thankfull
Alexander
Edited by - SashaD335 on 8/23/2003 7:56:54 AM
Bytes By Bytes
HI,
how to put a picture bytes by bytes in a postGreSQL db ?
How To Convert From Integer/long Integer To Binary ?
How to convert from integer or long integer to binary in Visual Basic,
for example : 9568 to 10010101100000
and how to convert back from binary to integer or long integer,
for example : 10010101100000 to 9568.
Please help.
dev.
Can Listbox Have A Different Data Type? Integer 32767 Is Not Enough.
hi, i am doing a loop that will stores all the combinations into a listbox, however, it has more than 32767 items, what should i do?
i did thought of using array, but i need it to be displayed and also need the index of the listbox for some calculations.
anyway i can change the listbox's .listcount maximum into 999999 ?
Bits And Bytes
I want to know how I can read the first 3 bytes from a file (in this case an MP3 file) to validate if it is, in fact, an MP3 file
does anyone know how to do so?
|