Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSending bytes to an Exe Pin
narayanagvs1-Jan-08 0:46
narayanagvs1-Jan-08 0:46 
GeneralRe: Sending bytes to an Exe Pin
Nishad S1-Jan-08 1:22
Nishad S1-Jan-08 1:22 
GeneralCString array and _variant_t [modified] Pin
followait31-Dec-07 23:16
followait31-Dec-07 23:16 
QuestionRe: CString array and _variant_t Pin
CPallini1-Jan-08 0:25
mveCPallini1-Jan-08 0:25 
GeneralRe: CString array and _variant_t Pin
Nemanja Trifunovic1-Jan-08 4:36
Nemanja Trifunovic1-Jan-08 4:36 
GeneralBOOL AFXAPI AfxWinInit Pin
youbo31-Dec-07 20:52
youbo31-Dec-07 20:52 
GeneralRe: BOOL AFXAPI AfxWinInit Pin
Naveen31-Dec-07 21:02
Naveen31-Dec-07 21:02 
GeneralInline functions and static linkage Pin
vikramlinux31-Dec-07 19:08
vikramlinux31-Dec-07 19:08 
While going through C++ object model book by Stanley Lippman, I came across a statement "inline functions have static linkage"
Now if inline function code is expanded into the source where it is used, then this statement is perfectly correct.

But if the compiler is unable to replace this function call with appropriate code, then it will behave like ordinary function call.

So I tried declaring and defining this function in a header file inside class.

// a.h
class ABC
{
public:
void MyInlinefunction()
{
// some code which forces this function not to be inline
}
};

When I analyzed assembly code of my 2 source files where this header is included.
b.cpp,c.cpp.

I found two instances of the same function(MyInlinefunction) in two source files. Is this behavior is correct?
GeneralRe: Inline functions and static linkage Pin
CPallini1-Jan-08 0:29
mveCPallini1-Jan-08 0:29 
GeneralRe: Inline functions and static linkage Pin
vikramlinux1-Jan-08 0:33
vikramlinux1-Jan-08 0:33 
GeneralRe: Inline functions and static linkage Pin
CPallini1-Jan-08 0:55
mveCPallini1-Jan-08 0:55 
GeneralRe: Inline functions and static linkage Pin
vikramlinux1-Jan-08 1:37
vikramlinux1-Jan-08 1:37 
GeneralRe: Inline functions and static linkage Pin
CPallini1-Jan-08 3:06
mveCPallini1-Jan-08 3:06 
GeneralStop iteratively creating handle. Pin
CodingLover31-Dec-07 19:03
CodingLover31-Dec-07 19:03 
GeneralRe: Stop iteratively creating handle. Pin
CodingLover31-Dec-07 21:50
CodingLover31-Dec-07 21:50 
GeneralMerry Christmas! Pin
Hakan Bulut31-Dec-07 7:51
Hakan Bulut31-Dec-07 7:51 
GeneralRe: Merry Christmas! Pin
Paul Conrad31-Dec-07 10:29
professionalPaul Conrad31-Dec-07 10:29 
GeneralRe: Merry Christmas! Pin
leckey31-Dec-07 15:40
leckey31-Dec-07 15:40 
GeneralPocket PC windows and the Return Key, it always closes them :'( Pin
OwenBurnett31-Dec-07 5:00
OwenBurnett31-Dec-07 5:00 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
Chris Losinger31-Dec-07 9:08
professionalChris Losinger31-Dec-07 9:08 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
OwenBurnett31-Dec-07 10:16
OwenBurnett31-Dec-07 10:16 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
Chris Losinger31-Dec-07 10:23
professionalChris Losinger31-Dec-07 10:23 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
OwenBurnett31-Dec-07 10:44
OwenBurnett31-Dec-07 10:44 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
Chris Losinger31-Dec-07 10:51
professionalChris Losinger31-Dec-07 10:51 
GeneralRe: Pocket PC windows and the Return Key, it always closes them :'( Pin
OwenBurnett31-Dec-07 12:41
OwenBurnett31-Dec-07 12:41 

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.