|
You need a manifest file (xml), there is one at the microsoft website some where. Once you have a manifest, you can do one of two things:
1) Rename it ot MyApp.exe.manifest, where MyApp is the name of your application. Then place the manifest in the same directory as your application, Windows will find it.
Or the more usual way,
2) Place the renamed manifest in your projects res directory and use the resource editor to add it to your program as a binary resource. The name of the manifest resource must be 24. That is the name of the resource not the name of the file.
Also you should edit the manifest file so that contains information about your application. The one supplied by Microsoft is more of a template and contains statement like this "Your application description here", which are just place holders.
If you do a search using keywords: Microsoft, XP, and manifest; you should have no problems finding what you need.
INTP
Every thing is relative...
|
|
|
|
|
I have derived CPropertyPage class with OnOK() function, but when I try to return from OnOK() on condition not closing the page, I can't prevent closing. Every time I have my page closed no matter if I return from OnOK() . Where have to handle event to stop close?
thanks
|
|
|
|
|
Do this...
void CMyPage::OnOK()
{
if()
CPropertyPage::OnOK();
else
}
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
it closes no matter with / without CPropertyPage::OnOK()
|
|
|
|
|
I found the problem.
The check should be in OnKillActive() instead of in OnOK()
|
|
|
|
|
Yeah after this method returns successfully, the framework will call the page CPropertyPage::OnOK method.
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
i have created a ToolBar using
hwndTB = CreateWindowEx(0, TOOLBARCLASSNAME, (LPSTR) NULL,
WS_CHILD | CCS_ADJUSTABLE, 0, 0, 0, 0, m_hWnd,
(HMENU) IDR_TOOLBAR_TEXTCHAT, AfxGetApp()->m_hInstance, NULL);
and attched images etc etc....
I have to place the toolbar at a particular place in DIALOG. I use SetWindowPlacement & SetWindowPlacement...But it wont worked...
The toolbar showing at the top always....When i tried using MFC, it worked!!!
Any help/suggestions?
Anilkumar
|
|
|
|
|
RepositionBars()
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I am looking for Win32 SDK solution....
anilkumar
|
|
|
|
|
The default behavior of a toolbar is to position itself at the top of its parent's client area. Add CCS_NOPARENTALIGN to the toolbar's styles to turn off that behavior.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
|
mfc dialog based application hangs on win 2000 but works fine on xp
do any one of u had similar problem,
what could be the reason
I am an INDIAN
|
|
|
|
|
Check ur DLL versions///
It is not due to you are INDIAN.....Nothing to do with INDIA
Anil
|
|
|
|
|
anilFirst wrote: It is not due to you are INDIAN.....Nothing to do with INDIA
That is his sig :P
-Prakash
|
|
|
|
|
>>> anilFirst wrote:
>>> It is not due to you are INDIAN.....Nothing to do with INDIA
====================
Just joking..
|
|
|
|
|
yes!!! that is my sign
Thanks u Mr. Prakash
|
|
|
|
|
j_tambi wrote: mfc dialog based application hangs on win 2000 but works fine on xp
do any one of u had similar problem,
what could be the reason
Generally i never came across such problem, but it could possiblely depend what you are trying.
Try to debug the application in win200 environment.
-Prakash
|
|
|
|
|
No buddy i am working on win 2000
but i have not faced any problem of
such type .
But if ur dealing with sothing related
to hardware or so it can be . As far
as Dialog based app is concern its fine.
U might be missing some dll's
INDIA is GREAT
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Well, If an MFC based application hangs on win2000 there may be many reasons for that.
To name a few it might be an poorly designed code for.example. a while loop causing an infinite iteration eventually causing the hangup or an OS corrupted with virus etc..
I started coding in win2000 only and it very well supports Dilaog based applications.So Go ahead and have fun ....
JAI HIND
Rajeev
|
|
|
|
|
the application communicates with a usb device
every thing is ok on xp , but system hangs on win 2000 (not the application even ,need to restart the system)
I am an INDIAN
|
|
|
|
|
i does't mean win 2000 is not supporting dialog base application
i am looking for reasons for system hang at the startup of the application,
application is communication with usb device
application works at best in XP
Vandeeamatharam
(as 20 more days for republic day)
|
|
|
|
|
OK now there is the Bug
communication with the USB .
Actually the device driver frame work on which
the two operatign system reside are different &
so difference in programing of device driver
exist for 98,2000,XP
As u said do i use the HID class to communicate
with the USB
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
systems hangs up at start up of the application,
with out user request for any communication with usb device
i am using sdk,
what is HID class ?
Thnak u for ur Answer, pls help me out ...
|
|
|
|
|
Why peopel will get this type of problem
running on on xp,,,..system hang on 2000
wht can be the list of posibilites for these ?
|
|
|
|
|
ptr_Electron wrote: running on on xp,,,..system hang on 2000
Actually, when SD develop Software targetting different Windows OS, these type of problem generally appear, as new OS always contain some better class or dll then previous version..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|