473,387 Members | 1,791 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,387 software developers and data experts.

Using CreateProcess in VB.NET

No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my VB code executes

It's driving me nuts!

Can anyone help

Just an "example" of the CreateProcess API actually working in VB.NET would be perfect if someone could refer me to one
Nov 22 '05 #1
2 3349
this has been multi-posted to numerious groups.
"cranker" <an*******@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com...
No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my VB code executes.
It's driving me nuts!

Can anyone help?

Just an "example" of the CreateProcess API actually working in VB.NET would be perfect if someone could refer me to one.

Nov 22 '05 #2
Is there any specific reason you are calling that API directly? You may want
to consider looking at the System.Diagnostics.Process class.

Rick.

"cranker" <an*******@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com...
No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my VB code executes.
It's driving me nuts!

Can anyone help?

Just an "example" of the CreateProcess API actually working in VB.NET would be perfect if someone could refer me to one.

Nov 22 '05 #3

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

Similar topics

7
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results....
6
by: david.humpherys | last post by:
os:winnt python2.3.2 I have a exe that dumps info to the command line. I want to run this process and capture the stdout into a file. I think i'm close... any help appreciated. dh...
2
by: cranker | last post by:
No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my VB code executes It's driving me nuts! Can anyone help Just an...
1
by: DOT NET JIM | last post by:
in VB6 the api declares the createprocess lbEnv var as any. When converted to ..NET is change the type any to Object. The problem is, what kind of object. I can not get the env variables set when...
1
by: Baskar | last post by:
Hi, My requirement is I have to run n number of precess in a loop. But all processes should run in a chained manner, I mean only after the previous process gets completed the next process should...
2
by: Owen | last post by:
I'm using an application (a Tcl/Tk app) that uses cl.exe to compile code in the background. One very annoying feature is that a DOS box is flashed to the screen and then withdrawn during linking. ...
5
by: Stefano Camaiani | last post by:
Hello, please someone have the working code on how to call the CreateProcess API in Vb.Net? I need to call the CreateProcess API directly and i should not use the Vb.Net Process functions like dim...
1
by: cranker | last post by:
No matter how I fill in parameters for the CreateProcess API, I keep getting a NullReference exception thrown at me when my code executes It's driving me nuts! Can anyone help?
0
by: Sasie7679 | last post by:
Dear All, We have a requirement to open any document with a specific application and display it within a OCX control (Example - word, excel, adobe reader, MSPaint, Photoshop etc). We are using...
2
by: uday code | last post by:
I am using CreateProcess(..) function for ftp process.It is working fine.But I want to know whether the file is transferred successfully or not. Presently CreateProcess(..) returning true eventhough...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.