VS 2008 Bits - Bytes And Boomerangs (without The Boomerangs)

Sep 17, 2009

I like my thread titles with alliteration Anyway... now that you think I'm weird, lets get down to business. As per this thread: [URL]I am trying to perform a DNS query in code. Having spent the last few hours trying to get my head around this and failing miserably I figured I would see if anyone on here could point me in the right direction.

[Code]...

View 39 Replies


ADVERTISEMENT

C# - .NET Apps. Bits And Bytes - App Use As Little Memory As Possible ?

Apr 13, 2011

I am soon to develop a Win Forms app that will run on traders' machines and the main concern is to have the app use as little memory as possible. Ever single line of code needs to be written with this in mind. What are areas I need to take into account? Of course you will say to do any complex processing on e.g. the database and not the client but what else?

View 3 Replies

Develop 32 Bits Applications If Have Win 7 64 Bits And Visual Studio 64 Bits?

Mar 14, 2011

I am a visual basic developer, I have windows 7 64 bits and Visual Studio 64 bits installed.CAN I DESIGN APPLICATIONS WITH THESE SETTINGS THAT CAN BE COMPATIBLE with 32 bits operating system(example in windows Xp 32 bits)?

View 2 Replies

VS 2008 Applications In Windows 64 Bits And 32 Bits?

May 9, 2010

An application created with Visual Basic in Win7 64 bits will it still work fine in both WinXP 32 bits and Win7 32 bits ?

View 6 Replies

VS 2008 What Does This Line Exactly Do - I = Stream.Read(bytes, 0, Bytes.Length)

Dec 28, 2010

What exactly does this line do?

i = stream.Read(bytes, 0, bytes.Length)

Does it read the entire message string sent by the client? I have a line to write to the stream later in the code and that does not seem to be sending anything back to the client, although the code around is excuting.

i = stream.Read(bytes, 0, bytes.Length)
While (i <> 0)
Try
' Translate data bytes to a ASCII string.

[code].....

View 3 Replies

Calculate The Lower 7 Bits And 7-13 Bits Of Two Hex Numbers?

Apr 8, 2011

I'm trying to figure out how to calculate the lower 7 bits and 7-13 bits of two hex numbers.

Here is some example c code, just need this in vb.net:

serialBytes[2] = 0x64 & 0x7F; // Second byte holds the lower 7 bits of target.
serialBytes[3] = (0x64 >> 7) & 0x7F; // Third data byte holds the bits 7-13 of target

The 0x7F is a constant so the only number that changes based off input is the 0x64.

View 2 Replies

Use SQLConfigDataSource To Add DSN To The 32 Bits ODBC On Windows 7 64 Bits?

Mar 28, 2012

how can I use SQLConfigDataSource to add DSN to the 32 bits ODBC on Windows 7 64 bits? I know it use C:WindowsSysWow64odbcad32.exe and on registry, HKLMSoftwareWow6432Node but the API do not allow me to configure it?how can I do ?

View 1 Replies

VS 2008 Reading 32 Bits From A File?

Apr 9, 2010

Here's what I have that Doesn't work (I have one button, one OpenFileDialog, and a label named Status):

Public Sub ProcessBytes(ByVal Bytes() As Byte)
Status.Text = "Status: Processing . . ."
Try

[code].....

View 3 Replies

VS 2008 : Facebook Extract Json Into Bits?

May 3, 2011

I have been working on a project to read some data of facebook user walls. So I have researched I need to use json and System.Web.Script.Serialization to extract the required data I suppose. Has anyone have a tidy example of how to get something out of json script?

View 2 Replies

VS 2008 Append Bits For A Very Simple Encryption?

Sep 22, 2010

This seems like it would be so simple and fast, but I cannot figure out how to accomplish it in VB since there aren't many bit functions. I want to take a file and append 5 junk bits at the beginning and 3 junk bits at the end. In essence, just add 1 byte to the file, but in the process offset all the current bits so the file is no longer readable.

I just need a very simple encryption/decryption, but it needs to be very fast as well. I try XORing the bytes, but it gets slow with just a 1MB file. Some of the files are going to be close to 10MB.

View 3 Replies

VS 2008 Bitwise Operation (Reversing Bits)?

Feb 16, 2011

