Convert From Perl
Mar 25, 2011does anyone know a good tool - convert perl script to vb.net?
View 1 Repliesdoes anyone know a good tool - convert perl script to vb.net?
View 1 RepliesI am not familiar at all with perl but I am trying to convert some code over to vb.net (2010).
The bit I am stuck with is the following:
CODE:
A bit of code that uses the above data is:
CODE:
From my understanding they are something like structures or arrays in VB, would this be right?
If I am reading the code right than this:
CODE:
should equal to a two bye array of: "0x10, 0x01" - am I far off?
Would something like what I have below work? It seems a bit messy, there must be a better way to do it:
CODE:
I want to call perl EXE to process something within .NET and i need to get some results from the perl exe.
For example i am going to pass two array to perl exe and i need to return a array form perl.
I have created a GUI for controlling a device in VB.The VB GUI has a bunch of intelligence behind each button push to determine exactly what command need to be executed. he commands are then written to a perl file (the communication to theoard is in a perl package), and the script is executed. This works consistently for us, but has severe performance issues.he issue I have is that the underlying perl package can take up to 30 seconds to read into the perl interpreter.
View 1 RepliesI'm need to run a perl script from my application and detect when it's done. I plan to check if it's done with a timer so I hear I need to use WaitForSingleObject to detect it's finished
Secondly, this might be the wrong place but I'm asking anyway, I want to send the perl's output to a file so I can read it in when it's done but that part of it isn't working correctly, the exact same string typed into a cmd.exe window works correctly but the shell command still sends the output to the dos window and doesn't generate the file.
NOTE: This is just a test program, it's not how I'm going to do it in the real app.
Imports System.Runtime.InteropServices
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
In perl you can write $string =~ tr/[a,e,i,o,u,y]/[A,E,I,O,U,Y]/; for example. Is it possible to achieve the same "translation" effects with VB.Net regexes? PS: I'm not searching for a way to port this very example, it's more of a curiosity question :)
View 2 RepliesI'm using Visual Studio 08 and Vb.Net (3.5). I want to call a perl script. This perl script should get two values (that the user wrote into input-elements in the vb.net application). Then the perl script should return one or more strings (maybe a list or an array?). How can I do this?
View 1 RepliesCall a perl script from vb.net with parameters
View 2 RepliesI have a perl script i made to automatically telnet into different servers . but its interface is only command line. To make it more user friendly for general windows users , i need to make GUI for it . My idea is to make GUI in a language like VB,java ,etc and let that call perl script . my script will run in background in a command prompt and whatever the result it displays back in GUI.
Got some success. GUI in vb ,I run an instance of CMD in background ,run perl script in that .But that is wer program fails .As perl script runs in a thread for perl , i only get the output when script completes(rather say when it timeout). i need a mechanism where i can interact with the perl script , take output of script and show to user , then take input from user and so on .
I have a long string containing a bibliography, alternating between lines of paper-title/comma-separated-author-list, like the following:
Learning Programs: A Bayesian Approach
-P. Liang, M. Jordan, D. Klein
-Variational methods for a Dirichelet process
-D. Blei, M. Jordan
What I want is a list of unique authors (alphabetized by last name) and counts. In the above example it would be:
D. Blei (1)
M. Jordan (2)
D. Klein (1)
P. Liang (1)
i want to create an exe in vb.net by packaging few perl files along with it. when i am packaging those files i am able to hide those files by making the hide option true. but if the 'show hidden files' is selected those files will be visible. I want to lock/prevent the user from opening the perl file/code. want to know if there is any way to do it.
View 1 RepliesI'm trying to make a vb.net application that has got 2 textboxes, 7 radio buttons and 2 buttons(one named compile and the other 'run'). How can I load the content of a C/C++(or any programming language) file into the 1st textbox and on clicking the compile button, i should be able to show the errors or the C/C++ program in the 2nd textbox. On clicking Run, I should be able to show the output in the 2nd textbox. In short, I want to use the 2nd textbox as a terminal/console. The radio buttons are 4 selecting the language C or C++ or python or C# or java or perl or vb.R d compilers of all these languages present in .net?
View 2 RepliesSee where my vb.net equivalent of a working c# assignment statement is not working?
bytes(i / 2) = Convert.ToByte(hex.Substring(i, 1), 16)
Here's the c# followed by the vb.net function.
private byte[] StringToByteArray(String hex)
{
int NumberChars = hex.Length;
byte[] bytes = new byte[NumberChars / 2];
[CODE]...
And the vb.net that is throwing the error within the for loop
Private Function StringToByteArray(ByVal hex As String) As Byte()
Dim NumberChars As Int16 = CShort(hex.Length)
[CODE]...
my project was intially mandated to be done in c#.however a large contributor to the project wrote much of the business logic, which he knows well, in vb.net.How difficult would it be to convert the following c# code into vb.net.
[Code]...
i wanna try to convert this ASM code into vb.net or at least find a solution that will allow me to enable this script after creating a handle on a kernel32 process.
View 1 RepliesI am looking for some library or code that will allow me to convert mp4 video to mp3I want it to be for free and compatible with the latest .NET framework (4).Also, if possible, I am looking for a free ffmpeg wrapper than I can have in my vb.net application without trial or messageboxes.
View 2 RepliesWill Microsoft Visual Studio 2008 convert my app to an app I can use on the Internet. I've used it to help convert up from 2005 but I'm looking so save time in creating a web app version.
View 3 RepliesI developed a windows application in VS2008 as 2.0 . I would like to migrate to 3.5 . This really basic but how do I do that? It seems like I should just change a few parms somewhere, but I can't find it.
View 2 RepliesI have my running application in vb 6.0, & needs to convert in C# .Net platform
View 9 RepliesHow do I convert a hex to an int. I know:
Dim hex as String = "FFFF"
Dim int as Integer = Val("&h" & hex)
The problem is that it only returns a signed integer, so the example above gives -1 instead of 65535. Is there a way to make Val return a Long instead f.ex. , or an other way ?
as the title sayshow can i convert a bmp file to jpg file "real conversion not only changing the file file extension"or to a gif file
View 4 Repliestypedef
struct {
unsigned
long
[code]....
I was wondering if someone could convert the following to VB.NET.
[code]...
I have some C# source code that I got off the Internet and I want it in VB.NET. How would you convert it because I don't know C#.
View 4 RepliesI got this class parameters in C# and I can't convert one parameter to VB. [:(]
public static string PageLinks(this HtmlHelper html, int currentPage,
int totalPages, Func<int, string> pageUrl)
Is there any tools that I can use to convert c++ code into vb.net code?
View 1 RepliesHow can i convert doc in vb(windows application form) pdf format+free pdf generator can i download n can be used in vb.net.
View 2 Repliesconvert below code from C# to VB
protected void Page_Load(object sender, EventArgs e)
{
Validator1.Enabled = Request[DDL1.UniqueID] == "2" ? false : true;
}
I'm currently converting a VB6 app to vb.net 2010 and i'm struggling to convert the following code and was hoping that someone could assist me. Im rather new to .Net [code]...
View 3 RepliesHow to convert to jpg file to Pdf file using vb.net
View 3 Replies