|
WebPartsStart wrote: Can any one help me in finding how does Windows OS update the computer display?
And can we get the updated area on screen?
Do you mean update the driver of computer display adapter? If so try to use device manager in the hardware tab of my computer property.
|
|
|
|
|
Assignment
Write a program in C++ and WIN32 api to implement an unnamed pipe. program should contain two threads ("producer" and "consumer") communicating through a pipe which is implmented using an array having 10 entries( ie 0 to 9). access to the pipe should be synchronized using a semaohore implemented as a " class" .The "p" and "v" operations supported by the semaphore should be exucuted "ATOMICALLY" Which is enforced using WIN32 API functions (e.g the createsemaphore funtion).
NOTE The P and V are the only operations supported by the semaphore class.
The poducer thread gets an integer ( a single digi, 0.....9) from the user and enqueues it into the pipe . The consumer thread always dequeues the first number in the pipe toward the front of the pipe after an item has been deposited ( by the producer) or consumed ( by the consumer)
We should use another "class" (ie the pipe class) to implement the pipe supporting operations " enqueue", "dequeue" and "move". The fisrt two operations have to be synchronized using the semaphore shown above (operation"move " is not because it is invoked by the first two operatios which can directl acces the shared pipe)
Note that your pogram should also be able to take care of the conditions when the pipe is either empty or full.When the consumer thread detects an empty pipe ,it prints a message to the screen.similarl when the producer thread detects afull pipe ,it prints a message to the screen too.
Note also that you should alwas delay the consumer thread by three 3 seconds by inserting a "sleep3000)" (without qoutes ) function into the appropriate place in the consumer thread.
The producer thread shold also show the contents of the pipe after a number is enqueued .
The consumer shouls aslso show the contents of the pipe after a number is dequeued .
The following shows the scenario of running program, where user inputs are underlined
enter a number: 5the
contents of the pipe (from the producer):bbbbbbbbb5
enter a number:2
the contents of the pipe(from producer):bbbbbbbb25
the contents of the pipe (from consumer);bbbbbbbbb2
enter a number:7
the contents of the pipe (from producer):bbbbbbbb72
the contents of the pipe (from consumer):bbbbbbbbb7
enter a number:
the contents of a pipe ( from consumer):bbbbbbbbbb
... an empty pipe is detected (from consumer):\\\
..................
|
|
|
|
|
You'll need my paypal details and $100. I recommend doing your own homework, however.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi
I have an 80GB hard disk that is made into only one primary partition (NTFS).
now I want to create a secondry partition and sub-devide this logical partition into 3 logical partitions as I can make using FDesk under DOS.
but I want to do this using windows (or a 3rd party tool running on windows) and if possible without restarting..
Any suggestions ?
|
|
|
|
|
If you don't mind losing the data currently on the partition, you can repartition a disk using the Disk Management component of Computer Management (in Administrative Tools).
However, I think you're saying that you want to repartition your only hard disk. For that you'll need something like PartitionMagic[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thank you
but PartitionMagic needs a restart and actually partitions the HD under dos..
|
|
|
|
|
You cannot change the size of your system partition while Windows is running. You will have to restart.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
Why dont you try Nortons utility symante. I dont rem the name; but I am very sure that it DO provide one utility to do what you exactly wanted.
|
|
|
|
|
Thanks
PartitionMagic is a symantec product
|
|
|
|
|
Use the programm ParttionMagic8.0
With this program u divide into parts ur HDD logicaly and u can see parts of the HDD without restart PC
|
|
|
|
|
Hello.
I am working on a sort of "PC monitor/assistant" application program (.NET on Windows XP) which detects visible changes in the appearance of windows associated with desktop applications. I have tried taking a snapshot of the desktop when my program starts, then periodically taking snapshots and comparing them with the previous snapshot via pixel-by-pixel comparison.
That method will miss important events and is computationally very expensive.
Perhaps a better way would be to detect invalidate, refresh, paint, etc. event messages being sent to the other application programs, but after having looked at Microsoft docs and Win32 API calls haven't found a way to do it.
If the second method is a good way to get the job done, how do I do that? I conjecture that "virtual desktop" apps do it, or something similar.
If that's not how it's done, how is it done?
|
|
|
|
|
Some time back, I was developing a similar application and had faced similar problem. Then, I had put up a similar question in CodeProject but under C# section.
Then I had recieved a reply saying that a development kit called MS-DDK (Miscrosoft Device Development Kit) provided the solution for this problem. Unfortunately due to lack of time, I had to live up with the computationally intensive method of doing this.
You can refer this DDK to accopmlish your objectives. I am just providing you a direction. I dont have any details regarding this since I have not worked in this.
Cheers,
Nagu
It does not matter WHAT you Say.
It does not matter WHEN you Say.
The only thing that matters is HOW you Say.
Cheers,
Nagu
|
|
|
|
|
Win XP Pro - Mesh Computers AMD64
Gets into a reboot loop after install. Tried selecting one of the safe modes from the menu it offers. Initially I could get to a list of system restore points. Tried a couple but no joy. Also tried running spuninst.exe from the command line to get into the sp2 removal wizard. That hangs on the first step - checking configuration (unless this is supposed to take ages).
Tried F8 to get into safe mode the usual way to try and get to the recovery console. I get an error: "Setup did not find any hard disk drives installed in your computer."
Tried getting into safe mode last Sunday night via an initial menu item. Succeeded eventually (you just get a black screen for a while). Tried various options as per MS KB 875350. All failed.
Then got a registry fix from Mesh for AMD64 chips.
Can now restart but was slow to get to login screen. But now I just get a blank screen with my default wallpaper. Ctrl+Alt+Del works to get task manager.
I work away from home during the week so won't be able to tinker again until tomorrow evening. Any suggestions welcome.
Kevin
|
|
|
|
|
Can you post the specification of your computer (RAM, HDD, CPU, size of partition...) on this forum??? Try to use the command Last known good configuration in order to restore the previous setting for your computer.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Things have moved on now. Did a rebuild from scratch with integrated XP SP2. Not much else installed yet other than Broadband software.
Basically, all uninstall, options failed.
Kevin
|
|
|
|
|
I need to close the system from my application, but before I wanted to send a message to the other processes so that they close.
With shutdown no problem, but I don't know as sending the message to the processes.
I proved with PostMessage(HWND_BROADCAST, WM_QUERYENDSESSION, 0, 0), but it didn't work.
Would somebody be able to help me ?
Thank in advance.
|
|
|
|
|
There's no need to do this. ExitWindowsEx will close any other applications running.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Mike & Faroqtam,
I need to give to all the other applications an opportunity so that they close about 20 seconds previous to the shutdown.
My problem is as notifying to the other applications.
Thank you for your answers.
|
|
|
|
|
Hi
u can close the system abnormaly by closing the Winlogon process .
when this process close the system will be halted and the system restarted.
On Earth nothing impossible,
while your mind running.
Faroqtam
|
|
|
|
|
Hi guys,
I would like to know how one can write his own boot-loader(for HDD)
so that when system boot:
(1) It will first search my exe in C:\
(2) Load it to some location
(3) CPU will execute it
(4) Then again it will proceed normally ;like giving user OS menu option etc
Please help me
Thanx in advance
Tom
|
|
|
|
|
My answer is similar to here.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
On my IE 6 Windows XP PC when even I click on a PDF link all I get is a little red box.
Are they a setting I need to make to download and open this pdf file.
Thanks,
grahamfff
|
|
|
|
|
Right click on the hyperlink then click on the command Save target as... from the context menu.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I need to execute a little utility on startup (which would not be a problem, as I could easily put a shortcut in tha startup-item folder) and on shutdown or logout. also I want the app to be executed once per day if the computer is not shut down. how do I do this?
|
|
|
|
|
swissglide wrote:
I need to execute a little utility on startup (which would not be a problem, as I could easily put a shortcut in tha startup-item folder) and on shutdown or logout
In order to run the program during that you start, it could do in many possible way. But I recommend you to use task schedule[^], in order to set the time to run during the computer start or schedule the task to run at the specific time.
And in order to run the task during the computer is shutting down, try to assign the shutdown script[^] for your computer.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|