473,499 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing data to a Process

36 New Member
Lets say I have a console application in C#. I want to start a new process, "devenv" and open a file, "helloworld.cs". This much is fine. But what if I want to pass some data, lets say before starting the process, I have an int with value 100 and when the helloworld.cs opens, it should point to the 100th line...any idea????
Jun 7 '07 #1
4 1420
Plater
7,872 Recognized Expert Expert
You want the code to start executing on the 100th line??

You can send arguments to the process (just like you would on the command line)
You can also grab control of the Standard In/Out/Error streams of a process you start.
Jun 7 '07 #2
chinu
36 New Member
You want the code to start executing on the 100th line??

You can send arguments to the process (just like you would on the command line)
You can also grab control of the Standard In/Out/Error streams of a process you start.
No i want the focus of the cursor to be on the 100th line
Jun 7 '07 #3
Plater
7,872 Recognized Expert Expert
What process are you starting?
If it's one of your own creation you can add that functionality in.

If you're starting like say notepad, you might have to do a DLLImport and use SendKeys to send like the down arrow key 100 times or something
Jun 7 '07 #4
chinu
36 New Member
What process are you starting?
If it's one of your own creation you can add that functionality in.

If you're starting like say notepad, you might have to do a DLLImport and use SendKeys to send like the down arrow key 100 times or something
I am starting devenv. Lets say when i click a button in my windows forms, i have a value 10 and i will open a .cs file in the devenv using Process.Start()..
but my question is how to pass that 10 to the devenv so that it can focus to the 10th line in the .cs file which is opened.
Jun 7 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
3120
by: Antoni | last post by:
Hello, I wondered if anyone could offer some guidance over my php script. I was hoping the example would allow the user to click the submit buttons and the item number increment. And when the...
11
6791
by: Mike M | last post by:
Is it possible? In the parent process, I have a socket that binds, listens and then accepts new connections (which creates new sockets in the process). I want to be able to pass some of these new...
0
1050
by: Naveen Mukkelli | last post by:
Hi, I want to setup a callback to process data received using TCP BeginReceive. Whenever new data is received, a callback method is invoked to process the data. Currenly, I have declared a...
22
25544
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
11
8091
by: John Pass | last post by:
Hi, In the attached example, I do understand that the references are not changed if an array is passed by Val. What I do not understand is the result of line 99 (If one can find this by line...
4
2698
by: assgar | last post by:
Hi I am stuck on a problem. I use 3 scripts(form, function and process). Development on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays...
10
2535
nathj
by: nathj | last post by:
Hi, Part of one of my current projects is to provide an application form. This form needs to get quite a bit of data, so rather than have one really long form on one page I have split the data...
2
4229
by: william.w.oneill | last post by:
I have an application that takes a few command line parameters. As recommended by others in this group, I'm using a named mutex to ensure that only one instance of the application is running. My...
8
3480
by: S. | last post by:
Hi all, Can someone please help me with this? I have the following struct: typedef struct { char *name; int age; } Student;
2
2343
by: DwBear75 | last post by:
I am contemplating the need for a way to handle high speed data passing between two processes. One process would act as a queue that would 'buffer' data coming from another processes. Seems that...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7229
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...
1
6905
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...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.