Call A Perl Script From VB With Parameters

Oct 5, 2011

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 Replies


ADVERTISEMENT

Call A Perl Script With Parameters?

Feb 1, 2009

Call a perl script from vb.net with parameters

View 2 Replies

Call Perl EXE From .net?

Aug 10, 2009

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.

View 1 Replies

How To Call The Constructor With Parameters

Jun 1, 2010

I am stuck with a problem about generic classes. I am confused how I call the constructor with parameters. [Code] I get error in the starred area of the DBLayer Object. What might be the possible reason? what can I do to fix it? I even want to add New(byval someval as datatype) in IDBObject interface for overloading construction. but it also gives an error? how can i do it? [Code]

View 4 Replies

Call A Method Which Has Two Parameters Using Thread?

Jun 8, 2009

I am trying to call a method which has two parameters using thread. How can I do this? If I pass parameter to my thread.start() method, it is giving error.

View 1 Replies

Adding Multiple Parameters In Thread Call?

Feb 2, 2010

I want to add a parameter to my thread call here is the code. I want to call th.Start(True, sender.Text) and Count(ByVal isRunning As Boolean) will then become Private Sub Count(ByVal isRunning As Boolean, Byval strID As String), but I can't do that. So how can I make this thread accept 2 parameters?

Private Sub btnStart1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart1.Click
th = New System.Threading.Thread(AddressOf Count)
th.Name = "Button1"
th.Start(True)
[Code] .....

View 4 Replies

Calling A Vb Function With Optional Parameters With A C# Call?

Nov 3, 2010

I am interacting with VB code on a different tier, using a client-side c# program. The VB function signature looks like this:

Public Sub toggleExclusion( _
ByVal mouse As Double, _
ByVal study As Integer, _

[Code]....

I get an error saying no overloaded method of toggleExclusion takes 2 arguments?

View 3 Replies

Use Class To Store The Parameters BEFORE Call A Method

Jan 5, 2012

A friend in work suggested the use on classe to store the parameters BEFORE call a method. He's said this is called "Abstract Class". My "know how" of VB.NET is small... so, I want to know of you what mode is the best way: Call a function/sub like that:

[Code]...

View 3 Replies

Calling Perl From VB?

Apr 19, 2010

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 Replies

Convert From Perl

Mar 25, 2011

does anyone know a good tool - convert perl script to vb.net?

View 1 Replies

Run Perl Script And Detect When It's Done?

Jul 16, 2010

I'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].....

View 9 Replies

Using Perl Regex Constructs?

Jul 24, 2010

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 Replies

Java - Perl Script In Background?

May 26, 2010

I 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 .

View 2 Replies

Perl - Convert Code - 2010 ?

Oct 6, 2011

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:

View 1 Replies

Simple Text Processing Task In Perl

Feb 25, 2012

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)

View 2 Replies

C++ - Call An *.exe-file Through A *.dll-file And Submit Parameters?

May 21, 2012

I'm trying to start an *.exe-file with the help of a *.dll-file instead of calling the *.exe-file directly. It will be used for a program that is able to start *.dll-files, but not *.exe-files.In this case: The browser.exe is written in vb.NET and the browser.dll file in C++ (I could not find any dll snippet for vb.NET).The code-snippet for the browser.dll (MFC-DLL) that has been generated by VS2008 and has been modified a little bit by me looks as follows:

