Why do you want to do that, TreeView is employs all the functionlality that tree control provides, If you do the samething you will comeup with ur treeview and will be doing the same thing.
So save ur time. If you are using MFC then make full use of it.
I want to migrate a windows application from one machine to another with its state intact.
I was thinking of doing this by saving the process address space (code, stack, heap etc) into a file taking it to the other machine and copying it onto the space of an identical application just started on machine 2.
Ofcourse I am assuming that the application does not have external dependencies like open network connections and file I/O happening. e.g word/notepad.
I am familiar with how to get the process table in Linux but need help badly for working with windows. How do you get the addresses of the process image? Any references... help would be greatly appreciated.
I was wondering if there was a way that I could find out when data was being sent and received by dial-up networking (RAS). I would like to write my own connection monitoring program but I am not able to find a RAS tutorial that will tell me how to do this. Please advise.
I need help!
Can you do for me please the most simple aplications that uses *ini files for a MFC application with multi-language suport?
Please, I really need this!
void main ()
Watch Watch_start, Watch_end;
cout << "Welcome to my program\n";
cout << "This program will tell you the difference in times you enter\n";
cout << "It will also convert the time of day, to military time\n";
cout << "please enter the time of day you started\n";
cout << "please enter the hours first.\n";
cin >> start_hour;
cout << "now enter the minute you started.\n";
cin >> start_minute;
cout << "now please enter the seconds you started.\n";
cin >> start_second;
cout << "now please enter the time you ended\n";
cout << "again, please enter the hour first\n";
cin >> end_hour;
cout << "now enter the minute you ended\n";
cin >> end_minute;
cout << "now enter the second you ended\n";
cin >> end_second;
int End_Hours = Watch_end.get_hour();
int End_Minutes = Watch_end.get_min();
int End_Seconds = Watch_end.get_seconds();
Hint#1: Don't post all of your code.
Hint#2: Don't expect anyone else to do your class assignment for you.
Hint#3: You want a difference in times. If you have h,m,and s, convert the whole thing to seconds (you do know how many seconds in a minute, right?), then subtract one time from the other, and convert back to h,m and seconds.
I think the easiest thing for you to do would be to just figure out how many seconds difference there is between the two times, and then convert that back to the proper time format for displaying purposes only. I'm confused about the hour variable. Is this military time that goes from 0-23, or does it go from 1-12? If this is military time, then your life is really easy. You don't even need an hour and minute variable in your Watch class anymore, just a second variable. Use the following as a model for getting your time (you really should have a function in your class which asks this
int hrs, mins, secs;
cout << "enter the hour\n";
cin >> hrs;
Sec = hrs * 3600;
cout << "enter the minute\n";
cin >> mins;
Sec += mins * 60;
cout << "enter the seconds\n"
cin >> secs;
Sec += secs;
There, now you have the time in the exact second of the day that you started. And you can do the same to get the second time...and I hope you can figure out how to find the difference between times...just subtract the seconds. Now, to display your time back in proper format:
I am trying to write a simple Windows program that monitors and logs the memory usage of programs or tasks in Windows. Basically, I want the information that the Task Manager gets so that I can watch for changes, memory leaks, etc... I am experienced in C++ but have yet to write a Windows application. Any help or information regarding how I might go about this project would be greatly appreciated.
i exactly dont remember the title of the book...but its of MS Press by Jeff Prosise for developing Systems internals...Its CD contains..alots of sample code like...Erro look up, SPY, MFC TRACER, MEMORY DETECTOR..thread and process viewer...
If till evening i get the name of the book, PINGO I shall be gald to let u know...
I have a problem. When I want to wait for a thread to finish processing, I use the WaitForSingleObject and pass it the handle to the thread I am waiting on. However, that thread never finishes, so my program just hangs. When I step through it in the debugger, it never seems to go into the function that I am waiting to finish, but I still have a handle to the thread, so I don't believe it has finished.
You have to set up some kind of singnalling system to tell your thread to finish. The usual way is to use an event, which your thread perodically checks and if its singaled, exits - something like this:
The threads handle will still be valid even when the thread has died (until you do a CloseHandle on it). To dermin if it is running or dead do WaitForSingleObject passing in 0 as the timeout - if you get WAIT_OBJECT_0 its dead, or WAIT_TIMEOUT its still running. You can also use GetExitCodeThread which will give you STILL_ACTIVE if the thread is still running - though WaitForSingleObject is generally prefered.
hi all really this site is so powerfull i mean it
well i want to capture an image from a camera the application is a dialog based application and i am using visual c++ 6.0 i wanna the view which camera get appear first and make the position nice then a button called capture when i clicked it it capture the image which in the view then open dialog for saving
Hope anyone help me by any ideas
Thanks man for replaying but wanna another question
i have read some of the article but my question is to capture a picture from a camera did i have to use directshow and PLZ some introductin of the directshow
thanks alot for replaying anyway i got a piece code it talking about a thing called VFW
and yeah man it will be a web cam i have got the sdk of directx but wanna to know is it easy to link it to a visual c++6
byebye for now
Last Visit: 31-Dec-99 18:00 Last Update: 29-Sep-23 4:11