Call Perl EXE From .net?
Aug 10, 2009I 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 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'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 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 Repliesdoes anyone know a good tool - convert perl script to vb.net?
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 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 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 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 RepliesI connected to the Informix server using RazorSQL, created a stored procedure and tested it, getting the expected answer, so the procedure exists in the database in some form.
I then run the following code:
If ConnectToInformix() Then
Dim cmd As New IfxCommand("dc_routeHasOutstandingQuantity", conn)
cmd.CommandType = CommandType.StoredProcedure
[Code]....
This error does not occur when calling the stored procedure from a live SQL connection.
I want to create an ExpressionTree where a Func(of Vector, Vector, Vector, Vector, Double, Double, Vektor) should be called. So I use
Expression.Call(Forces(0).Function.Method, {Vec1, Vec2, Vec3, Vec4, Double1, Double2})(Vec1-4, Double1-2 are declared as ParameterExpression and Forces(0).Function as Func(of Vector, Vector, Vector, Vector, Double, Double, Vector). But I get an AgrumentException, because Forces(0).Function.Method has seven Arguments. (System.Runtime.CompilerServices.Closure as seventh argument at Index 0).
I am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:
typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);
[code]....
how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
View 5 RepliesDLLs in .net are treated differently than in C++ and other programming languages.When you create a class library project in VS (for either VB or C#) you are creating a DLL. In order to call/use that DLL in another project you have to add a reference to your new program.Go to Project > Add Reference..., or right-click on the project that needs to use your DLL, and click "Add Reference...".
After a short wait you should see an Add Reference dialog box.There are several tabs across the top but each of the components that is listed in a tab represents a DLL. If you expand the "Path" column in the .Net tab you will see the DLL location.If your two projects are in the same solution, you should probably go to the Projects tab and add the project that you need.If your dll project is NOT in the same solution as your project that needs to use the dll, then go to the Browse tab and find your compiled DLL from your DLL project. This will add the DLL as a reference to your solution.
Okay, this is my first newbie question so I'm sorry for this newbie question.I've look at Toolbox and I just can't find whatever this called.I don't even know what the name of it too so if anyone know what this called,
View 3 RepliesOK, I'm still trying to read EXIF information, and have found a DLL I want to try to do this - [URL] I've added the DLL to my project, but how do I actually include it and then us it. The example code I assume is C or something?
[Code]...
How to call a dll in vb.net?
View 3 RepliesHow can i call a sub from another sub? I tried Call MyButton_Click but it didn't work.
View 1 RepliesI creat one WEB project, this project contain tow WEB FORM, In the first Web Form Design i have tow TextBox for Entring the date(All dataTable between this tow dates) and one Button, I want that when i press to to this Button it will load the second WEB FORM and show all the Data Table in DataGrid In this WEB FORM, So i need To call this tow TextBox value from the first WEB FORM to the second WEB FORM In Load_Page i will use this tow value in select statment. So i want to know how to call this to value from the first WEB FORM. I'am using VB.NET WEB APPLICATION.i have allrady DB in SQL .
View 4 RepliesI am trying to call a php function from .net. I tried to a webrequest method but I am not sure how to specify the function to call in the url. A link below shows the method I am trying to call.[URL]..
View 2 RepliesI have a Visual Studio solution, containing .cs and .vb projects, as well as .aspx files. As usual, the .aspx files implement an ASP.NET site and make calls to the .cs and .vb projects.
Is it possible to do the reverse... i.e. make a call from a .cs or .vb file to a method in a .aspx file? (Assume for the purpose of this question that there is a good reason for doing this)
Which is the best way to call remote dll? Where can i find examples for this?
View 1 RepliesHow do I call/use a VB6 dll in VB.NET application? Welcome to the All-In-One Code Framework! If you have any feedback
View 1 RepliesI have created a new Class Library in visual basic and called it 'TestDLL'. I have a TestDLL.vb file where I put in this code
Class TestDLL
Function ReturnHello() As String
Return "Hello"
End Function
End Class
Then I clicked on the build tab and built the solution. I then copied the DLL 'TestDLL.dll' to C:TestDLL.dll
I am trying to use that DLL in a console application. I have tried this code but I get an error: System.EntryPointNotFoundException was unhandled Message=Unable to find an entry point named 'ReturnHello' in DLL 'C:TestDLL.dll'.
Declare Function ReturnHello Lib "C:TestDLL.dll" () As String I have added TestDLL.dll to the references for the console application and got that to work, however my goal is to load and unload different .dll files without restarting the application. I have a lot more code besides this, but I'm just trying to find out what commands I could use for just calling functions from DLL files.
There was something I was reading about assemblies, but all I get that to do is list the classes in my dll file. I will already know all the names and locations of the .dll files, and also the class and functions that they contain, because I will be building all of them. how I can get a simple function return in my console application.
I actually have a menstrip with sub-menu ... File > Service >>> Products
My aim is to add a uri to products so that when on click on product the particular web service will be invoked.
My question is only How Can I add a URI with Products on click ?
I'm making a button via images, which changes appearance as the user uses the mouse. For example, when the user clicks on the button, the image changes into the button being "pushed in." My problem is that when the user presses the button and releases the mouse I want it to go back to the image when the user is just hovering over the button. This only happens if the cursor is move off the button and then moved back onto it. I'm trying to call the event/sub where the mousehover event is used in order to get it to change back to the desired image. How do I call this event and/or sub in order for it to work?
View 2 RepliesI have an extension method written in visual basic as follows:
Imports System.Runtime.CompilerServices
Namespace Parsing
...
Public Module CSVParse
[code]....
Unfortunately the compiler is giving a 'Cannot resolve symbol' error for 'DoVB()' and highlighting it red.Yet it will recognise the call in a static fashion.
CSVParse.DoVB(test);