VS 2008 Applications In Windows 64 Bits And 32 Bits?
May 9, 2010An 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 RepliesAn 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 RepliesI 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 Replieshow 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 RepliesI'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.
I have an app (developed using VB 2008 and MS Access 03)
It runs fine under Windows XP, Windows 2003 and Windows Vista 32 bits....Butit crash under Windows Vista 64 bits.
The app not register any error and exception (internally). [code]...
As Vista, comctl32.ocx is not accepted by Windows 7, I tried your workaround typing "regsvr32 -u comctl32.ocx" in a dos window, but another error is generated, specifying that the file was not found. But I verified, comctl32.ocx is really present under this name in system32 folder.
View 1 RepliesHere'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].....
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 RepliesThis 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.
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 RepliesI 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].....
TimeGetTime gives the runtime of the program (I think) in millisec. How big is the variable in bits? I meen it must overflow at somepoint. How often does this happen?
View 1 RepliesI get an "invalid parameter" error back from wmi. just trying to download a file via BITS.
Try
Dim classInstance As New ManagementObject("rootMicrosoftBITS", "BitsClientJob", Nothing)
' Obtain [in] parameters for the method
[Code].....
I have a 3rd party dll, and I can't have it referenced while compiling for 64 bit. Is there a way around this? I'm guessing it is because the dll is a 32 bit one, but I'm not sure about that.
View 7 Replieshow i can get the first 16 bits of a 32 bit hex number.
View 5 RepliesWhat is the best way to store 4 bits from a byte in VB.Net? Where best means:Most straightforward method of storage from a Byte type.The easiest to work with while performing bitwise operations.Straightforward conversion of the bits to other types.Storing them in a BitArray via it's constructor reverses the order of the bits. This means that attempting to get the value of the first bit will require looking for that value in the last entry in the BitArray.
View 3 RepliesI am moving Visual Basic 2010 Express from a 32 bits Windosw 7 machine to a 64 bits Windows 7 machine. My project contains a PowerPacks line. I have installed the PowerPacks (VisualBasicPowerPacks3Setup.exe) on the 64 bits system, and see them in the toolbox. When I try to open the project on the 64 bits machine. however, I get error messages:The designer cannor process the code at line 56:
Me. ShapeContainer1 = New Microsoft.VisualBasic.PowerPacks.ShapeContainer
The referenced component 'Microsoft.VisualBasic.PowerPacks.Vs' could not be found
I then thought I would just remove the (purely cosmetic) line on the 32 bits machine, but cannot discover how to do this (I would have though: rihgt click, and then delete, but this doesn't exist)
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 RepliesI'm trying to check whether a Win(RAR) archive is password protected.
0x74 0x24 0x94
How can I convert 0x24 0x94 to bits and check whether the file is encrypted with a password?
HEAD_TYPE Header type: 0x74
1 byte
HEAD_FLAGS Bit flags:
[code]....
I have made a very small (only one form and no database operations) but nifty application and I want many people to be able to use it. My question is: As I only need a very small part of the dotnet framework, is there a way to let the compiler (or so) grab only the parts it needs for the .exe/.msi file, so that users don't have to install the entire 3.5 framework just to run my tiny little app?
View 7 RepliesI'm a newbie in VB.NET, I am trying to directly set the bits of a single variable. For example - dim afloat as single afloat = &h0000000c afloat will then be set to to '12'. However, I wish to actually set the bits of afloat to &h0000000c, which will give a different value.
View 1 RepliesIs there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post: password=theword but WebRequest randomly, and I mean randomly, drops the data when posting to my server. I've tested it by using a chunk of code from my server that dumps the request to a console, and I can that the client is sometimes sending and sometimes not sending the POST data.The code that I'm using that uses WebRequest works in another project, when talking to IIS. The server being talked to (a minimal web server in another system) responds properly every time I POST data to it through Firefox. I've got a function in the same project that fires off a GET request, and that works. It just seems like my POST function isn't completing the transaction...something I've noticed in the past when asking WebRequest to handle small strings.[code]
View 2 RepliesIs it safe to assume an int will always be 32 bits in C#? The linked question asks whether it is "safe to assume that an int will always be 32 bits in C#". The accepted answer states that "the C# specification rigidly defines that int is an alias for System.Int32 with exactly 32 bits".
My question is this: does this hold true for VB.Net's Integer? Is it safe to assume that Integer will always be an alias for int32?
I am trying to get the position and text of all DeskTop icons, by sending a SendMessage to the desktop's listview, using LVI_GETITEMTEXT. Works oke on 32 bits, but on 64-bits I always get an empty string back. I also tried to do this using LVI_GET_ITEM< but the same result. No errors, but also no text string. (I do get the x,y position of the icon). What is wrong here?
[Code]...
I'm trying to use MS BITS (Background Intelligent Transfer service) to upload files from many computers to a server, but the only useful example I read was in StackOverFlow, and here it is:
[Code]...
but frankly, I don't know how to handle the whole thing about BITS jobs management, and I could not find a complete example demonstrate how the management will be so
I asked a question earlier about comparing numbers using the "And" comparison operator in If Statements and now I have been toying around with getting my head wrapped around bitwise operators. So I have written a very basic code that will allow me to see the conversion of any decimal number in binary format.[code]Notice here that I am using SByte as the paramerter - which should only contain 8 bits right? However, the message box that appears has 16 bits assigned to negative numbers.
View 1 RepliesI created a Windows service to upload files from client to a shared folder on a server having a shared permission with everyone has a full control over it using Microsoft BITS service, this service runs with the local system account. The issue is that BITS jobs always get cancelled and I don't know why.I'm using this code
Try
Using BITSManager = New System.Net.BITS.Manager
For Each sItem In arrlDriversFilesUploadList[code]......
I am trying to write an app to automate several things that I have to do on a new computer once I have deployed an image, hoping someone could give me some pointers for them:-
1) changing computer description - wmi perhaps?
2) changing computer name - again wmi perhaps?
3) changing permissions on an existing registry key to full control
4) changing the "time to display list of operating systems" when booting from 30 secs to 3
5) turn off simple file sharing
6) and setting current user account so that password doesn't expire - at moment I do it from cmd prompt and do "wmic useraccount where "name='name'" set passwordexpires = false
7) change power plan settings so put the computer to sleep is "never" on both battery and mains
value = CInt(&HB)
Dim b As New BitArray(BitConverter.GetBytes(value))
Dim sb As New System.Text.StringBuilder
[code]....
I have a byte array with 512 Elements and need to get and set a single bit of a byte in this array.The operation must not change any other bits, only the specified one.So if I have a byte like &B00110011 and would like to change the third bit to 1 it should be &B00110111.
Like this:Dim myarray(511) as byte myarray(3).2 = 1 ---> This would change the third bit (start counting at 0) of the third byte to 1 I know it should be easily possible using bit-masking but I don't have the time to try for days to get it working.