How can I read the executed processes std out into my program?
In MyProgram.c I am doing CreateProcess("GetData.exe" ....);. GetData when run on a command line prints about 100 lines of data to stdout. When I run my MyPragrame.exe I want that data not going to stdout instead I want it to be saved
say in a buffer DataBuffer[100][100] assuming there are 100 lines whose strlen is 100. Can I do it? If so please help out. Thanks
MyProgram.c:
void
main()
STARTUPINFO si;
PROCESS_INFORMATION pi;
char DataBuffer[100][100];
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
if( !CreateProcess( NULL,
// No module name (use command line)
"Getdata.exe", // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi ) // Pointer to PROCESS_INFORMATION structure
printf( "CreateProcess failed (%d).\n", GetLastError() );
return;
Hi ananda,
I am moving your thread into the Visual C++Forum for
dedicated support. Thanks for your understanding.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Every attempted app installation results in the "waiting" mode icon on my home screen. How can I complete the install process? What am I missing?
Hi,
1) Forget downloading the application from the device, and instead download it through iTunes and sync to transfer the application to your iPhone / iPad.
2) Other way is: Go to Application Settings> Store and tap above the Apple ID to sign out. Restart your iPhone / iPad, go back to Settings> Store and sign. Tap the icon that was waiting to update the application. -
How can i view the Streams process through 10g OEM
I have successfully configured OEM on Oracle 10.1.0.3
My question is:
How can i view the Streams processes and queues so that i could monitor its functionality.
In 9i Java Console OEM I was able to monitor Streams using the <Distributed> tab but I don't find any such option in 10g. Please help.
Thanks in Advance.
Regards,
RajThere's a message on the Database Administration page of EM10g.
"TIP Use the Enterprise Manager 10g Java Console to manage Streams, Advanced Replication, Advanced Queues, XML Database, Spatial and Workspace."
At present there is no way through the EM10g Web Interface, and I understand the Java version which comes with 10g doesn't contain any 10g new features.
So I am still using OEM 9.2 in addition to EM10g
Thanks,
Alan... -
How can I interupt the download process and close iPhoto
how can I interupt the download process and close iPhoto
If you really want to quit, force quit (command+q).
-
How can I read the trace data into LabVIEW for E5071B
HI
I am setting up the measurement using vector network analyzer (VNA) E5071B controlled by NI 488.2. How can I read the trace data into LabVIEW and display on the graph? If anyone having an idea or know well about this process please give me the suggestion, I will much appreciate it.
Many ThanksYou want to start with the driver
In case you do not know it, you can do the driver search in LabVIEW from Tools>Instrumentation>Find Instrument Drivers. You might also want to bookmark the Instrument Driver Network for information on what a driver is and how to use it. -
How can we read the screen field values from the report selection screen wi
Hi expart,
How can we read the screen field values from the report selection screen with out having an ENTER button pressed .
Regards
Razzuse this code...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
**Read the Values of the SCREEN FIELDs
CALL FUNCTION 'DYNP_VALUES_READ' -
How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
Thank you!Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
How can I read the printer snapshot file printers.xml
How can I read the printer snapshot file printers.xml
XML files are typically viewed using a web browser.
Open the XML file and the default program should open it automatically. If you are prompted to select a program, use the option that lets you choose a program and brows through the directories for your browser (for example, use Internet Explorer, Firefox, etc.).
If need be, you should be able to right-click the file and select open with to choose the program to open it with.
There are other XML viewers out ther, but web browsers are typically the default as XML is a web language.
↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓ -
How can I read the EXCEL file while Program is running in background.
Hi all Expert,
How can I read the EXCEL file while Program is running in background.
Thanksyou need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
loots of information if you can search forum.. thanks -
How can i read the data fromtext fieldsin the form of bytes??
Hi friends,
How can i read the data fromtext fieldsin the form of byte string while using Socket connection.
I have two text fields. i need to send the data from the textfeilds to the server using a byte string.
Can anyboday help me???
KKDoes <cfdbinfo> work for Access DBs?
You might be better off asking this on a MS Access forum. It's more of an Access issue than a CF one.
Adam -
How can I read the image from database into form
hi everyone
if I have table like this
create table test
(id number(10),
pic long raw);
in this table record
in form If I have block non database
how can i read the image into non database item
I try with this code but no good
select pic into :photo from test where id=5;
photo its non database item kind image
how can i invoke image into item
thanks aloooooootHello,
You can't select image with select query. You need to create another database block from test table which has item binds with database pic column. Now in where condition in test block's property you have to write id=5. Change test block's properties UPDATE ALLOWED, INSERT ALLOWED, DELETE ALLOWED to NO. Only Query allowed property set to YES.
Now in your particular trigger write the code
GO_BLOCK('test');
Execute_Query;
please mark if it help you or correct
Regards,
Danish -
How can we stop the Collapse process in process chain.
hi
guys
How can we stop the Collapse process in process chain.if any one know's plz tell me
your regards
sureshHi,
All the above post duly suggest a the methods we usually follow to cancel a collapse request i.e sm37 ---> Cancel without core,but these solution only applies if we are running collapse as a seperate variant in the process chain, in case its running as a part of change run the all above process will lead to the locking of the target.
In that case if you could "lock the target" even before the collapse ran will result in the "Stopping of the collapse on the target automatically" .
As far as figuring out the exat job of the collapse, you can directly get the job details in the "display message' , context menu option of the "Collapse variant" in the chain, clicking on the batch monitor and then clicking on the job to get its detail,then going to the specific "Application server " via SM51 and cacelling the job.
Do check wearther the target is unlocked or not in sm12 if not then choose the object in se03 and select "Unlock".
Hope it will serve yoour purpose
Thax & Regards
Vaibhave Sharma -
How can I stop the install process?
How can I stop the install process? It tells me my disk is damaged and to restart and repair, but when I restart it tries to install again....it's a never ending cycle. I'd rather keep the system I have than continue this mess.
Hello Serau1s,
It sounds like you are installing Mavericks, and are being prompted to restart and repair your hard drive, but when the computer restarts it goes back to the installation process. The following article should help you get that disk repaired by getting you to the recovery partition, named:
Disk Utility 12.x: Repair a disk
http://support.apple.com/kb/PH5836
Print this help page so you can refer to it later. (You don’t have access to Disk Utility Help when you restart up your computer in the next step.)In the Disk Utility Help window, choose Print from the Action pop-up menu (looks like a gear).
Choose Apple menu > Restart. Hold down the Command (⌘) and R keys as your computer restarts.When you see a white screen with an Apple logo in the middle, you can release the keys.
Click Disk Utility, and then click Continue.
In the list at the left, select the item you want to repair. (Be sure to select an item that’s indented to the right in the list, not an item at the far left.)
Click First Aid.
If Disk Utility tells you the disk is about to fail, back it up and replace it. You can’t repair it.
Click Repair Disk.If Disk Utility reports that the disk appears to be OK or has been repaired, you’re done. Otherwise, you may need to do one of the following steps.
If Disk Utility reports “overlapped extent allocation” errors, two or more files occupy the same space on your disk, and at least one of them is likely to be corrupted. Check each file in the list of affected files. If you can replace a file or recreate it, delete it. If it contains information you need, open it and examine its data to make sure it hasn’t been corrupted. (Most of the files in the list have aliases in a DamagedFiles folder at the top level of your disk.)
If Disk Utility can’t repair your disk or it reports “The underlying task reported failure,” try to repair the disk or partition again. If that doesn’t work, back up as much of your data as possible, reformat the disk, reinstall Mac OS X, and then restore your backed-up data.If you continue to have problems with your disk, it may be physically damaged and need to be replaced.
Thank you for using Apple Support Communities.
All the very best,
Sterling -
how can i get the executing time of a IMAQ function.function could be IMAQ acquire IMAQ acquire.
Hello,
This question was answered under a different category, here is the link:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=5065000000050000004EBA0000&HTHREAD=000047694&UCATEGORY_0=_15_&UCATEGORY_S=0
Regards
Russell B.
National Instruments
Applications Engineering
Engineering Team Leader
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified Professional Instructor -
How can I read the PXI-Chassis-Type (LabWindows/CVI)?
How can I read the PXI-Chassis-Type?
I use in different test-stands different PXI/SCXI-Chassis for the same project. For example: Some test-stands have a PXI/SCXI-1052-Chassis, others have a PXI-1033 and a SCXI-1000 Chassis. Because I have to use different DIO-Ports (Ports 0.0, 0.1... are reserved for internal communication between the 1033 and the 1000-Chassis) I want to read the used devices.
I think one way is to use the registry-entries, but I'm not sure...
My current LabWindows/CVI- version is 8.5.1.
Thanks for your ideas!
Jagger_HKGHello Jagger_HKG,
you could use the NI System Configuration API.
Kind regards,
Robert H
NI Germany
Maybe you are looking for
-
I have been using my @me e-mail address with iCloud, and I received the e-mail today from Apple which says that I can now use an @icloud e-mail address. I clicked the provided link and followed the instructions. Using icloud.com, I'm able to choose
-
GR is not equal to contract call off quantity, what to do?
Hi, I have a contract (not a scheduling agreement) with 1000 PC and my call off is 40 PC per purchase order. When I receive 30 in SAP, my open quantity is still based on the 40. What is right, because I can receive the next 10 tomorrow. But when I kn
-
Hi - got this error today when loading my site at its new address. MuseJSAssert: Error calling selector function:ReferenceError: WebPro is not defined Try it yourself: thebigdivide.aaronbarn.com I'm in the process of moving my main business domain fr
-
Could you play a live stream from safari to apple tv without going through itunes?
could you play a live stream from safari to apple tv without going through itunes?
-
Hi guys, Some time I found a thread where, among other things, someone made a summary of the most updated drivers and the wifi one, for example, was way more reliable, etc. I would swear that thread was on this forum, but I don't seem to be able to f