I have written a simple VB.net application which saves information to an RFID tag. I am now trying to compress my data. The solution I have come up with involves bitwire operation.Basically I store 2 numbers per 1 byte (0-9, 10 being a period, 12 possibly being a negative/positive flag,13,14,15 unused as of yet).The code I am using basically shifts the byte containing a number left, 4 spaces, then 'OR's it against another number.Therefore 12 is now represented as 00010010. The problem i'm having is decompressing. Obviously getting the '1' back is easy, as I just shift right 4, then grab it. I need to append or remove the last 4 bits.My solution after many headaches was to reverse the bit order, shift left 4, then reverse, then tostring it.

View 17 Replies

VS 2008 Form Hangs Under Vista 64 Bits?

Jul 8, 2010

I have detected a problem running my application under Vista 64 bits OS.

My application is developed using VB.NT 2008 and compiled as x86

I have a main form. In this form there is an option to open other form. TThis second form must return a few values to the main form. When the user click on this 2nd form, to return values, this form hangs up (2nd form hangs up)

But for what I could have known, it continues executing the rest of code that exists after to open form. I want to say that the form dialog (2nd form) is not closed (hangs up) but it the code continues being executed, because I have seen that inserts the data in the database.

The application not returns any error and any exception.

frmWaiting (form displayed when call thread)
This forms contains progressbar
main form
Dim ThreadVentas As System.Threading.Thread

[Code].....

View 4 Replies

RijnDael Encryption/decryption - Select The Key Bytes And The Block Bytes From The Numeric Up/down?

Nov 13, 2010

I want it to do is that you input a string, then you select an algorithm (Theres only going to be one RijnDael) then you input a key, then the Initialization Vector comes from "txtIV.text" then you select the key bytes and the block bytes from the numeric up/down, then you either encrypt or decrypt.

View 1 Replies

Generic Restriction - Dont Select The Key Bytes And The Block Bytes From The Numeric Up/down?

Sep 16, 2011

Ok i am having some issues designing a base-class to handle generics.Caveat is i need to restrict the type put in as a Numeric type, specifically Int16, Int32, or Int64 (Short or Long).I know you can do Of T as {Structure} but i dont want to select the key bytes and the block bytes from the numeric up/down.

View 2 Replies

Bytes Written Exceed The Content-Length Bytes In XML Post?

Feb 19, 2011

I keep getting a ProtocolViolationException "Bytes to be written to the stream exceed the Content-Length bytes size specified." on the following code.I've tried setting Content-Length numerous ways with no success.

Dim url = "https://domain.com"
Dim req As WebRequest = WebRequest.Create(url)
req.Method = "POST"
req.ContentType = "application/xml"

[Code]...

View 1 Replies

Read 2 Bytes Out Of 4 Bytes From A Text File?

Sep 22, 2011

I created a text file contains 4 bytes of data

AABBCCDD

I just want to read the first 2 bytes (AABB) to execute it with my program.

Then I'll need to read the last 2 bytes (CCDD) for another computer routines

View 3 Replies

Display KB Not Bytes 391 KB (401303 Bytes)

Aug 2, 2009

Probably missing something silly here, Her eis what my display looks like Sending image...(401303) I would prefer it displays as Sending image...(391 kb)

[Code]...

View 7 Replies

VS 2008 Bytes To MB Etc?

Dec 4, 2010

This is how i convert Bytes to KB etc.. vb.net

[Code]...

View 7 Replies

VS 2008 BGR Bytes To Picture Box?

Jan 29, 2010

I have a rom file that I want to display data from The strings I have already retrieved and displayed the problem now is the image. I have read all the bytes for the part of the file that contains all the data I require EN_Title_Icon which is 2112 bytes. The image data is offset 32 byes in EN_Title_Icon and is 512 bytes, How do I loop the bytes and put them as pixels in the picturebox or a bitmap? And can i use the pallet data that is the 32 bytes after the image data? Here is some info on the image

[Code]...

View 2 Replies

VS 2008 - Add 5 Bytes Of Data At The Beginning?

Oct 21, 2009

I have some questions about arrays.

1) Lets say I open a file in a byte array and I need to add 5 bytes of data at the beginning. How would I go in doing that? ex: attaching to arrays together.

2) How would I go in adding 1 byte of data in a bye array?

