|
I'm working on a program that basically sits and acts as a system monitor. Two of the primary things that I want it to do are monitor system memory and display when the last time a virus scan was made. Any suggestions on how I might go about this?
Thanks in advance
|
|
|
|
|
What do you want to know of memory?
|
|
|
|
|
DarthKarnage wrote: want it to do are monitor system memory
Can you explain what you mean by system memory? In windows everything is in terms of virtual memory, on 32 bit windows an application can technically can have 4GB(2^32) of memory, however normally your application have only 2GB unless you use boot parameter or Address Windowing Extensions to get more.
DarthKarnage wrote: display when the last time a virus scan was made.
There are different types of virus scanning: you can choose a file and run a scan only on that, or you can scan a drive or all the drives, or can always monitor the filesystem and scan only any new files getting created. This all depends on the settings you do on the antivirus you have on your machine. If you are expecting windows provide any APIs to get this information, I don't think there would be any.
-Suhredayan
|
|
|
|
|
Hello friends.
I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this?
I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else?
Thank you all.
|
|
|
|
|
You mean you need to have some kind of graph ?
If that's the case, take a look at my sig, I developped a chart control that could be usefull for you. If not, there a section on code project with different charting controls.
|
|
|
|
|
You can use Mapping Modes for the window.
|
|
|
|
|
As your question is very basic, I'm assuming your windows programming knowledge is minimal? Nothing wrong with that - we all started there.
But if so, you are probably biting off a little bit too much.
You are asking two non-trivial questions - how do I read in a file of comma separated values, and how do I plot them?
Is there any reason why you can't use excel for plotting these values?
If you really do have to write your own software, I'd follow the other suggestion and look at the charting controls here.
Iain.
|
|
|
|
|
Yes, I just started to GUI programing.
We have an image processing project, so these values are not excel values. Dynamically changing values created with other functions.
I am now thinking, I can create a BMP and show it in a picturebox. It'll be a easy way for me. (Because I'm experienced in image processing.)
I'll be asking more questions about these.
Thanks a lot.
|
|
|
|
|
Hello, how to get the accounts that appear on "Control Panel/User Accounts" dialog page? I tried NetUserEnum and the IADsUser interface but they return built-in accounts too. I need to get only the "human" accounts. Thank you.
Martin
|
|
|
|
|
Hi to all
I want to load multiple images at particular locations on a control using win 32 C++ and move that images without redraw the control or image.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
What control? your question is general not specific buttons? static control? you need to tree control listview listbox?
|
|
|
|
|
Hamid. wrote: What control? your question is general not specific buttons? static control? you need to tree control listview listbox?
I think he needs a mind control.
led mike
|
|
|
|
|
Hi
In any control (Like Picture box control) i want to load the multiple images. and move the images.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Each control has a method, for example buttons: you can use of SetBitmap but if you want to use of different states for a button up/down/foucs,.. you can use of CBitmapButton(however you can use of an image list for it) but generaly you can make a image list and then use of it for Comboboxs/buttons/treectrls/catctrls/ctoolbars,...
you can make a CImageList and then use of Add for insert image or images to list and then use of them.
|
|
|
|
|
Your question does not make much sense to me.
"I want to move an image, which means drawing it in a different place, without redrawing".
Are these controls under your own, erm, control?
If this is things on other people's software, than maybe you want your own non-rectangular window? Not easy, but far from impossible.
What is the end result of what you are trying to do?
Iain.
|
|
|
|
|
Hi
I want to load multiple images on any control and move images according to mouse movement. actually i want to create a application like Google map. so load images and move according to mouse.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
On any control?
Tough.
On a control, you write? Sortof easy. Just have to write a control that displays a background, with extra images on top. Then handle mouse messages, and move the extra images about.
None of that is high tech programming, just book-keeping and tedious -not-doing-something-dumb.
Iain.
|
|
|
|
|
Hi, I have data on device and i have data in SQL Server Database.
I want to compare the data on device with Data in database to make sure both are same after downloading data on device.
what is best way to do that.
How can i implement the checksum on SQL Server tables to compare with checksum of data on device tables. to make sure both data are same.
|
|
|
|
|
You may implement the checksum (the same of the device) in your code and use it with database values, the compare the result with the one stored by the device.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I have COM module which run as local server on invocation by the client.
I have Cisco Security Agent installed on my machine. When I run my client which onvokes COM module.I can run the requests and COM module will give the result. Once I get the result this COM module will be removed which is not suppose to. I cannot run some other requests again because COM module will not be there. This happens only with Cisco Security agent installed on the machine not even you need to run this service.If it just installed on your machine it gives you problem.COM module should go only when Client closes. IF CSA(Cisco Security Agent) is not installed on the machine this perfectly works fine.Any idea why this hehaves like this?
Please help me.
|
|
|
|
|
Hello,
I have the following code
class C
{
void* ptr;
CreateCombo();
};
C::CreateCombo()
{
CRect R(0,0,0,0);
CComboBox* Combo = new CComboBox;
Combo->Create(SIMPLECOMBOBOX,R,this,ID);
ptr = Combo;
}
Now I have a few values in this ComboBox (ptr)
How can I retrieve the values from the ptr?
Prithaa
|
|
|
|
|
Why don't you simply get the values from the Combo Box first and then store them in some appropriate variable after using GetItemData?
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
From the code snippet you've shown, there's no reason to have ptr . It serves no purpose.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
You have to cast the void* to a CComboBox*:
((CComboBox *) ptr)->GetCurSel () for example.
|
|
|
|