I want to create one applciaiton which displays as banner in the top of desktop,when i press the buttons in banner i will get my views as seperate window.
When i start the EXE only that banner willget displayed in desktop and it changes display of items in desktop.Like My Computer,My documents will realigned and displayed below my banner.
I do not know how to get start.
So please help me to give some idea to start and also if there article is there.Pls forward the link.
'I dont know how to add images to this post,otherwise i will attach sample page here'
PLease try to learn the usage of syntax of C++. The syntax used in your code is wrong.
Syntax related error can be cleared only working with it.
Which you have do
I prefer you to study with Learning C++ A hands On Approach by Eric Nagler. [^]
Well your case firstly #include <iostream>
you didn't specified the namespace.
and next is related endln, actually that is endl.
Please learn using the text, it is better for you.
This is shown in call stack when exception occurred:
mfc80ud.dll!CGdiObject::Attach(void * hObject=0xb90510f0) Line 1157 + 0x3 bytes
mfc80ud.dll!CBitmap::CreateCompatibleBitmap(CDC * pDC=0x004bf954, int nWidth=336, int nHeight=189) Line 251 + 0x25 bytes
AxGraph.ocx!CGraphCtrl::Initialize(CDC * pInputDC=0x004bf954, int width=336, int height=189) Line 27
I could not understand why is this happening. Help to resolve the issue.
Usually I instantiate my CDialog based classes in my view class. Then CMyView class typically creates a modal dialog and then launches a function on OK from which I can easily access the dialog variables.
Unfortunately, the wizard implementation of CPropertySheet has no default constructor. So you are forced to construct it in the view function that is called from a toolbar menu or similar. Then the property page variables have to be duplicated in CMyView class and copied. I have 2 books that show it done this way.
Here is the wizard CPropertySheet constructor code-
I wrote the below code in an attempt to set a 500ms timer. CreateWaitableTimer returns a valid handle and SetWaitableTimer() returns 1 indicating success, however TimerAPCProc() never gets called. Can anybody see what's wrong with this code?
Thanks for the reply and information. The timer is being created in the main thread so it's definitely not a problem of it exiting too soon. I also tried setting the time to -1 just to try and get it to call the TimerAPCProc but still it wouldn't.
I solved the problem by switching to SetTimer(). For some reason I thought SetTimer() worked in seconds rather than milliseconds and that's the only reason I was using SetWaitableTimer(). I was looking for an alternative time and noticed SetTimer() took a value in milliseconds so it was fine for what I needed.
I still don't understand why SetWaitableTimer() wouldn't work but it doesn't really matter now.