Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Listbox control not accessible in another class?? Pin
Luc Pattyn19-Sep-10 3:54
sitebuilderLuc Pattyn19-Sep-10 3:54 
AnswerRe: Listbox control not accessible in another class?? Pin
AmbiguousName19-Sep-10 4:05
AmbiguousName19-Sep-10 4:05 
GeneralRe: Listbox control not accessible in another class?? Pin
Luc Pattyn19-Sep-10 4:18
sitebuilderLuc Pattyn19-Sep-10 4:18 
Questionconnection dde server to excel Pin
zon_cpp18-Sep-10 20:45
zon_cpp18-Sep-10 20:45 
Questionfstream, fail() Pin
James_72218-Sep-10 18:48
James_72218-Sep-10 18:48 
AnswerRe: fstream, fail() Pin
Aescleal18-Sep-10 21:10
Aescleal18-Sep-10 21:10 
QuestionUnsigned/Signed Pin
Fareed Rizkalla18-Sep-10 6:32
Fareed Rizkalla18-Sep-10 6:32 
AnswerRe: Unsigned/Signed Pin
Tim Craig18-Sep-10 7:03
Tim Craig18-Sep-10 7:03 
C++ does no checking at runtime when doing automatic conversions. The bits from the signed int are simply crammed into the unsigned int. A negative integer has the high bit set so in the unsigned world it looks like a large number. If you set the warning level to 4, a good idea in general, with VC++ you'll get a signed/unsigned mismatch warning at compile time. You should look at all warnings to make sure you're not shooting yourself in the foot accidentally and fix them with proper casts, etc, so your compiles are totally clean. That will save you a lot of work in the long run looking for subtle bugs like the wrap around you're mentioning.
Once you agree to clans, tribes, governments...you've opted for socialism. The rest is just details.

GeneralRe: Unsigned/Signed Pin
oggenok6418-Sep-10 9:00
oggenok6418-Sep-10 9:00 
GeneralRe: Unsigned/Signed Pin
josda100020-Sep-10 11:20
josda100020-Sep-10 11:20 
AnswerRe: Unsigned/Signed Pin
Chris Losinger18-Sep-10 10:01
professionalChris Losinger18-Sep-10 10:01 
QuestionHow to move rectangle with mouse Pin
raju_shiva18-Sep-10 1:10
raju_shiva18-Sep-10 1:10 
AnswerRe: How to move rectangle with mouse Pin
Richard MacCutchan18-Sep-10 2:58
mveRichard MacCutchan18-Sep-10 2:58 
AnswerRe: How to move rectangle with mouse Pin
«_Superman_»19-Sep-10 20:57
professional«_Superman_»19-Sep-10 20:57 
GeneralRe: How to move rectangle with mouse Pin
raju_shiva21-Sep-10 18:59
raju_shiva21-Sep-10 18:59 
Questionerror LNK2001 and fatal error LNK1120 Pin
AmbiguousName17-Sep-10 22:25
AmbiguousName17-Sep-10 22:25 
AnswerRe: error LNK2001 and fatal error LNK1120 Pin
Richard MacCutchan17-Sep-10 23:03
mveRichard MacCutchan17-Sep-10 23:03 
AnswerRe: error LNK2001 and fatal error LNK1120 Pin
Carlos_never18-Sep-10 0:25
Carlos_never18-Sep-10 0:25 
GeneralRe: error LNK2001 and fatal error LNK1120 Pin
AmbiguousName18-Sep-10 8:57
AmbiguousName18-Sep-10 8:57 
QuestionHow to access BITMAP bmBits - getting void* - unknown size error . Pin
Vaclav_17-Sep-10 18:34
Vaclav_17-Sep-10 18:34 
AnswerRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan17-Sep-10 22:04
mveRichard MacCutchan17-Sep-10 22:04 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Vaclav_18-Sep-10 6:04
Vaclav_18-Sep-10 6:04 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Richard MacCutchan18-Sep-10 6:10
mveRichard MacCutchan18-Sep-10 6:10 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber26-Jan-11 12:32
garaber26-Jan-11 12:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan26-Jan-11 22:32
mveRichard MacCutchan26-Jan-11 22:32 

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.