|
Hello,
I have an application that monitors phone calls,
when a new call arrives I'm opening a new tab on my PropertySheet using AddPage and then SetActivePage.
What happen is that when the application is minimized and a new call comes in, I'm losing focus on what ever i'm working on, (playing a game / word / writing this message).
I don't want to change the application so it will not Create the window when the application is minimized, it is very important that all works the same even if it is minimized.
Is there a way I can create the page, but not set it to SetActivePage? or to do it but without losing focus?
Thank you.
Rami.
|
|
|
|
|
Ugly, but...you could try disabling your property sheet or window it contains when adding a new tab and then re-enabling it, maybe by using this with SetRedraw() to avoid flickering...since disabled windows probably are not allowed to get the focus.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
m_sheet.EnableWindow(FALSE);
m_sheet.SetActivePage(m_pCalDlg);
m_sheet.EnableWindow(TRUE);
And problem is solved !!!
I can't describe to you how much efforts I wasted on this
Thank you very very very much
|
|
|
|
|
Yourwelcome, i'm glad i could help.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi,
I have a .reg file which copies some menu items as keys in the registry. My dll collects all of them and show up on right click if i selected any thing on the explorer.
How to make my 32 bit com dll works in 64bit machine? I recompiled in 64 bit machine using visual studio 2008. It did not show up the right results. it is not showing up any menus on the right click.
Thanks in advance.
Regards,
|
|
|
|
|
|
thanks. I am facing a different problem.
when i am registering dll in vista 64 bit as administrator user i am getting the following error
call to DllRegisterServer failed with error code 0x80020009
when searching in the google it says that permission problem. What is that exactly? how to resolve?
Thanks in advance
Regards,
|
|
|
|
|
Can you run the program as administrator?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Hi,
I run the program as administrator. Then I tried compiling solution in the vista 64it. It gave “error PRJ0019: A tool returned an error code from "Performing registration"”. When I comment the following code
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return _Module.RegisterServer(TRUE);
return TRUE
}
it compiled successfully. This is com dll which is working fine in 32 bit.
what should i do now?
Regards, Subramanyeswari
|
|
|
|
|
This could be some dependency issue. Check the dependecy of the DLLs/components associated with this COM DLL and ensure that it's built using 64 bit environment. Check with Dependency Walker[^]tool ( 64 bit version is available).
Also try manually using regsvr
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Hi,
Thanks for your suggestion. I ran dependency walker in 2003 64 bit for my dll. it displayed two errors in the following dlls
DEVMGR.DLL
DWMAPI.DLL.
it says "error opening file". Don't we have these dll's along with 64 bit 2003 os?
Regards
|
|
|
|
|
I don't know about DWMAPI.DLL but the other one should be there in the system folder. Do one thing, in the 32 bit system, try to track down, from where these files are getting resolved using depends. Then you can try the same thing in 64-bit environment also
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
thanks.. i will do that now.
|
|
|
|
|
|
I can't figure out what's really happening there. The IContextMenu inteface should work well with your application. Have properly set set _WIN32_WINNT and WINVER macros? According to your target OS?
Using the Windows Headers[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
is this the following code that i have to make in stdafx.h
#ifndef _WIN32_WINNT NTDDI_VERSION
#define _WIN32_WINNT NTDDI_VISTASP1
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0700
#endif
after making the above change i am getting the following error
error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h
it is failing here
#if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
#error _WIN32_WINNT settings conflicts with _WIN32_IE setting
#endif
I am working on vistasp1
what could be the problem
Regards
modified on Friday, February 13, 2009 10:22 AM
|
|
|
|
|
I am also facing same issue...I have ported my activex plugin to 64bit by compiling with x64. it has created .ocx file as well as .dll file.
Created cab and inf file to install my activex plugin.
When i install it crashes.
I ran dependency walker on .ocx file it says
two dlls not found...
devmgr.dll dwmapi.dll
please let me know how to resolve....
|
|
|
|
|
Hi,
TO run a web application with 32bit dll in an 64 bit server, just in the IIS, "enable 32-bit application" to true for the application pool. This seting will work almost all servers expect SBS server.
|
|
|
|
|
hi experts please let me knowhow to create a dll's in vc++ 1.52
kir_MFC
|
|
|
|
|
Why don't you use a more recent compiler?
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 all,
How can I set a partition as active partition using c++ code?
Is there any API or function to do that?
Please guide me with your comments.
thanks.
|
|
|
|
|
I suspect DeviceIoControl[^] and the IOCTL_DISK_SET_PARTITION_INFO_EX[^] control code may point you in the right direction. I don't know if they'll actually let you do what you want, though - that function may only be accessible through lower level NT functions that are (publicly) undocumented, or documented in the device driver documentation?
In fact, looking a bit further, I suspect IoSetPartitionInformationEx[^] is probably the function you need - but that's part of the NT API, not the Win32 API.
|
|
|
|
|
how to get the list of software programs installed using c?
|
|
|
|
|
The details of all installed applications are stored in registry under,
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Since you have a preference for C Compiler, You can use plain windows api to read the registry and populate the list. This article[^] will be helpful.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Googling[^] would lead you to an article[^] on a useful programming related site called CodeProject.com - you may have heard of it.
|
|
|
|