https://isocpp.org/wiki/faq/mixing-c-and-cpp
-----------------------------------------------------
http://www.cplusplus.com/forum/general/1143/
my_C_CPP_Header.h:
#ifndef MY_C_CPP_HEADER
#define MY_C_CPP_HEADER
/*check if the compiler is of C++*/
#ifdef __cplusplus
extern "C" {
int myOtherCfunc(int arg1, int arg2); /* a C function */
}
#endif
void myCppFunction1(); /* C++ function */
void myCppFunction2(); /* C++ function */
/*check if the compiler is of C++ */
#ifdef __cplusplus
}
#endif
#endif
'MFC' 카테고리의 다른 글
Message Reflection for Windows Controls (0) | 2015.05.27 |
---|---|
OnCommand 메시지 처리기 변경 (0) | 2015.05.27 |
TCP/IP 최대 재전송 시간 제한은 수정 하는 방법 (0) | 2015.02.23 |
Windows TCP/IP 레지스트리 항목 (0) | 2015.02.23 |
C 런타임 방법 [kb94248] (0) | 2014.11.11 |