Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DVD burning API for XP Pin
Hamid_RT23-May-07 19:03
Hamid_RT23-May-07 19:03 
QuestionC++ too many initializer? Pin
C_Zealot23-May-07 12:46
C_Zealot23-May-07 12:46 
QuestionRe: C++ too many initializer? Pin
Mark Salsbery23-May-07 13:25
Mark Salsbery23-May-07 13:25 
AnswerRe: C++ too many initializer? Pin
C_Zealot23-May-07 13:27
C_Zealot23-May-07 13:27 
QuestionDivx.dll Access Violation Pin
Skywalker200823-May-07 11:48
Skywalker200823-May-07 11:48 
AnswerRe: Divx.dll Access Violation Pin
Mark Salsbery23-May-07 12:01
Mark Salsbery23-May-07 12:01 
GeneralRe: Divx.dll Access Violation Pin
Skywalker200824-May-07 4:29
Skywalker200824-May-07 4:29 
GeneralRe: Divx.dll Access Violation Pin
Mark Salsbery24-May-07 6:08
Mark Salsbery24-May-07 6:08 
I'm not seeing anything wrong in your code.

I am suspicious of this line before the AVIMakeCompressedStream() call:

m_opts.dwFlags = AVICOMPRESSF_VALID;

What is the value of m_opts.dwFlags BEFORE this line executes? It seems to me you may be erasing
important flags there.

Also, with the way you are getting a BITMAPINFOHADER, this call isn't necessarily good:

hResult = AVIStreamSetFormat(m_pCompressedStream, 0, &sDibSection.dsBmih,
sDibSection.dsBmih.biSize + sDibSection.dsBmih.biClrUsed*sizeof(RGBQUAD));

This should be

hResult = AVIStreamSetFormat(m_pCompressedStream, 0, &sDibSection.dsBmih, sizeof(BITMAPINFOHEADER));

since there won't be any color table in a DIBSECTION structure unless
sDibSection.dsBmih.biCompression is BI_BITFIELDS.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
GeneralRe: Divx.dll Access Violation Pin
Skywalker200825-May-07 3:14
Skywalker200825-May-07 3:14 
GeneralRe: Divx.dll Access Violation Pin
Mark Salsbery25-May-07 4:35
Mark Salsbery25-May-07 4:35 
QuestionLayered window ! Pin
Adno23-May-07 10:58
Adno23-May-07 10:58 
AnswerRe: Layered window ! Pin
Mark Salsbery23-May-07 12:16
Mark Salsbery23-May-07 12:16 
GeneralRe: Layered window ! Pin
Adno23-May-07 12:34
Adno23-May-07 12:34 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 12:40
Mark Salsbery23-May-07 12:40 
GeneralRe: Layered window ! Pin
Adno23-May-07 12:45
Adno23-May-07 12:45 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 12:55
Mark Salsbery23-May-07 12:55 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:11
Adno23-May-07 13:11 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 13:18
Mark Salsbery23-May-07 13:18 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:31
Adno23-May-07 13:31 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:39
Adno23-May-07 13:39 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:04
Mark Salsbery23-May-07 14:04 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:03
Mark Salsbery23-May-07 14:03 
GeneralRe: Layered window ! Pin
Adno23-May-07 14:29
Adno23-May-07 14:29 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 15:04
Mark Salsbery23-May-07 15:04 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 12:44
Mark Salsbery23-May-07 12:44 

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.