|
SetActivateWindow function returns the same window handle
Krishnakumar
|
|
|
|
|
are you sure?that means your window is active.
|
|
|
|
|
maybe you can use SetFocus.
|
|
|
|
|
Tried.
Still dialog has no focus.
Krishnakumar
|
|
|
|
|
try to use the SetForegroundWindow.
|
|
|
|
|
Icon in the task bar is flashing...
Krishnakumar
|
|
|
|
|
|
SetForegroundWindow() is working fine in my sample application. SetActiveWindow() only activates the window if the calling thread is foreground thread. Please see the KB http://support.microsoft.com/default.aspx?kbid=97925
|
|
|
|
|
Hi, i would like to use this function but it keeps comming up with undeclared identifier ?? how can i get rid of this ??
Thanks
Lee
|
|
|
|
|
It's guarded by a compile guard...
#if(WINVER >= 0x0500)
WINUSERAPI
BOOL
WINAPI
AnimateWindow(
HWND hWnd,
DWORD dwTime,
DWORD dwFlags);
#endif /* WINVER >= 0x0500 */
So identify the correct windows version.
Probably #define WINVER 0x0500
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
hi, thanks, i just found that, changed the winver to 0x0500 and it works.. thanks again
Lee
|
|
|
|
|
Hi,
We are having some query regarding window2K.
I have an application that is working well in WindowXP Enviornment from last 3 year.This application is using VC++6.0 compiler for building application.
Now I have shifted this application building process from VC++6.0 compiler to VC++7.0.Net compiler.Now its working well in WindowXP environment.
But Its having some crashes while executing the application in Windows2K environment.
I read from some of the sites that we need to install Win2k in the following order for shifting application to Win2k.
1. Install Win2K
2.Service Pack 4(SP4)
3.Windows Installer 3.1.
4. copy vcredist_x86 file in Visual studio environment.
Is this neccesary to install software in the order as given above for proper execution of the code in Win2K environment?
or is there some other problem.?
Please reply as soon as possible.
Sandeep
-- modified at 6:31 Thursday 25th May, 2006
|
|
|
|
|
Well I am not sure? Just having a go at it.
What version of windows is mentioned during compile time of the application. Is the correct version specified. I guess you compiled it for XP right!
Why don't you try recompiling it in 2K environment.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Can you tell me what is need to do to sort out this problem.
Thanks
|
|
|
|
|
Hi mate - Its a funny world. You have a problem for a few days so you post a question on a forum. Suddenly, you solve the problem - just like going to the doctor. You suffer anmd suffer, then you go their and u feel better just befopre appointment.
Sorry pal - i have removed the question. The solution was that a release operation on a bad pointer was omehow affecting the reference count of other objects.
Thx,
John-Paul
|
|
|
|
|
elimn8or wrote: Sorry pal - i have removed the question. The solution was that a release operation on a bad pointer was omehow affecting the reference count of other objects.
Why did you remove the question! It should have been there. It's very bad that people post question and when they get the answer they delete it. Someone else could have learned from your mistake. Imagine everybody here doing it.
Now even if you are specifying the solution here people won't know what you are talking about. No problem anyway.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Hi there-
Sorry all about removing my question - i solved MY QUESTION literally 10 minutes after i posted the question, so, i did not want to leave it posted incase i waisted time of others - sorry - i will know better next time. Also it appears another thread has spilled over into this thread.
|
|
|
|
|
Hi,
As i mentioned earlier.Its crashes only on Win2k.However in WinXP It works fine(Even in release version).I think your answer is quite out of the way.
Thanks
|
|
|
|
|
whats question!?
whitesky
|
|
|
|
|
My question is just regarding visual c++.Net.
I have an application that is working well in WindowXP Enviornment from last 3 year.This application is using VC++6.0 compiler for building application.
Now I have shifted this application building process from VC++6.0 compiler to VC++7.0.Net compiler.Now its working well in WindowXP environment.
But Its having some crashes while executing the application in Windows2K environment.
Can you exactly tell me how to trace out this problem.
Please reply as soon as possible.
|
|
|
|
|
Do you get error?what
whitesky
|
|
|
|
|
Its crashes with error message "invalid memory access voilation" when executing the application in Windows2K environment.Crashes are not consistent.So it was not easily tracable.
-- modified at 10:01 Thursday 25th May, 2006
|
|
|
|
|
Hello Members!
I'm trying to use Requery in MFC. But it's not working at all. I've used dynaset too so that I don't need to use it. But that's also not working. That's why, I've to face a lot of problems in doing software properly in MFC . Can anyone please give me the solution? It's really very urgent. Please do help me if anyone can.
Best Regards
Jolly
|
|
|
|
|
Jolly Hasan wrote: I'm trying to use Requery in MFC. But it's not working at all.
Which is meaningless without providing the code you are using and what problem(s) you are having with it.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi,
can any one tell how to read Windows NT Quota stream through Window NT Quota API. i have used these interfaces
IDiskQuotaControl
IDiskQuotaEvents
IDiskQuotaUser
IDiskQuotaUserBatch
IEnumDiskQuotaUsers
to get any specific information related to quota of user on NTFS. But i want to read Quota Data stream. (Like, to read standard data stream, alternate data stream etc on NTFS, we use BackupRead). Is there any Api through which we can read Quota data stream.
Touseef Afzal
"I only fail when i give up "
|
|
|
|