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

C / C++ / MFC

 
GeneralRe: directsound,how to compress and decompress sound data Pin
kcynic30-May-07 22:31
kcynic30-May-07 22:31 
GeneralRe: directsound,how to compress and decompress sound data Pin
Mark Salsbery31-May-07 5:27
Mark Salsbery31-May-07 5:27 
QuestionMonochrome Bitmap Issue Pin
CoffeeAddict1930-May-07 12:23
CoffeeAddict1930-May-07 12:23 
AnswerRe: Monochrome Bitmap Issue Pin
Bram van Kampen30-May-07 14:28
Bram van Kampen30-May-07 14:28 
AnswerRe: Monochrome Bitmap Issue Pin
Mark Salsbery30-May-07 15:16
Mark Salsbery30-May-07 15:16 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1930-May-07 17:08
CoffeeAddict1930-May-07 17:08 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 5:36
Mark Salsbery31-May-07 5:36 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 8:19
CoffeeAddict1931-May-07 8:19 
Actually I just got a cup about 30 minutes ago. Smile | :) Unfortunatly, the problem still remains. Frown | :( I tried using GetDC:

CDC* ScreenDC = NULL;
CreateResult = CWnd::Create(CPIEGRAPH_CLASSNAME, _T(""), dwStyle, rect, pParentWnd, nID);

TextDCResult = TextMemDC.CreateCompatibleDC(NULL);
PieDCResult = PieMemDC.CreateCompatibleDC(NULL);

ScreenDC = GetDC();
ASSERT(ScreenDC == NULL);
SelectText = m_textBitmap.CreateCompatibleBitmap(ScreenDC, 250, 20);
SelectPie = m_pieBitmap.CreateCompatibleBitmap(ScreenDC, 300, 300);
ReleaseDC(ScreenDC);


At first the assert statement wasn't in there and I just got black and white, then I put it in and I got a debug assertation on the same line, indicating that ScreenDC was null, and that GetDC didn't do the job. Any idea why?
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 8:38
CoffeeAddict1931-May-07 8:38 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 8:53
Mark Salsbery31-May-07 8:53 
GeneralRe: Monochrome Bitmap Issue [modified] Pin
Mark Salsbery31-May-07 8:43
Mark Salsbery31-May-07 8:43 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 9:58
CoffeeAddict1931-May-07 9:58 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 10:05
Mark Salsbery31-May-07 10:05 
Questiontable and vector, C++ Pin
C_Zealot30-May-07 11:39
C_Zealot30-May-07 11:39 
GeneralRe: table and vector, C++ Pin
C_Zealot30-May-07 11:42
C_Zealot30-May-07 11:42 
AnswerRe: table and vector, C++ Pin
Rajkumar R31-May-07 1:16
Rajkumar R31-May-07 1:16 
GeneralRe: table and vector, C++ Pin
C_Zealot31-May-07 1:18
C_Zealot31-May-07 1:18 
QuestionDirectshow : Connect to another process's graph... Pin
Akin Ocal30-May-07 11:36
Akin Ocal30-May-07 11:36 
AnswerRe: Directshow : Connect to another process's graph... Pin
Mark Salsbery30-May-07 15:19
Mark Salsbery30-May-07 15:19 
QuestionConnect to another process's graph... Pin
Akin Ocal30-May-07 11:35
Akin Ocal30-May-07 11:35 
QuestionMonitor Memory for Alterations Pin
Jeffrey Walton30-May-07 11:25
Jeffrey Walton30-May-07 11:25 
AnswerRe: Monitor Memory for Alterations Pin
Matthew Faithfull30-May-07 12:58
Matthew Faithfull30-May-07 12:58 
GeneralRe: Monitor Memory for Alterations Pin
Jeffrey Walton30-May-07 14:03
Jeffrey Walton30-May-07 14:03 
GeneralRe: Monitor Memory for Alterations Pin
Matthew Faithfull30-May-07 22:40
Matthew Faithfull30-May-07 22:40 
GeneralRe: Monitor Memory for Alterations Pin
Jeffrey Walton30-May-07 23:00
Jeffrey Walton30-May-07 23: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.