C# Passing data to 3rd application program!

how to pass all the data from the c# to the 3rd app program.

Page 1 of 1

7 Replies - 2403 Views - Last Post: 02 October 2009 - 04:48 AM Rate Topic: -----

#1 dunk_6  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 43
  • Joined: 03-August 09

C# Passing data to 3rd application program!

Posted 29 September 2009 - 02:41 AM

hi all,

i have a 3rd application program and a c# program.

The 3rd app program need user to browse the filename, key in same password every time user need to upload the files.

The C# program is to get and save the folder source, destination path, and the password read from excel.

My question is, how can i pass all the data from the c# to the 3rd app program. what method should i used? any references are very helpful.

Thanks in advance

Is This A Good Question/Topic? 0
  • +

Replies To: C# Passing data to 3rd application program!

#2 JackOfAllTrades  Icon User is online

  • Saucy!
  • member icon

Reputation: 5669
  • View blog
  • Posts: 22,517
  • Joined: 23-August 08

Re: C# Passing data to 3rd application program!

Posted 29 September 2009 - 06:48 AM

Seems to me you would need to know if and how the third-party application can handle the data you're trying to pass it.
Was This Post Helpful? 0
  • +
  • -

#3 dunk_6  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 43
  • Joined: 03-August 09

Re: C# Passing data to 3rd application program!

Posted 29 September 2009 - 06:44 PM

View PostJackOfAllTrades, on 29 Sep, 2009 - 05:48 AM, said:

Seems to me you would need to know if and how the third-party application can handle the data you're trying to pass it.



I'm sorry, you mean? What should i know?

The program is the end-product and didn't come with the code documentation but it only have user guide. the guide also didn't mention running from the command line, where i suppose we can easy coded using c#. is this what u mean?

thx
Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1511
  • View blog
  • Posts: 5,916
  • Joined: 21-March 08

Re: C# Passing data to 3rd application program!

Posted 30 September 2009 - 05:04 AM

View Postdunk_6, on 29 Sep, 2009 - 09:44 PM, said:

View PostJackOfAllTrades, on 29 Sep, 2009 - 05:48 AM, said:

Seems to me you would need to know if and how the third-party application can handle the data you're trying to pass it.



I'm sorry, you mean? What should i know?

The program is the end-product and didn't come with the code documentation but it only have user guide. the guide also didn't mention running from the command line, where i suppose we can easy coded using c#. is this what u mean?

thx


yes, that is exactly what he meant. You can't just send data to another application. The other application has to know how you are sending that data and has to know what to do with that data. Without that documentation, you can pump all the data you want to the other application, but nothing is going to happen.

You need to contact the developers of the product and see if the product allows this. If the product doesn't allow it, it's a waste of time.
Was This Post Helpful? 0
  • +
  • -

#5 dunk_6  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 43
  • Joined: 03-August 09

Re: C# Passing data to 3rd application program!

Posted 30 September 2009 - 06:48 PM

Quote

yes, that is exactly what he meant. You can't just send data to another application. The other application has to know how you are sending that data and has to know what to do with that data. Without that documentation, you can pump all the data you want to the other application, but nothing is going to happen.

You need to contact the developers of the product and see if the product allows this. If the product doesn't allow it, it's a waste of time.


If that cases, I change my questions:

How can my program talk with backend program (ie 3rd application program) transparent to the user, to perform the tasks. And based on the data i captured using my c# program, given to use with that 3rd app program.

My C# program is just a frontend interface to automated the repeative task for keep manual operation from one source folder to destination folder to save operator time. I think is got something to do with windows automated task.


p/s: do i need to open new thread or keep posting here?
thankz

This post has been edited by dunk_6: 30 September 2009 - 07:52 PM

Was This Post Helpful? 0
  • +
  • -

#6 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1511
  • View blog
  • Posts: 5,916
  • Joined: 21-March 08

Re: C# Passing data to 3rd application program!

Posted 01 October 2009 - 04:51 AM

how is this 3rd application used? is it opened so that the user can interact with it? is it running as a service? is it not opened at all? if not opened, do you want to open it? does it support command line arguments? is it on the same PC as your application?

what is the purpose of the 3rd application? what is the purpose of your application? and how do those purposes relate?

there is no generic code for this. the code will be specific for this 3rd application.

what version of .Net are you using?

and yes, keep posting here. don't create another thread.

This post has been edited by eclipsed4utoo: 01 October 2009 - 04:51 AM

Was This Post Helpful? 0
  • +
  • -

#7 dunk_6  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 43
  • Joined: 03-August 09

Re: C# Passing data to 3rd application program!

Posted 01 October 2009 - 11:25 PM

View Posteclipsed4utoo, on 1 Oct, 2009 - 03:51 AM, said:

how is this 3rd application used? is it opened so that the user can interact with it? is it running as a service? is it not opened at all? if not opened, do you want to open it? does it support command line arguments? is it on the same PC as your application?

  • The 3rd app is an encryption program.
  • It was open by right click of the files/folders.
  • Found from registry that the program was run by .dll extension not exe
  • No, it not support cmd line only GUI
  • Yes, on the same PC.


Quote

what is the purpose of the 3rd application? what is the purpose of your application? and how do those purposes relate?

3rd application will start when user right click. From the GUI, user can select set the folder location to save, enter a password then click a button to run. The program will encrypt one file at a time and user need to set the destination and password every time use it.

My program is to make ease for the user by setting the default source and destination folder and only a password. it will save into a textfile(not sure yet. but it was saved into so that can retrieved later). it save user time so they dont need to enter same thing over again.

My problem is here:
I think(not sure) i must create a new program which will send info in textfiles (path and password), as input to that 3rd app. This new program will check if there is file in the folder, from the first file, run encryption until finish. It will be repeated until there are no files inside the folder(here i think automated task are use)

Quote

what version of .Net are you using?

Visual Studio c# 2008


I hope it is clear enough. thank you very much
Was This Post Helpful? 0
  • +
  • -

#8 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1511
  • View blog
  • Posts: 5,916
  • Joined: 21-March 08

Re: C# Passing data to 3rd application program!

Posted 02 October 2009 - 04:48 AM

from your description, you are going to have to get in touch with the developers of the encryption application. This won't be possible without their help since they will need to change their application to allow you to send data to it, or have their application read a text file that contains the destination folder and the password.

this is not going to be something you can just code by yourself. You will have to contact the developers because they will most likely have to make changes to their application(unless it's already there but not documented).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1