It is currently Wed Apr 23, 2014 3:21 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: My first Visual C++ Project.
PostPosted: Fri Aug 17, 2012 12:37 pm 
Offline
*Lifetime Patron*

Joined: Fri Apr 04, 2003 6:21 pm
Posts: 4247
Location: Undisclosed but sober in US
It's not "Hello World."

1. I have a C language CLI program that I need to start. Obviously I do this with CreateProcess, which there are many C++ examples out there, but little guidance for Visual C++. My test project is called "test" and the main form is "form1" (can you imagine?) So I find a CreateProcess example and it says place the declarations in the header file (.h). Uh all I have so far is form1.h, I don't see any form1.c file, and given the controls and their properties are in this file I think it will stay that way.

I am attempting to stay with Create Process because I need to send commands to this program at any time, not just at start up, I have not seen anything that indicates PowerShell can do this.

Anyway I'm looking to either start the CLI program with the form load or a button click, I frankly don't care which at this time. I'm assuming that's where the CreateProcess will actually reside, but what do I know?

2. I need to read share memory from this same program. This is something I haven't done in any language. I can't pass parms, as the shared memory area will be updated constantly and the Visual C++ program will have to continually poll it and read the updates.

3. And now the results. I need something that functions just like the CPU Usage History of the Performance Tab in Task Manager. The chart control seemed like the logical choice, but with the time progression I am not so sure. (I'll code the whole thing piece meal on a panel with lines and bars and stuff if I have to, I just hope I don't have to.

(The total elapsed time will be set/limited, so a track bar control can be attached and when the time has elapsed the user can still view all the results. The track bar is the least if my worries.)

Any help with any part is appreciated. It's going to be a long w/e.

Thanks

_________________
People who put money and political ideology ahead of truth and ethics are neither´╗┐ patriots nor human beings.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group