Read/write To Ruby Application And Vice Versa Using Memory Mapped Files?
Aug 1, 2011read/write from VB.Net to ruby application and vice versa using Memory Mapped Files?
View 3 Repliesread/write from VB.Net to ruby application and vice versa using Memory Mapped Files?
View 3 RepliesWe are trying to communicate between our two applications, One is in VB.Net and the other one is in ruby. We can easily communicate between two .Net applications but how to communicate between a .Net and ruby application? [code] After creating the Memory Mapped File through the above code how can we read/write it in ruby?
View 1 Replieshow I could go about making a simple little program in Visual Basic 2010 that has a button you click with drop down menu beside it to search for an excel or sql file on your computer and then you select it. Then you click a button saying "import into sql" or a different button saying "export to excel."
These buttons would of course do what they say... either importing the chosen excel file into sql or exporting the sql file into excel.
how can I download files from the Scanner to the PC or Vice Versa. I have spent an entire day trying to figure this problem out. I can exchange anything I want as long as I am connected to the WI-FI, the phone or Blue tooth but I cannot communicate with the PC from the Mobile or the PC to the mobile when the mobile scanner is docked.
View 7 RepliesI have created a structure with the following elements:
<StructLayout(LayoutKind.Sequential)> Public Structure person
Public userid As Integer
Public age As Integer
[code].....
seems a silly question but how do i change my IDE from C++ to VB and vice versa?
View 1 RepliesI need a function to convert Lat, Lon coordinated to/from MGRS.Is there a quick way to convert UTM to MGRS and vice-versa?
View 2 RepliesI made a small project that has two picture boxes available on the form. I can shift the focus from one picture box to another by clicking on it and type the letters in the picture box that has focus.
Here's the project on Skydrive (80KB)
[URL]
The problem I am facing is these picture boxes are already available on the Form. But I want to do the same for dynamic custom picture boxes something like
Dim picselected(10) As ZoomPbL
where ZoomPBL is my custom picture box and picselected is an array of those picture boxes.
I would like to convert a hexedicimal binary to UTF-16..[code]I am not reading the binary from a file, it is coming as query-string to my website..
View 2 Repliesbecause of the limitations of communication between projekts with on one side a .net2 and on the other side a .net4 program running on different computers . i was looking for a conversion of string to dataset and viceversa. i dont know if this is relevant for pure .net4 communication. with sockets strings are easy send and received in net2 and 4.[code]
View 12 RepliesASCII -> Hex would give
55 -> 35 35
Hex -> ASCII would give
U -> 55
how I should approach this?
Im getting a problem with one of my programs I have made in visual basic.NET where it gives me a memory error when i debug the program in the IDE. the exact error is this: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt". My program basically has a few forms with text fields on that get their text values from an access database on the same hard drive. Im wondering if im doing something wrong because my program just seems to eat up memory whenever it does anything. For example I have one form that has a combobox on it and when you change the drop down list selection it retreives a few strings from the database and puts them into the relevant text boxes, if you keep changing the selection then the memory usage (in task manager) just keeps going up and up. occasionally I get the error mentioned above when debugging but in my built version of the program it throws an exception everytime the memory usage gets past 49K.
Also I noticed when debugging in the "immediate window" frame I get the following message often:A first chance exception of type 'System. Invalid OperationException' occurred in System.Data.dll...Do I need to somehow be "releasing" the memory that is used to gather data once it becomes redundant?
I am using the following code
This error occurs :
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Public Class FormRegEnumValue
[CODE]......................
QuoteSystem.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System.Windows.Forms"
Im designing a web browser and i continue to receive this error after going to about 3 websites it crashes with that error.
I cannot use Visual Basic 2008 at all. When I go to "new project" and choose "Windows Form Application" I get this error.I have tried multiple uninstall/reinstall with no result.A microsoft reply to this suggested that I needed: " .NET Framework 2.0 Service Pack 1 " I checked, and I did not have the .netframework 2.0 service Pack 1.
When I tried to download and install the above from Microsoft.com, the istaller said that "it was not allowsed" and I was not able to install the service pack 1.
I tried Uninstalling net framework 3.5, 3.0, 2.0 and then reinstalling .netframework 2.0 sevice pack 1; then reinstalling Visual basic 2008 express edition. At the reinstall of Visual basic 2008, .netframework 2.0 sevice pack 1 is unistalled by .net framework service pack 2.When I check the foruims for simiar problems, the formus are mostly for Visual basic 5.0, or other programs that I do not have.
Here is the programs I have installed:
Operating system: Windows XP
Microsoft .net framework 1.1
Microsoft .NET framwork 1.1 Hotfix(KB928366)
Microsoft .Net Framework 2.0 Service Pack 2
[code]....
All the security updates and hotfixes for Widows XP.
I have two forms, Form1 and Form2. Form2 has a button to show OpenFileDialog. I call Form2 from Form1 by a button. My startUp Form is Form1. When i start debugging, i press my Form1's button to show my Form2, it shows, but when i click On Form2's Button to show OpenFileDialog it is giving me exception that
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
When i set my startup Form to Form2 and click Form2's Button to show OpenFileDialog then it shows!
I have 2 buttons they are button a & b in a form. The default button A is green ("ON") in color whilst button B is red ("OFF") in color. When i click button B, it will change the color from red to green, then button A color change from green to red. Vice Versa. Basically, it is to indicate a button has been clicked and green color is to indicate a button has been clicked.
View 1 Repliesvalue = CInt(&HB)
Dim b As New BitArray(BitConverter.GetBytes(value))
Dim sb As New System.Text.StringBuilder
[code]....
How to convert a array <-> string?
I've a bi dimensional array and i need to save to database and retrieve.
Dim myarray(,) as string = {{"some","some"},{"some","some"}}
How can I convert,Decimal -> StringString -> DecimalString -> HEXAny/
View 1 RepliesI need help creating a application that converts inches to feet and vice versa, this problem comes based off of this application I had to create to convert Fahrenheit to Celsius and vice versa--below is the first application. I get the basic idea of how to start, but Im having trouble with what I should put to start the conversion, what variable? Everything I'm putting in is coming up as error.
Option Strict On
Option Explicit On
Module TemperatureConverter
[code]...
Would anyone know how to convert any date first into a Saturday and then into yyww (weekyear) in VB.NET?
And vice versa, ie yyww into a Saturday?
How to convert string like "Nov 13 2011" to "13-11-2011" (or 13-11-11), or "13-11-2011" to "Nov 13 2011" ?
View 6 RepliesChange everything on screen thats black to white and vice versa?
View 5 RepliesWhen sending numbers over my server/client, I need to first convert them into strings and pack them together into larger strings, then deconvert them at the opposite end. I need to ensure that they occupy exactly the correct number of spaces in the string - for example I need an integer to use up 4 spaces. So for example, if I had a byte, then 2 integers, I need the first character to contain the byte, characters 2,3,4,5 to contain the first integer and 6,7,8,9 to contain the second integer. Then I can retrieve each number from the string using Mid(Position,Length) and convert it back to a number.I know how to convert bytes using chr and asc, but how would I convert my integers into my string and ensure they occupy the correct number of spaces in the string (and back).All the conversion methods I've looked don't seem to fit the bill. Will I need to write my own function to achieve this?
View 1 RepliesWhat is a code how to convert dotted decimal to binary and vice versa. and small explanation
View 1 RepliesI am reading and writing binary data through a serial port and must (a) reassemble the incoming four bytes that make up a IEEE single-precision float into an actual float, and (b) disassemble a float into its four constituent bytes before squirting them through the serial port.
I am using VB.NET 2008. In VB6, I could use the LSET command, as in:
Code:
Private Type typByteArray
B(1 To 4) As Byte
End Type
[Code]....
But of course this code won't work in VB.NET. In C it would be easy to handle situations like this by using unions, but VB.NET doesn't support them.
When I make an application on my PC which runs on XP Home Edition, then I send it to my friend who runs on Vista, the controls are sized a lot different on his PC, and also the same way when he sends his Apps to me. Is there any way to fix this problem?
View 5 RepliesI have two list boxes and first list box have some items and I want to drag and drop from listbo1 to listbox2.. Below code is working fine...Now I want to drag and drop items which is moved from listbox2 to listbox1..
Private Sub ListBox_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) _
Handles ListBox1.MouseDown, ListBox2.MouseDown
Dim lb As ListBox = DirectCast(sender, ListBox)
Dim ix As Integer = lb.IndexFromPoint(e.Location)
[Code] .....
I want to make a program that you can load a jpeg image and convert the image to binary data so that I can put it in a file along with a lot of other data. But I don't know how to change it to binary and back, I was told I would need to do this in order to merge multiple files.
View 1 Replies