All i need to do is open part of a file in bytes. Add a letter and 2 numbers to it at the begging and a number at the end.All i need to know is how to attach 2 byte arrays together and how can u add a byte of data to an array.

View 7 Replies

VS 2008 - How To Replace Bytes From File

Nov 13, 2009

I want to open a file and to replace from 2MB to 3MB of it with another 1MB file. Is it possible?

View 5 Replies

VS 2008 : BinaryReader To Read Bytes?

Apr 11, 2010

Why does this programmer use a binary reader to read bytes, why not the client.getstream.read or streamreader?

Case RequestTags.Connect
'sent from server to client informing client that a successful
'connection negotiation has been made and the connection now exists.

[code]....

View 1 Replies

VS 2008 Display Available Memory As Mb's Not Bytes

Apr 14, 2009

im trying to format my results from some WMI quires but im not having much luck.

i want to display my available memory as Mb's not Bytes. in the past ve done the following

vb
result = (queryObj("TotalPhysicalMemory")) / 1024

usually that works but its giving me a retarded result, its giving me 3581.98828125 as the result, but i do the same way with my video card memory and it displays it as 512 like it should. ive tried every way i know of formatting and decimals but non of it is working.

im dsplaying my result in a text box and ive also tried formatting it thier with no such luck

Me.txtmemorycap.Text = text

View 6 Replies

VS 2008 How To Convert Image To Bytes

Feb 3, 2010

i'm trying to convert an image into bytes in vb.net but i failed, i searched the web and threads over here, but seems that i couldn't find any working example or code.

View 7 Replies

VS 2008 Open File As Bytes

Oct 2, 2009

I am not so good with buffers and arrays and I dont know how to continue from here:

[Code]...

My intention is to open an image file as bytes, Convert the bytes to a string, send bytes to server and server stores bytes in a database. Then I need to reverse the process and be able to convert the bytes to an image.

View 11 Replies

VS 2008 Reading/Writing Bytes

Sep 7, 2009

I'm trying to read 5 bytes from a file and then do something according to what has been read. This is my code (I'll explain in a bit what's wrong):[code...]

It reads the 5 bytes I added to the encrypted file, but I want the CryptoStream to start from the sixth value and then copy the original bytes into the decrypted file, but it gives me an error:

Padding is invalid and cannot be removed.That's why I'm trying to make it read from the sixth value and then continue copying normally, but I'm stuck.

View 1 Replies

VS 2008 Received Bytes Threshold?

Feb 4, 2012

I just wanted to confirm my reading -- this is the number of bytes that is put in the buffer before the data received event is triggered, correct? And it's ONLY for that purpose?

View 1 Replies

VS 2008 Where Are Those Blasted Missing Bytes

Oct 27, 2009

Ok, so, as you know [or not], I've been working on a custom file format,I have a basis code down. I've modified it to something a little different.The problem is not in the saving, which works just fine. It's the loading.Here's the ENTIRE

vb.net
Imports System.IO
Imports System.Text.Encoding

[code]....

View 8 Replies

[2008] Move Bytes In Array?

Feb 2, 2009

I need to move bytes in byte array.

Dim data() As Byte = {&HE4, &H96, &HA3, &H47, &H42, &H4A, &H80, &H90}

I need to make so that the first two bytes would be deleted and the rest moved to the first one's for example:

Delete: E4, 96

Move: A3 and all the rest to the place where E4 was. (|A3 = 0|,|47 = 1| etc.)

In C++ it's possible to do it like that:
unsigned char data[]={0xE4, 0x96, 0xA3, 0x47, 0x42, 0x4A, 0x80, 0x90};
data+=2;

how to do this in VB.Net without making a new byte array and then using a loop to put the all bytes in that place - it would be too long and would use more resources.

View 8 Replies

VS 2008 - Downloads Data As Bytes To Use A WebClient

Apr 9, 2009

I've just switched my code over that downloads data as bytes to use a WebClient. I add a header saying I will accept GZip and the site I'm downloading from sends me the data compressed. The problem is, how can I check to make sure it is compressed data before attempting to decompress it? It was much simpler when I was using a Web Request to check the response headers, but I'm having a little trouble checking the reponse headers with a WebClient. Does anybody out there accept compression with a WebClient?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved