|
I was stating the obvious, and I believe so are you.
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
DavidCrow wrote: One of the basic rules of physics states that no two objects can occupy the same space
I think you forgot to add: "at the same time"
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
|
Mohanraj D wrote: what should be done??
First try to give a correct description of your problem because it doesn't make any sense (and read the posting guidelines at the top of this forum). What is the exact error ?
|
|
|
|
|
I have some sympathy for them deleting their mess - but I'm always curious to see just how bad the question was...
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
|
Hi All,
Can any one Help me regarding the Mail Proxy.
Thanks
anubhava Dimri
919250168195
|
|
|
|
|
May be.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Or maybe not... Who knows
|
|
|
|
|
I think the answer is almost certainly yes, afterall the question was "Can any one Help me regarding the Mail Proxy". As to whether 'anyone' is here or is watching is another question.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Member 4542257 wrote: 919250168195
Is this your phone number?
|
|
|
|
|
|
|
hi,
I want to bring inactive application to foregound. I used setforegoundwindow but when i searched in the web i found it works upto windows nt. Then i tried to get the process id and used AllowSetForegroundWindow. but this is giving compilcation erros. I am using windows 2003.
Sny help is appreciated
|
|
|
|
|
Hi,
try using
SetForeGroundWindow then call SetActiveWindow
|
|
|
|
|
SetForegroundWindow works with NT 3.1 and later which includes Windows 2003 (NT 5.2).
|
|
|
|
|
Hi,
This is the code snippet
HWND aWnd =FindWindow ("Wmak Class",NULL);
BOOL atest =SetForegroundWindow(aWnd);
FindWindow is returning a valid handle but SetForegroundWindow is returning zero.
What's wrong with the code
Regards
|
|
|
|
|
The problem might be this:
(from the SetForegroundWindow() documentation)
Windows NT 5.0 and later: An application cannot force a window to the foreground while the user is working with another window. Instead, SetForegroundWindow will activate the window (see SetActiveWindow) and call the FlashWindowEx function to notify the user.
|
|
|
|
|
Thanks for your reply. The problem could be as you said. Is there any other alternate to bring inactive window to active window while working with another app?
Regards
|
|
|
|
|
I actually turn off this flashing setting in Windows so I never experienced this problem.
Try to google, there should be a solution out there.
|
|
|
|
|
venkat.kupunaram wrote: I want to bring inactive application to foregound. I
Does this help -> http://www.codeproject.com/KB/dialog/dlgboxtricks.aspx[^]
Look at the section -> How to steal focus on 2K/XP. There is a hidden bug corrected by one of the forum members.
Here is the correct one!
DWORD ForeGroundID = GetWindowThreadProcessId(::GetForegroundWindow(),NULL);
DWORD CurrentID = GetCurrentThreadId();
AttachThreadInput ( ForeGroundID, CurrentID, TRUE );
SetForegroundWindow();
SetFocus();
AttachThreadInput ( ForeGroundID, CurrentID, FALSE );
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
modified on Thursday, May 8, 2008 6:57 AM
|
|
|
|
|
Hi,
I am working on two applications. I want to get the handle of the inactive window. As i cannot get the handle of inactive window i am using setforegroundwindow. But in your solution how to get the hwnd parameter which i have to pass to setforegoundwindow and setfocus. I wrote the code like this. But it is not working as i am not able to get the hwnd paramter.
DWORD ForeGroundID = GetWindowThreadProcessId(::FindWindow ("Wmak Class",NULL),NULL);
DWORD CurrentID = GetCurrentThreadId();
AttachThreadInput ( ForeGroundID, CurrentID, TRUE );//Do our stuff here
BOOL btest =SetForegroundWindow(hWnd);
SetFocus(hWnd); //Just playing safe//Detach the attached thread
AttachThreadInput ( ForeGroundID, CurrentID, FALSE );
Regards
|
|
|
|
|
Dear developers,
I'm using the Testrunner which is delivered with the package of Cppunit (Version: 1.12.1).
All works fine, but I get memory leaks reported by the debugger after closing the test-application.
It seems that macros as "CPPUNIT_REGISTRY_ADD_TO_..." create some instances in background which are not cleaned up later.
Does somebody have some experience with this problem?
Kind regards
|
|
|
|
|
Hi all,
I want to get hard drive manufacturer name and slot information
whether it is primary master-slave or secondary master-slave using VC+
+.
I am trying to get these details by using win32_diskdrive class(WMI
classes). As there is one property of this class ie "manufacturer"
that give the name of hard drive manufacturer name. But when I execute
my program it gives "standard disk drive" instead of giving "seagate",
"samsung" or whatever it is.
Is there any setting that i am missing?
I am using windows XP Professional and visual studio 2005.
If there is any win32 api that can give me these information, Please
provide me the name of these api.
Please provide me some guideline.
Thanks in advance.
|
|
|
|
|
Since it is urgent, I suggest you a screwdriver.
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
|
|
|
|