Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalusing owner drawn cursor/ use bitmap as cursor Pin
Benedict Verheyen19-Jul-00 3:14
sussBenedict Verheyen19-Jul-00 3:14 
QuestionUsing COM from NT Service? Pin
Marc Pahlenkaemper19-Jul-00 1:42
sussMarc Pahlenkaemper19-Jul-00 1:42 
GeneralSave/Restore Position of MDI-Childs Pin
Hans-Peter Warter18-Jul-00 21:55
Hans-Peter Warter18-Jul-00 21:55 
GeneralRe: Save/Restore Position of MDI-Childs Pin
Dave Lorde19-Jul-00 12:47
Dave Lorde19-Jul-00 12:47 
GeneralHave anyone used SSL or SSPI?Can you give me some info?Thanks! Pin
jedi18-Jul-00 17:37
jedi18-Jul-00 17:37 
GeneralSetTimer() and KillTimer() Pin
David18-Jul-00 15:47
David18-Jul-00 15:47 
GeneralRe: SetTimer() and KillTimer() Pin
Philip Nicoletti19-Jul-00 3:00
Philip Nicoletti19-Jul-00 3:00 
GeneralRe: SetTimer() and KillTimer() Pin
Benedict Verheyen20-Jul-00 4:52
sussBenedict Verheyen20-Jul-00 4:52 
Things to check:

1. Is the timerid you supply for SetTimer a variable?
If yes, check your program to see it doesn't get changed somewhere. I typically "define" them
For instance:
#define TIMER_ID 1
#define TIMER_TIME 1000

#define TIMER_ID_DIS 2
#define TIMER_TIME_DIS 60000

Then in my OnTimer message i check for TIMER_ID & TIMER_ID_DIS

2. Are you forwarding the timer message to another window?
That might (not sure) it to be different.

3.>> It crashs everytime it is killed with an assertion >>that checks hWnd.
That might suggest that the window(CWnd, CButton, everthing derived from CWnd/CWindow) is already destroyed.
If you are trying to kill your timer in the destructor of your window, don't!!! Destroy it in an OnClose or something but not in a destructor because the m_hWnd is already invalid then.

In none of these is the case, show us the important parts of the code.

Benedict Verheyen

QuestionHow do you crop a bitmap? Pin
Phil18-Jul-00 11:44
Phil18-Jul-00 11:44 
GeneralNew View in a SDI App Pin
Anthony Perri14-Jul-00 5:53
Anthony Perri14-Jul-00 5:53 
Generalmfcole, need help with GetExitCodeProcess() Pin
michael biagioni18-Jul-00 7:57
sussmichael biagioni18-Jul-00 7:57 
GeneralRe: mfcole, need help with GetExitCodeProcess() Pin
Stephen Kellett20-Jul-00 6:07
Stephen Kellett20-Jul-00 6:07 
QuestionPicture in MFC? Pin
Complete Newbie to MFC.18-Jul-00 5:51
sussComplete Newbie to MFC.18-Jul-00 5:51 
GeneralActiveX in a ATL Dialog Application Pin
MFCisTOfatFORme17-Jul-00 17:31
sussMFCisTOfatFORme17-Jul-00 17:31 
GeneralCRichEditCtrl Memory Allocation Pin
John Schwartzman17-Jul-00 16:13
John Schwartzman17-Jul-00 16:13 
QuestionSending data to a HtmlView ? Pin
Alwin17-Jul-00 11:51
Alwin17-Jul-00 11:51 
GeneralFonts in VC... Pin
Jeff17-Jul-00 10:38
Jeff17-Jul-00 10:38 
GeneralRe: Fonts in VC... Pin
Chris Maunder18-Jul-00 10:07
cofounderChris Maunder18-Jul-00 10:07 
GeneralDrawing picture from pixels in window Pin
Bohdan Jedlicka17-Jul-00 10:31
sussBohdan Jedlicka17-Jul-00 10:31 
GeneralRe: Drawing picture from pixels in window Pin
Dave Lorde19-Jul-00 12:55
Dave Lorde19-Jul-00 12:55 
Questionhow to get desktop's icons positions Pin
Kostya V. Vorobyov17-Jul-00 8:52
sussKostya V. Vorobyov17-Jul-00 8:52 
GeneralFile Copying Pin
Justin Welsch17-Jul-00 8:38
sussJustin Welsch17-Jul-00 8:38 
GeneralDrawLine Pin
Asaf16-Jul-00 23:53
Asaf16-Jul-00 23:53 
GeneralRe: DrawLine Pin
Dave Lorde19-Jul-00 13:02
Dave Lorde19-Jul-00 13:02 
GeneralI'm looking for a report writer Pin
Per G16-Jul-00 23:04
Per G16-Jul-00 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.