[...]
CBrowserStartApp::CBrowserStartApp()
{
system("start .\browser.exe");

[code]....

I can compile it without errors. there's an error message if I start the dll with Rundll32.exe and add any parameter. Then the program starts, but the error message is still there. It says something as "Error in browser.dll. Missing Content v" if I start it with "Rundll32.exe browser.dll v". If I leave out the parameter "v", nothing happens. Neither an error appears nor the actual application.

I have is as follows: Usually I start the *.exe-File with parameters such as a URL [URL]. How can I add such URLs to the *.dll-file? The same trick as for usual program (e.g., args = Environment.GetCommandLineArgs())? How can I access them and take them forward to the actual *.exe-file then?

View 1 Replies

Lock / Prevent The User From Opening The Perl File / Code

Dec 15, 2011

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 Replies

Write Code To Compile And Execute C,c++,c#,java,perl And Python Programs?

Jun 13, 2009

I'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 Replies

C# - Search For Names In The Database That Matches Whole Parameters Or Any Part Of Parameters

May 13, 2011

I'm writing a query to select all records that has any part of parameter. I have one table called Employees. Some people have name like this: John David Clark If the parameter is

[Code]....

I should be able to get result back as long as there's a match in the parameters. If I use Function Contains (q.FirstName & " " & q.LastName).Contains(employeeName), I will not get any result back if employeeName is "John Clark" Function Contains looks only for next words from left to right. It doesn't match a single word at a time. So that's why I used this in the Linq to SQL:

[Code]....

View 2 Replies

Error [07002] The # Binded Parameters < The # Of Parameters Makers

Aug 30, 2010

I am getting error [07002] the # binded parameters < the # of parameters makers, i checked both parameters were perfect even though i am getting this error here is my code

[Code]...

View 1 Replies

C# - Difference With Parameters.Add And Parameters.AddWithValue?

Feb 6, 2012

Basically Commands has Parameters and parameters has functions like Add, AddWithValue, and etc. In all tutorials i've seen, i usually noticed that they are using Add instead of AddWithValue.

[Code]...

since it saves my coding time. So which is better to use? Which is safe to use? Does it improves performance?

View 2 Replies

Get The GET Parameters And POST Parameters In Just One Function?

Aug 6, 2011

is there a way to get the GET parameters and POST parameters in just one function or Collection in ASP.NET? Like using $_REQUEST in PHP? I'm using VB.NET.

View 3 Replies

.net - Cannot Call Stored Procedure From Code Which Works On Direct Call To Database

May 17, 2011

I 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.

View 1 Replies

Call A Dynamic Compiled Func(of ) Function Via Expression.Call?

Mar 22, 2012

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).

View 2 Replies

VS 2010 : Convert A DLL Function Call Which Has The Callback Function Routine Called Within The DLL Function Call?

May 25, 2012

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.

View 15 Replies

Call C# Form - Call The Form Called 'main'

Sep 22, 2010

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 Replies

C# And .Net Out Parameters?

Aug 8, 2011

I've got a project in c# which is making use of another project written in vb.net. I am currently able to modify both.I've got a method in the VB project like:

Public Sub MethodName(ByVal param1 As String, ByRef param2 As String)
param2 = param1 + 1
End Sub

I am not able to call this method using the out keyword from C#:

public void CallOtherMethod()
{
string param1 ="test";
string param2;
provider.AddTransaction(param1, out param2);
}

Shouldn't the ByRef keyword in VB.Net have the capabilities of both "ref" and "out"?

View 4 Replies

SQL Parameters From .NET?

Mar 30, 2010

I have this function to retreive stuff from a database. I don't know how to send SQL parameters to the database from VB.NET in combination with using SqlDataAdapter instead of DataReader. Help?

Public Function GetCountriesTable(ByVal continent As String) As DataTable
''----------------------------------------------------------------------
'' TODO: Risking SQL injections here?

[code]....

The line "query" doesn't look good to me. Is this where I'm opening up for SQL injection attacks?

View 5 Replies

.net - Control Parameters In Asp.net?

Aug 8, 2011

I am using searching grid view using control parameters but in my code i search only text but not integer values. So i want to search integer values using control parameters please give a code..

My code is :

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="GridviewwithHighlightedSearch.aspx.vb"
Inherits="GridviewwithHighlightedSearch" MasterPageFile="~/Default.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" runat="Server">
<style type="text/css">

[Code]...

View 1 Replies

AddHandler With Parameters?

Nov 26, 2010

problem with AddHandler with parameters.

i've create a control, here is the code:
Public Class myWorker
Public Event Complete()

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved