|
Yeah already did that. Thanks though. I guess the best thing I can do is use a media manager instead of windows explorer.
Found on Bash.org
[erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
|
|
|
|
|
How do I automatically execute a program(in linux) when a usb pen drive is plugged into the PC. I cannot install any software on the machine before plugging in the usb drive.
|
|
|
|
|
You need to change the udev[^] scripts that take care of mounting the USB drive. You need root privileges and you must do it before plugging in the pen drive.
|
|
|
|
|
i cant understand.. so pls tell in brief..
|
|
|
|
|
if u r root user then open file
# vi etc/fstab & first mount that USB drive permanantly so u need not to mount that drive again & again
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
i have to create an application in Mac Os using carbon. how to get this carbon. is this a free software or license based. i need some details. if anyone can please reply asap. thanx in advance.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Carbon is one of Mac OS X's core API sets. You don't need to obtain anything other than the development tools.
Since this is a very Windows-centric site you're unlikely to get much help here. Try reading the 'Getting Started' guide on http://developer.apple.com/[^] and reading http://developer.apple.com/carbon/[^].
|
|
|
|
|
Hi! how to give a VPN connection between Client and server using Tunneling protocol.
|
|
|
|
|
how to provide VPN connection?
|
|
|
|
|
how to provide VPN connection between client and server?give coding
jeevitha
|
|
|
|
|
In VC++,how to provide VPN connection between client and server?
|
|
|
|
|
I think you should post your question in VC++ forum[^]. Than you might get faster reply to your question.
|
|
|
|
|
|
Hi,
1) when i say i wish to backup my OS, what all do i need to backup apart from files and folders on C:\? like resgistry or anything?
2)When we backup the registry are all environment variables backed up automatically? or do we need to back them up separately? If yes, how do we backup env variables?
Please help.
Thanks in advance,
Manasi
-- modified at 4:28 Saturday 27th January, 2007
|
|
|
|
|
The easiest way is to use Norton Ghost.
|
|
|
|
|
bsaksida wrote: Norton Ghost.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
When you set up a backup job in Windows you have the option to save 'System State'. This will make a copy of the Registry and any other critical system settings. See the online Help for Backup for details.
"...a photo album is like Life, but flat and stuck to pages." - Shog9
|
|
|
|
|
Hi ! I have an application (a game in C++ with DirectX) where the player can change the size (property) of the client area. Ex: He has a screen about 1440x900 pixels, he can setup his client area (the game) in a 800x600 window, 1280x1024, etc. My PROBLEM is when the player size DOWN the client area (like... from 1280x1024 to 800x600), we still have the old "Picture" around the new client area of 800x600. The software still runs without any problem but windows don't refresh the screen (the other software or the desktop background.
Is there any way to say to Windows OS to refresh all the screen or fire an event to all software to refresh there view ?
Than you.
Danny Gilbert, enginneer
Montréal, Canada
|
|
|
|
|
This has more to do with how you've written your game than telling Windows to repaint everything. Without knowing what you mean by "size DOWN to client area", or how you're accomplishing this or anything else about your code, there's really nothing we can tell you. There is no method of telling Windows to repaint everything. Windows already know stuff needs to be repainted, normally it's just a matter of giving Windows the time to do it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
My code is like the following:
1- Change property of the client and the window
2- Destroy old scene, free memory
3- Resize
4- Create new scene
5- SetWindowPos
bool CGameEngine::ChangeWindowsSize( int NewWidth, int NewHeight )
{
// Windows
SetWindowLong( m_hWnd, GWL_style, m_dwWindowstyle );
// Resize window and put it on left-top corner. Player will then move
// the window where he wants.
m_WindowsWidth = NewWidth;
m_WindowsHeigth = NewHeight;
m_rcClient.left = 0;
m_rcClient.top = 0;
m_rcClient.right = m_rcClient.left + NewWidth;
m_rcClient.bottom = m_rcClient.top + NewHeight;
m_rcWindow.left = 0;
m_rcWindow.top = 0;
m_rcWindow.right = m_rcWindow.left + NewWidth;
m_rcWindow.bottom = m_rcWindow.top + NewHeight;
m_MiddleX = m_WindowsWidth / 2;
m_MiddleY = m_WindowsHeigth / 2;
// Destroy object in the old scene.
switch ( m_ActualScene )
{
case MAIN_MENU:
m_pSceneMainMenu->DestroyFinal();
SAFE_DELETE( m_pSceneMainMenu );
break;
// ... other scene
}
// Resize the screen like the user wants.
if( FAILED( m_pGraph3DEngine->Resize( m_WindowsWidth, m_WindowsHeigth )) )
{
return false;
}
else
{
switch ( m_ActualScene )
{
case MAIN_MENU:
m_pSceneMainMenu = new CSceneMainMenu( this );
m_pSceneMainMenu->SetRatioWindow( ( float)m_WindowsWidth/(float)m_WindowsHeigth );
m_pSceneMainMenu->Create();
break;
// ... other scene...
}
if( FAILED( SetWindowPos( m_hWnd, HWND_NOTOPMOST, 0, 0, NewWidth, NewHeight, SWP_SHOWWINDOW ) ) )
{
ErrorExit("SetWindowPos");
}
return true;
}
return false;
}
Danny Gilbert, enginneer
Montréal, Canada
|
|
|
|
|
This stuff just sets the window position and size. How about this. Does you game engine hog the CPU? You can find out in Task Manager. If the CPU utilization is pegged at 99-100, then Windows isn't getting any time to have the other application redraw themselves. Your have to modify your engine to be a little more friendly with the rest of teh system.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yes ! You are right. It only sets the size and the position of the windows inside the current desktop. IT TAKES 99% of the CPU. I never checked that before with any software I wrote... and I don't know why !
I design most of my time embedded application, so this is always the only software in the system. Some time, I design software for windows like TOOLS and other little stuff. GAMES is my home project.
Is there something with the Windows Message loop ? Can I give sometime "the hand" or the control to the OS for a little time slice (for other software) ? How to do that ? Reducing cpu use about 5%, Is-it enough for Windows to update the screen, etc.
In embedded system, I always try to don't use more tha 50-70% of the CPU time but with Windows, I was sure that Windows CONTROLS/HANDLE it for us. I never get involved with this issue on Windows.
You are right, my GAME use 99% of the CPU. What to do ?
Thanks.;)
Danny Gilbert, enginneer
Montréal, Canada
|
|
|
|
|
Anyone notice that apps compiled on .NET 1.1 or 2.0 can run really quite slowly on Vista?
Have one app in particular, and running side by side on two machines (Win2K and Vista), it runs like a complete dog on Vista, gobling up CPU time. Both machines are the same spec, dual core, and have 2GB of memory, so I don't think its a machine performance problem, not meeting Vista specs.
|
|
|
|
|
Disclaimer: I'm not running Vista. However, I know a little about it.
If you're using the Windows Aero interface, try switching to the Windows Classic theme. Does that speed it up? If it does, possibly you're falling foul of the desktop composition.
With the Desktop Window Manager turned on (awful name, that), 'classic' 2D UI (GDI, GDI+) is no longer rendered in hardware by the graphics card. Instead, it is rendered in software to an off-screen memory buffer[1], which is then used as a texture on the '3D' object making up the window itself. Whenever you make a change, the texture has to be updated. This is different from classic GDI rendering, where the pixels were updated directly (with any regions obscured being clipped out so you didn't paint over a different window). This does mean that if a window is moved over yours, no WM_PAINT messages are sent.
See here[^] for some details on what's happening with GDI windows.
If I recall, the recommendation is to ensure that you're doing all your painting in WM_PAINT handlers, i.e. OnPaint in .NET, and simply using Invalidate to cause a callback to OnPaint if you need draw anything at any other point. That basically means that anywhere you use Control.CreateGraphics is suspect.
You should probably also be looking to make the minimal update required rather than completely redrawing a window.
If you're just using built-in controls then there possibly could be a problem with .NET itself.
It sounds like the hardware is pretty much up-to-date, but you should check whether the systems have integrated graphics (i.e. graphics implemented in the chipset using part of main memory for the video buffer) as this does have poor performance generally.
Or, of course, I could be off base entirely and it's got nothing to do with graphics!
[1] It's possible that some cards might support doing it in hardware, but I think current cards can't use their 2D acceleration hardware while the 3D APIs are in use, even if the driver model supported it, which I don't think it does.
|
|
|
|
|
Its a matrox workstation graphics card. I did wonder if it was something like sub optimal 64bit graphics drivers.
I'm using the Aero, but the one below it as I'm on the business version - does not support Aero. Could not see any difference between it and clasic.
This is all food for thought. Will look at how things are being drawn. I'm using a third party graph control, but do have the code for it. Will have a look at how its rendering itself. There are a number of different graphs that are on different tab conrols, and I wonder if even though they are not visible, by being stacked, they are all rendering themselves now. If so thats a problem.
Thank,
Giles
|
|
|
|