Use Unsafe Code In Program?
May 6, 2011I would like to know the VB.NET equivalent of the following C# [code]...
View 2 RepliesI would like to know the VB.NET equivalent of the following C# [code]...
View 2 RepliesThere is an FastBitmap class for C#, that lets you acces and modify pixel information of am bitmap. I have already used it in some C# project, but I need it now in VB.NET. The problem is that that class uses unsafe code, that is not supported in VB.NET.
Can I compile the FastBitmap class in a dll and use it in VB.NET?
[EDIT]
Or is there some library that can be used to modfy pixel data in VB.NET?
I've written C# class library and included it to my VB project. Everything works ok, unless I can't use my unsafe function... It's really important to have this unsafe function, through I wrote it to increase bitmap processing speed. So, how can I use it? When I try to type its name, IDE tells me, that it isn't member of that class.
View 4 RepliesI'm wondering if it is possible to write the code for the button so that, when pressed by the user, it would add whatever text is in the text box to the list box and change the code of the form load to add that text to the pre-existing listbox.items.add's that are in the code of the form load.
View 2 RepliesThe program has errorhandle and write log function, however, it could not catch the error message in the program.
The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9
I downloaded vb but i cant put in src ccode.
View 7 RepliesHow can i convert this to vb.net?
View 4 Repliesallow the user to enter a stock transaction and determine the stockbroker's commission. Each transaction includes the following data: the stock name, price per share, number of shares involved, and the stock broker's name. Assume price per share = P. The stockbroker's commission is computed in the following manner: If the P (price per share) is less than or equal to $50, the commission rate is $0.19 per share, if P is greater than $50, thecommission rate is $0.26 per share. If the number of shares sold is less than 150, the commission is 1.5 times the rate per share. Display the results in a message box, including the total commission earned.
View 2 RepliesIt can be compiled successfully in C#[code]...
Is it the language difference between c# and vb.net?
How can i covert this C# Code to VB.NET Code?
"Here's the code from kaymaf's first post. I used a website to convert it from C# to VB.Net. If you can't get it to work, post again and we'll try something different."[code]...
View 6 RepliesI need to convert following code block from C# to VB.NET.[code]....
View 4 RepliesThis is code in vb.net
Protected Overrides ReadOnly Property CreateParams() As CreateParams[code]...
Convert following code from C to program? I have a feeling it would be pretty simple.[code]..
View 1 RepliesHow do I convert the below PHP code to VB.NET?[code]...
View 4 RepliesCan I convert my VB code to C++? [code]....
View 2 RepliesI want to create a program using vb.net code.What I mean is: write all the files necessary to be able to compile it to a .exe-file. Is there any way of doing this?And what is the easiest for the form creation? Winforms or WPF?
View 2 RepliesI am an OLD programmer, basic, Pascal, c, FORTRAN, and haven't programmed for about 15 years.I am now taking on a challenge to develop a reporting tool for my Exchange 2007 group.I am currently stuck on snippet of code that returns the result of a simple SQL Query.I am using VS2008 and developing in VB.The database that the program will front end for is SQL 2005.All variables not explicitly declared are globally declared.[code]No matter how I try to recover the information, I have even executed it as a stored procedure; I get the wrong value returned.I believe that it is caused by the use of the .executeNonQuery() command as the results are either 0 or -1.Can anyone verify this for me and explain what I should be using to return the correct value (33) from the query.I am trying to return this value to terminate a loop that I will execute to fill a list of the exchange mailbox servers in a form to add new exchange servers.
View 4 RepliesI have been searching online for an answer for this question, but cannot find anything useful in my case. I added deployment to my project, but I want that deployment to copy JavaScript files to a certain dynamic location. The only way I can think of is having the deployment call my function that I can write in VB.net.
View 1 RepliesIm doing a small project in visual basic which involves lighting up leds through the parallel port and turning them on and of. each led is controlled by a checkbox on my form and they only come on when the checkbox is checked i currently have this code
[Code]...
I don't know if this is possible I want my program to execute certain code before it will close even when the x is pressed is that possible. Because its leaving streamreaders open.
Timer1
Open sreamreader etc
So the timer is set to 100ms to constantly update the data waht happens is its leaving it open when someone closes it during its cycle.
How can I include a Java code with VB.NET code?
View 1 RepliesI am not trying to make this a hard! How do I?
View 2 Repliesthe program compiles properly, however during the saving and loading part of the code, "btnSave" and "btnLoad" subs, the program only saves the data from one of the text boxes even though it should loop 4 times.
Public Class Form1
'Declarations
Dim intEmployeeAdded As Integer = 0
Dim strSelectedName As String
[code]....
Some time ago, I did some F# programming, the following code is used to serialize/deserialize float32 array:#light
However, nowadays, I have to do some programming in VB.NET to serialize/deserialize float32 array again. As F# programming is not suitable for GUI, but GUI is necessary for my current programming.I want to know how I can rewrite the above code in VB.NET.For example, I have a float32 array, (I dont know what data type in VB.NET is equivalent to float32 array in F#) of (1.0, 2.0, 3.0); I want to serialize it using DataContractSerializer, then read it back so I can still get the same float32 array.
The same code is being run in 2 different programs to fill an JanusSystem multiselect combobox.
Code:
Private Sub Tasks()
****************************************************************************
' Description: Load the combo box for Tasks
' Created by: LMarshall
[code]....
I am unable to determine why it is a problem in one program and not a program in the other one.
A problem developed in a program after some changes were performed. It runs the previously good program. Is it possible to get back the good program's code?
View 2 RepliesFor example, if on form load Button1 was created, how would I make this button function?
View 2 RepliesIf I add let's say 1 line at the beggining of a method, if I set a breakpoint through Visual Studio on the first line, will it point to the first line or the second? If it will flag the wrong line, is there anything we could do when editing .exe files to ensure a regular debugging session later?Isn't there something like setting line x to be Y? I remember seeing something like that somewhere, not sure if .NET related or not.
View 4 RepliesI have java script in my page and i want to call it from vb.net code behind from function AND didn't want to call it (onload or onclick or any similar event) but i want to call it from function doing looping.so it will be run more one time
View 2 RepliesCode to make a program in visual basic that converts your weight from Earth to you weight on the Moon.
View 3 Replies