Click here to Skip to main content
15,882,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can code be given exclusive CPU access in XP? Pin
Ryan Binns28-Feb-06 18:12
Ryan Binns28-Feb-06 18:12 
AnswerRe: Can code be given exclusive CPU access in XP? Pin
BadKarma28-Feb-06 20:29
BadKarma28-Feb-06 20:29 
QuestionDDX_Control and DDX_Text Pin
derek728-Feb-06 13:48
derek728-Feb-06 13:48 
AnswerRe: DDX_Control and DDX_Text Pin
mbue28-Feb-06 14:31
mbue28-Feb-06 14:31 
GeneralRe: DDX_Control and DDX_Text Pin
derek728-Feb-06 15:08
derek728-Feb-06 15:08 
GeneralRe: DDX_Control and DDX_Text Pin
mbue28-Feb-06 15:14
mbue28-Feb-06 15:14 
GeneralRe: DDX_Control and DDX_Text Pin
derek728-Feb-06 15:33
derek728-Feb-06 15:33 
Questionusing bitmap as logo in diaglog-based app Pin
swatgodjr28-Feb-06 13:22
swatgodjr28-Feb-06 13:22 
i can get the code to compile just fine but when i go to launch my application i get an assertion error, i narrowed down the block of code that might be causing it but i also think i am not correctly writing the code to display the bitmap.

this block of code in my OnInitDialog function is where i get the problem from i think.

m_st1.GetClientRect( &rectStaticClient );
rectStaticClient.NormalizeRect();
m_size.cx=rectStaticClient.Size().cx;
m_size.cy=rectStaticClient.Size().cy;
m_size.cx = rectStaticClient.Width();
m_size.cy = rectStaticClient.Height();

m_st1.ClientToScreen( &rectStaticClient );
ScreenToClient( &rectStaticClient);

m_pt.x = rectStaticClient.left;
m_pt.y = rectStaticClient.top;
GetObject( m_hBmpNew , sizeof(BITMAP), &m_bmInfo );
VERIFY(m_hBmpOld = (HBITMAP)SelectObject(m_dcMem, m_hBmpNew ) );
offsetx= m_pt.x;
offsety=m_pt.y;
InvalidateRect(&rectStaticClient);

not really messed with graphics coding much before, if soemone could help me out with whats possibly going on i would really appreciate it.
AnswerRe: using bitmap as logo in diaglog-based app Pin
mbue28-Feb-06 13:45
mbue28-Feb-06 13:45 
GeneralRe: using bitmap as logo in diaglog-based app Pin
swatgodjr28-Feb-06 14:33
swatgodjr28-Feb-06 14:33 
GeneralRe: using bitmap as logo in diaglog-based app Pin
mbue28-Feb-06 14:51
mbue28-Feb-06 14:51 
QuestionWhat does this syntax mean? Pin
Richard Andrew x6428-Feb-06 11:55
professionalRichard Andrew x6428-Feb-06 11:55 
AnswerRe: What does this syntax mean? Pin
Chris Losinger28-Feb-06 12:05
professionalChris Losinger28-Feb-06 12:05 
AnswerRe: What does this syntax mean? Pin
PJ Arends28-Feb-06 12:07
professionalPJ Arends28-Feb-06 12:07 
AnswerRe: What does this syntax mean? Pin
Ryan Binns28-Feb-06 18:18
Ryan Binns28-Feb-06 18:18 
QuestionAny java/C#-like STL alternatives for unmanaged c++? Pin
FocusedWolf28-Feb-06 11:03
FocusedWolf28-Feb-06 11:03 
AnswerRe: Any java/C#-like STL alternatives for unmanaged c++? Pin
Chris Losinger28-Feb-06 12:06
professionalChris Losinger28-Feb-06 12:06 
AnswerRe: Any java/C#-like STL alternatives for unmanaged c++? Pin
Stephen Hewitt28-Feb-06 12:36
Stephen Hewitt28-Feb-06 12:36 
QuestionReading a 16bit data file??? Pin
pavanbabut28-Feb-06 10:18
pavanbabut28-Feb-06 10:18 
AnswerRe: Reading a 16bit data file??? Pin
David Crow28-Feb-06 10:27
David Crow28-Feb-06 10:27 
AnswerRe: Reading a 16bit data file??? Pin
PJ Arends28-Feb-06 11:08
professionalPJ Arends28-Feb-06 11:08 
GeneralRe: Reading a 16bit data file??? Pin
pavanbabut28-Feb-06 11:21
pavanbabut28-Feb-06 11:21 
GeneralRe: Reading a 16bit data file??? Pin
PJ Arends28-Feb-06 11:47
professionalPJ Arends28-Feb-06 11:47 
QuestionC++ app with no MS CRT usage Pin
Jim Crafton28-Feb-06 10:00
Jim Crafton28-Feb-06 10:00 
AnswerRe: C++ app with no MS CRT usage Pin
PJ Arends28-Feb-06 11:12
professionalPJ Arends28-Feb-06 11:12 

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.