Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldifference b/w C and C++ Pin
saurabh190514-Jun-04 19:32
saurabh190514-Jun-04 19:32 
GeneralRe: difference b/w C and C++ Pin
Vadim Tabakman14-Jun-04 19:39
Vadim Tabakman14-Jun-04 19:39 
GeneralRe: difference b/w C and C++ Pin
Maxwell Chen14-Jun-04 20:04
Maxwell Chen14-Jun-04 20:04 
GeneralRe: difference b/w C and C++ Pin
V.14-Jun-04 21:54
professionalV.14-Jun-04 21:54 
GeneralRe: difference b/w C and C++ Pin
David Crow15-Jun-04 2:40
David Crow15-Jun-04 2:40 
GeneralRe: difference b/w C and C++ Pin
Henry miller15-Jun-04 4:13
Henry miller15-Jun-04 4:13 
GeneralRe: difference b/w C and C++ Pin
Johnny ²15-Jun-04 4:43
Johnny ²15-Jun-04 4:43 
GeneralRe: difference b/w C and C++ Pin
Henry miller15-Jun-04 5:01
Henry miller15-Jun-04 5:01 
simpler. When directly accessing hardware you need to force some things to be in a specific memory location. You often have limited memory you can use (ISA devices cannot access memory over 16 megabytes, not a factor now, but it was not long ago, and may be again when the limits of 32 bit PCI is reached). The base OS is normally written in C or assembly, so you have to jump in and out of C often. C++ intorduces overhead that isn't needed.

In general, even though these limits are not hard to overcome in C++, the programs that directly access hardware are so small that C++ gives no advantage.

You can do this in C++, and it has been done. However there is no real advantage.

I'm only talking about the lowest level device drivers. If you are not messing with registers you are above this point.
GeneralRe: difference b/w C and C++ Pin
David Crow16-Jun-04 3:03
David Crow16-Jun-04 3:03 
GeneralRe: difference b/w C and C++ Pin
Henry miller16-Jun-04 3:32
Henry miller16-Jun-04 3:32 
QuestionHow to copy ClientDC to Memory Device Context? Pin
JHAKAS14-Jun-04 19:25
JHAKAS14-Jun-04 19:25 
AnswerRe: How to copy ClientDC to Memory Device Context? Pin
Vadim Tabakman14-Jun-04 19:28
Vadim Tabakman14-Jun-04 19:28 
GeneralSorting date with CListCtrl Pin
Mr Bose Dayala14-Jun-04 19:21
Mr Bose Dayala14-Jun-04 19:21 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 19:36
Vadim Tabakman14-Jun-04 19:36 
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala14-Jun-04 20:00
Mr Bose Dayala14-Jun-04 20:00 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 20:29
Vadim Tabakman14-Jun-04 20:29 
GeneralRe: Sorting date with CListCtrl Pin
David Crow15-Jun-04 2:43
David Crow15-Jun-04 2:43 
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala15-Jun-04 17:02
Mr Bose Dayala15-Jun-04 17:02 
GeneralRe: Sorting date with CListCtrl Pin
David Crow16-Jun-04 2:46
David Crow16-Jun-04 2:46 
GeneralTraversing the views Pin
Poorniselva14-Jun-04 18:43
Poorniselva14-Jun-04 18:43 
GeneralRe: Traversing the views Pin
Vadim Tabakman14-Jun-04 19:00
Vadim Tabakman14-Jun-04 19:00 
GeneralRe: Traversing the views Pin
Poorniselva14-Jun-04 19:40
Poorniselva14-Jun-04 19:40 
GeneralRe: Traversing the views Pin
V.15-Jun-04 2:23
professionalV.15-Jun-04 2:23 
QuestionHow to get memory info of a process not using PSAPI, thanks Pin
xingworld14-Jun-04 18:40
xingworld14-Jun-04 18:40 
AnswerRe: How to get memory info of a process not using PSAPI, thanks Pin
David Crow15-Jun-04 2:46
David Crow15-Jun-04 2:46 

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.