'C++ builder'에 해당되는 글 12건

  1. 2015.05.11 E2034 Cannot convert 'char const[17]' to 'const wchar_t *'
  2. 2015.05.07 E2140 Declaration is not allowed here

long DoMsgPrintf(TColor theColor, const TCHAR * fmt, ...);


DoMsgPrintf(clBlack, "Output : %X (%d)", Data, Data );

이렇게 call 하면 에러가 난다.


DoMsgPrintf(clBlack,_T("Output : %X (%d)"), Data, Data );

_T( ) 를 넣어주어야 한다.

winnt.h 추가



또는

DoMsgPrintf(clBlack,(TCHAR *)("Output : %X (%d)"), Data, Data );


OpenCV GOCR 추가하는 중에,

barcode.c

1229 라인 : char *code=0; int cpos=0;

E2140 Declaration is not allowed here

이런 에러가 발생


원인 : 확장자가 c 이므로 생기는 문제

해결 : Project -> Options -> C++ Compiler 들어가서,

Force C++ compile 를 true로 바꾸어 주어야 한다.

1 2 

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!