|
Thanks,
Can I find the information you sent in the link, if not, do you have a sample manifest or a link that can help me write such a manifest?
Thanks again
|
|
|
|
|
If you have VC++ 2003 or above (I think 2002 as well but not sure) you will get a manifest file created for your app if you create an MFC doc/view and basically choose the defaults. If you are adapting this manifest to a VC++ 6.0 application, you will need to adjust the contents as needed since the internal name needs to match the app I believe.
It's pretty straightforward once you know that. This article helps when trying to use manifests in VC++ 6.0 for Vista compatibilility and/or XP/Vista Themes. The author has a sample manifest but you'll probably want to dig the security section out of the doc in the previous post or search for one here.
Help with manifests[^]
|
|
|
|
|
|
One more thing, Visual C++ 2008 has some built in wizard stuff to assist with the security section so this is getting easier as they move forward.
|
|
|
|
|
Thanks,
I am using VS 2005 which has the following format:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
should my Manifest look like this to take care of my problem?
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="requireAdminstrator">
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
///////////////////////////////////////
</assembly>
modified on Wednesday, November 19, 2008 2:00 PM
|
|
|
|
|
I'm thinking something like this (with "requireAdministrator" if desired)
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="asInvoker">
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
|
|
|
|
|
|
I just meant that for some security manifests, you'll want
<ms_asmv2:requestedExecutionLevel level="asInvoker">
and other apps you'll want "requireAdministrator" instead "asInvoker".
|
|
|
|
|
I'm creating some colored icons for a list view control, but the colors displayed on vista differ from the colors displayed on XP , or Vista 64 . Do you have any ideas? The colors are the same , but they repeat faster in the list
although the formula is the same: RGB( (p*12 + 128) % 256, (p*12+ 64) % 256 , (p*12) % 256 );
m_cImageList.Create(16, 16, ILC_COLOR32|ILC_MASK, 1, 1);
COLORREF cl = RGB( (p*12 + 128) % 256, (p*12+ 64) % 256 , (p*12) % 256 );
colors[p] = cl;
// AND mask - monochrome - determines which pixels get drawn
for( int j=0; j<32; j++ )
{
AND[j] =0;
}
// XOR mask - 32bpp ARGB - determines the pixel values
for( int k=0; k<256; k++ )
{
XOR[k] = cl;
}
icon = ::CreateIcon(NULL,16,16,1,32,AND,(BYTE*)XOR);
pDlg->m_cImageList.Add( icon );
DestroyIcon( icon );
pDlg->m_listFolders.SetImageList(&pDlg->m_cImageList, LVSIL_SMALL);
|
|
|
|
|
You say the colours differ, then you say they are the same. How are you determining that the colours differ?
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Is it possible to know if a control (label) is visible or not using WinApi?
We have to plug into our app with a custom application and need to know if a certain label is visible or not. I know you can show/not show it, but how to know what the state is?
thanks !
|
|
|
|
|
There is the obscurely named IsWindowVisible ...
It only tells you the visible flag state though - if a parent is hidden, this is too, etc.
Iain.
|
|
|
|
|
Looks like its working.
We were looking more at message types than real functions, that's why we didn't see it.
|
|
|
|
|
V. wrote: We were looking more at message types than real functions, that's why we didn't see it.
So you did not find the WS_VISIBLE style?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
yes we did, but MSDN was working against me
|
|
|
|
|
V. wrote: but MSDN was working against me
Yes, it seems that documentation has a negative effect on a large portion of the developer population these days. We see it here all the time.
led mike
|
|
|
|
|
so you mean we took the easy way out asking the forum, hoping that someone would know?
|
|
|
|
|
V. wrote: so you mean we took the easy way out
No, you took the path of least resistance. An act that becomes addictive for most people and surely results in calamity for a software developer. Something we witness here in these forums, e v e r y s i n g l e d a y.
Good luck, you're going to need it.
led mike
|
|
|
|
|
You have no idea what we did to look it up. I wanted to proove to the guy who replied that I at least took the effort to look it up in the first place instead of waiting until the answer fell into my lap...
led mike wrote: Something we witness here in these forums, e v e r y s i n g l e d a y.
I'm a member for over four years now, this place used to be much, much nicer ... (and NO I'm not the one making it a bad place)
My two cents...
|
|
|
|
|
led mike wrote: V. wrote:
but MSDN was working against me
Yes, it seems that documentation has a negative effect on a large portion of the developer population these days. We see it here all the time.
Ouch, I can feel the icicles hanging from that comment. Beware of frostbites.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
V. wrote: yes we did, but MSDN was working against me
I can understand you, Mr.Sun.
--Mr.Apple
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]
|
|
|
|
|
In addition to what the other members said, IsWindowVisible[^] will return TRUE if your dialog has the WS_VISIBLE style. If your window is behind another window and not actually visible you will still recieve TRUE.
You can get around this by calling GetClipBox[^] which will return NULLREGION if your window is being completely clipped by another window. In Windows Vista GetClipBox will not return NULLREGION if DWM[^] is enabled because Aero performs blending/transparency effects.
Best Wishes,
-David Delaune
|
|
|
|
|
|
Hi,
I have written a serializable class.How to serialize the object of this class or where should (in which clas) the Serialize function declared in the serializable class be called over the object
Thanks in advance
Taruni
|
|
|
|
|