473,326 Members | 2,337 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,326 software developers and data experts.

Calling another program

I have a central program I am starting to develop that will track processing
deviations. This program is VB 2008 and needs to be called from VB 2005
programs and VB2008 programs (we have some VB 6 programs as well but I these
are getting phased out). I need to call this program, pass the logged in
user name, and fill in essential data from the calling program into the called
program. I don't really want to create a deviation form for all the existing
programs, I would just like to launch this program and fill in the corresponding
data. The following will be a typical scenerio for the program, I have indicated
what I have done with (DONE) at the end of each line

The operator is using their program to enter production data. The program
is written in VB.NET 2005.(DONE)
During processing a processing deviation occurs requiring them to create
a deviation notice (EPN).(DONE)
From the program the user would click a button or a menu item called EPN(DONE)
The program would call the EPN program, and when it is loaded, fill in the
required data
The user would then enter the remaining data, add some attachements if necessary
and start a deviation process.
The EPN program would place the material in deviation status (DONE)

As you can see I need some suggestions on how to incorporate the EPN program
into existing .NET programs with little interference and updating.

Any suggestions, right now I am open to anything? I have looked a using
web services, command line launching, embedding the EPN program in all existing
programs.

John
Nov 7 '08 #1
2 2744
On Nov 7, 12:51*pm, John Wright <riley_wrig...@hotmail.comwrote:
I have a central program I am starting to develop that will track processing
deviations. *This program is VB 2008 and needs to be called from VB 2005
programs and VB2008 programs (we have some VB 6 programs as well but I these
are getting phased out). *I need to call this program, pass the logged in
user name, and fill in essential data from the calling program into the called
program. *I don't really want to create a deviation form for all the existing
programs, I would just like to launch this program and fill in the corresponding
data. *The following will be a typical scenerio for the program, I haveindicated
what I have done with (DONE) at the end of each line

The operator is using their program to enter production data. *The program
is written in VB.NET 2005.(DONE)
During processing a processing deviation occurs requiring them to create
a deviation notice (EPN).(DONE)
From the program the user would click a button or a menu item called EPN(DONE)
The program would call the EPN program, and when it is loaded, fill in the
required data
The user would then enter the remaining data, add some attachements if necessary
and start a deviation process.
The EPN program would place the material in deviation status (DONE)

As you can see I need some suggestions on how to incorporate the EPN program
into existing .NET programs with little interference and updating.

Any suggestions, right now I am open to anything? *I have looked a using
web services, command line launching, embedding the EPN program in all existing
programs.

John
Maybe I missed the explanation when I skimmed over your post, but why
couldn't this "central program" just be a dll (COM compliant for VB6)
that's referenced by the other applications?

Also, you say what you've looked at, but since you posted the question
I'm guessing you deemed them sub par. So would you mind explaining why
you don't like webservices, command line args, etc?

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Nov 7 '08 #2
Hello rowe_newsgroups,
On Nov 7, 12:51 pm, John Wright <riley_wrig...@hotmail.comwrote:
>I have a central program I am starting to develop that will track
processing
deviations. This program is VB 2008 and needs to be called from VB
2005
programs and VB2008 programs (we have some VB 6 programs as well but
I these
are getting phased out). I need to call this program, pass the
logged in
user name, and fill in essential data from the calling program into
the called
program. I don't really want to create a deviation form for all the
existing
programs, I would just like to launch this program and fill in the
corresponding
data. The following will be a typical scenerio for the program, I
have indicated
what I have done with (DONE) at the end of each line
The operator is using their program to enter production data. The
program
is written in VB.NET 2005.(DONE)
During processing a processing deviation occurs requiring them to
create
a deviation notice (EPN).(DONE)
From the program the user would click a button or a menu item called
EPN(DONE)
The program would call the EPN program, and when it is loaded, fill
in the
required data
The user would then enter the remaining data, add some attachements
if necessary
and start a deviation process.
The EPN program would place the material in deviation status (DONE)
As you can see I need some suggestions on how to incorporate the EPN
program into existing .NET programs with little interference and
updating.

Any suggestions, right now I am open to anything? I have looked a
using
web services, command line launching, embedding the EPN program in
all existing
programs.
John
Maybe I missed the explanation when I skimmed over your post, but why
couldn't this "central program" just be a dll (COM compliant for VB6)
that's referenced by the other applications?

Also, you say what you've looked at, but since you posted the question
I'm guessing you deemed them sub par. So would you mind explaining why
you don't like webservices, command line args, etc?

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
COM is right out. It is not a supported technology here. Command line is
an option we will pursue with the VB 6 programs. I know you can call Webservices
through VB but it was clumbsy and the programmers here could not support
it. As for the .NET I am creating a user control that will interface via
Web services to the EPN engine so they can drop the control in a program
and use it. I use web services and will use that in the .NET. Command line
args are okay, but it is just another point of failure should the command
line fail (rare I know, but it can happen). So for the VB 6 programs, it
will be a command line launch, for the .NET apps it will be a user control
and web services.

John
Nov 7 '08 #3

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

Similar topics

2
by: Shailan | last post by:
Hi Im having trouble with the following code that seems to be behave differently when called from the browser as opposed to the command line. The calling script is a cgi that forks, with the...
4
by: Paul | last post by:
Hi, In SQL Books Online in the section on @@Error it gives the following example: -- Execute the INSERT statement. INSERT INTO authors (au_id, au_lname, au_fname, phone, address, city,...
8
by: Vinod | last post by:
Hi, I have a problem, i am calling an exe from asp program. Its not working fine. When i execute the exe through the dos program directly i get the desired result. My exe will convert files in...
2
by: Giulio Belrango | last post by:
Hi I need someones help I'm working in an IBM 390 batch environment. What I'm trying to do is to call from a non DB2 COBOL program a DB2 COBOL program that will access a table and perform an...
0
by: szehau | last post by:
Hi all, I have a program written in C with embeded SQL. Following are the configuration: DB2/LINUX 8.1.5 Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) My problems...
5
by: Dave | last post by:
does calling a regular function cost any cpu time? In other words, is it faster to write the code of two functions into main(), or is it the exact same thing as calling two functions. I know its...
2
by: sumanthsclsdc | last post by:
Hello friends, I have a problem, I implemented a class which uses tkinter and displays the window as required, the class will create a window with listbox and inserts some items into it, I...
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.