473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

pass string between two programs

i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send data to the c# program?

Thanks
Nov 16 '05 #1
5 2931
In general, you may look for the keyword "interprocess communication" (IPC).
More information is neccessary for any better advice; What kind of VB
program is this? Classic VB, VB.net, VBScript? How long is that string? Are
the processes always on the same computer?

Niki

"equip200" <eq******@discussions.microsoft.com> wrote in
news:0C**********************************@microsof t.com...
i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send
data to the c# program?
Thanks

Nov 16 '05 #2
With a little more details about the applications in question, we may be
able to help you.

1) what are these programs? Are they both stand-alone apps? Is either one
aware of the existence of the other?

2) do you own the source to both? In other words, if you need to modify one
or the other, can you?

3) is this on a client computer (your workstation), all on a server, or is
one all on a client while the other is on a server?

4) Is it possible that one will be running when the other is not? We you
need to start one or both of the apps?

5) What is the business goal of moving this data? Are you automating a
"data-re-entry" process from one app to the other?

--- Nick

"equip200" <eq******@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send
data to the c# program?
Thanks

Nov 16 '05 #3
Hi,

To do that you will need some mechanism of IPC, if both programs are based
on .net you can use remoting, if not you still have several options,
including a TCP/IP connection, or named pipes ( not directly supported in
the framework IIRC )

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"equip200" <eq******@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send
data to the c# program?
Thanks

Nov 16 '05 #4
An OLE Automation interface... this nearly always means that the first
application exposes a series of COM components.

Your second app, that you wrote, can simply refer to those COM components.
(Add them to your references). Your .NET app will have access to the
objects, and can perform the activities that this interface allows.

Essentially, "passing" data is simply a matter of calling methods in the COM
components exposed by the first standalone app, and then using them in the
second one (the one you wrote). No need for IPC or web services, etc.

I believe that one of the other responses gave you a link to Microsoft
documentation on calling COM components from .NET. If not, google this.
There are hundreds of good resources.

None of this will make that particular COM interface clear. For that, your
best bet is to go to the company that is selling the app, and ask for a
programmers reference guide. The book may be dated (it will probably refer
either to VC++ or VB), but it will show you how the methods are used, and in
what order, to get the information you want.

Hope this helps,
--- Nick

"equip200" <eq******@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
in responf to your questions.
#1. The program that will be sending the data has this

Scripting support

program features OLE automation interface that exposes objects and methods that can be accessed from any programming language including scripting
dialects such as JScript (JavaScript) and VBScript. The scripting
capabilities allow you to automate time consuming database management
tasks. Using scripting you will be able to create automatic downloaders,
maintenance tools, and exporters customized to your specific needs.
They are both standalone app. they are not aware of each other.

#2. Ican get source for the sending app and i made the receving app. so yes.
#3. They are both on the same workstation.
#4. It is posible that one will be running and no tthe other, but i will start them up manualy. #5. The sending app is built to scan trough and find certain criteria and if something is true print it to a file. I would like to have it send it to
a program so it can process it insted of manual processing.
Hope this helps,
Thanks
"equip200" wrote:
i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send
data to the c# program?
Thanks

Nov 16 '05 #5
"equip200" <eq******@discussions.microsoft.com> wrote in message news:<26**********************************@microso ft.com>...
Thank you very very much, great clarification and to the points of interest . I belive i can go forward with this now. Thank again

"Nick Malik" wrote:
An OLE Automation interface... this nearly always means that the first
application exposes a series of COM components.

Your second app, that you wrote, can simply refer to those COM components.
(Add them to your references). Your .NET app will have access to the
objects, and can perform the activities that this interface allows.

Essentially, "passing" data is simply a matter of calling methods in the COM
components exposed by the first standalone app, and then using them in the
second one (the one you wrote). No need for IPC or web services, etc.

I believe that one of the other responses gave you a link to Microsoft
documentation on calling COM components from .NET. If not, google this.
There are hundreds of good resources.

None of this will make that particular COM interface clear. For that, your
best bet is to go to the company that is selling the app, and ask for a
programmers reference guide. The book may be dated (it will probably refer
either to VC++ or VB), but it will show you how the methods are used, and in
what order, to get the information you want.

Hope this helps,
--- Nick

"equip200" <eq******@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
in responf to your questions.
#1. The program that will be sending the data has this

Scripting support

program features OLE automation interface that exposes objects and methods

that can be accessed from any programming language including scripting
dialects such as JScript (JavaScript) and VBScript. The scripting
capabilities allow you to automate time consuming database management
tasks. Using scripting you will be able to create automatic downloaders,
maintenance tools, and exporters customized to your specific needs.

They are both standalone app. they are not aware of each other.

#2. Ican get source for the sending app and i made the receving app. so yes.
#3. They are both on the same workstation.
#4. It is posible that one will be running and no tthe other, but i will start them up manualy. #5. The sending app is built to scan trough and find certain criteria and

if something is true print it to a file. I would like to have it send it to
a program so it can process it insted of manual processing.

Hope this helps,
Thanks
"equip200" wrote:

> i would like some assistance on how to pass data or string from one vb

program to another c# program. can this be done with vbscript code to send
data to the c# program?
>
> Thanks



Anything you can do manually, you can automate with AutoIt

http://www.autoitscript.com/autoit3/

The forum is magnificent for help...

Lar.
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hong | last post by:
Hi Group, I hope I got into the right place. If I have two different C++ programs (exe). Is there anyway I can pass data (numbers, strings, etc) between the 2 programs (without combining into 1...
38
by: Radde | last post by:
HI all, Whats the difference b/w pass by ref and pass by pointer in C++ when ur passing objects as args.. Cheers..
7
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
0
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems...
21
by: vmsgman | last post by:
Here is a code sample ... int blah = ReadFile( defArray, defFileName, w, h); // Read File Contents into memory array and return for processing public int ReadFile( ref ushort nArray, string...
14
by: Abhi | last post by:
I wrote a function foo(int arr) and its prototype is declared as foo(int arr); I modify the values of the array in the function and the values are getting modified in the main array which is...
31
by: Sam of California | last post by:
Is it accurate to say that "the preprocessor is just a pass in the parsing of the source file"? I responded to that comment by saying that the preprocessor is not just a pass. It processes...
6
by: lisp9000 | last post by:
I've read that C allows two ways to pass information between functions: o Pass by Value o Pass by Reference I was talking to some C programmers and they told me there is no such thing as...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.