Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan any friend send me source code for developing notepad appln using VC++ 6.0 Pin
raveen18-Mar-08 7:28
raveen18-Mar-08 7:28 
AnswerRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
Maximilien18-Mar-08 7:33
Maximilien18-Mar-08 7:33 
GeneralRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
ThatsAlok18-Mar-08 20:24
ThatsAlok18-Mar-08 20:24 
AnswerRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
Mark Salsbery18-Mar-08 8:28
Mark Salsbery18-Mar-08 8:28 
GeneralRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
JudyL_MD18-Mar-08 8:54
JudyL_MD18-Mar-08 8:54 
GeneralRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
Mark Salsbery18-Mar-08 8:57
Mark Salsbery18-Mar-08 8:57 
AnswerRe: can any friend send me source code for developing notepad appln using VC++ 6.0 Pin
Joe Woodbury18-Mar-08 16:00
professionalJoe Woodbury18-Mar-08 16:00 
Questionmy mfc application works on windows xp sp2 but fails on vista business Pin
sthotakura18-Mar-08 6:34
sthotakura18-Mar-08 6:34 
Hi,

We have an application developed using MFC and works fine on windows xp sp2, recently we wanted to try our application on windows vista. When we run the application on windows vista it crashes, and below is the callstack.

7346382d()
 user32.dll!_InternalCallWinProc@20()  + 0x23 bytes
 user32.dll!_UserCallWinProcCheckWow@32()  + 0xb3 bytes
 user32.dll!_SendMessageWorker@20()  + 0xd5 bytes
 user32.dll!_SendMessageA@16()  + 0x49 bytes
 ourdll.dll!CWnd::SendMessageA(unsigned int message=0x00000010, unsigned int wParam=0x00000000, long lParam=0x00000000)  Line 42 + 0x20 bytes    C++


and here is the extract from eventlog

Faulting application OURAPP.EXE, version 53.8.0.0, time stamp 0x47626d96, faulting module COMCTL32.dll_unloaded, version 0.0.0.0, time stamp 0x4549bcb0, exception code 0xc0000005, fault offset 0x7346382d, process id 0x7374, application start time 0x01c888ff11ea7ee6.


What I could understand from event log is our application is making a call into COMCTL32.dll after somebody has unloaded from our application space (I may be very well wrong). So then I placed InitCommonControls() call in OURAPP.EXE, now it works fine (it doesnt crash). The application works fine on windows xp sp2 even without this InitCommonControls() call.

Just an additional information we dont use any Common Controls in our application except scroll bars (CScrollBar MFC class). Rest all controls are our own developed and are bundled into ourdll.dll

Could someone please help me in understading the above scenario? Thanks in advance

Cheers,
Suresh

GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
Mark Salsbery18-Mar-08 6:50
Mark Salsbery18-Mar-08 6:50 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
sthotakura18-Mar-08 6:55
sthotakura18-Mar-08 6:55 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
Mark Salsbery18-Mar-08 7:01
Mark Salsbery18-Mar-08 7:01 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
sthotakura18-Mar-08 7:10
sthotakura18-Mar-08 7:10 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
Mark Salsbery18-Mar-08 7:20
Mark Salsbery18-Mar-08 7:20 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
sthotakura18-Mar-08 7:31
sthotakura18-Mar-08 7:31 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
Mark Salsbery18-Mar-08 8:14
Mark Salsbery18-Mar-08 8:14 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
led mike18-Mar-08 6:59
led mike18-Mar-08 6:59 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
David Crow18-Mar-08 9:38
David Crow18-Mar-08 9:38 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
led mike18-Mar-08 9:53
led mike18-Mar-08 9:53 
GeneralRe: my mfc application works on windows xp sp2 but fails on vista business Pin
David Crow18-Mar-08 10:16
David Crow18-Mar-08 10:16 
QuestionWhat SDL can do ? Pin
Hanan88818-Mar-08 5:33
Hanan88818-Mar-08 5:33 
AnswerRe: What SDL can do ? Pin
David Crow18-Mar-08 5:47
David Crow18-Mar-08 5:47 
GeneralRe: What SDL can do ? Pin
Cedric Moonen18-Mar-08 5:50
Cedric Moonen18-Mar-08 5:50 
GeneralRe: What SDL can do ? Pin
led mike18-Mar-08 6:03
led mike18-Mar-08 6:03 
AnswerRe: What SDL can do ? Pin
Cedric Moonen18-Mar-08 5:48
Cedric Moonen18-Mar-08 5:48 
GeneralRe: What SDL can do ? Pin
Hanan88818-Mar-08 6:00
Hanan88818-Mar-08 6:00 

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.