|
너무 기초적인 거라 쓰고 보니 왠지 개그같군요-_-;;
Lyn 님이 쓰신 글 :
: #include <stdio.h>
:
: 언제나삽질 님이 쓰신 글 :
: : #ifndef MainFormH
: : #define MainFormH
: : //---------------------------------------------------------------------------
: : #include <Classes.hpp>
: : #include <Controls.hpp>
: : #include <StdCtrls.hpp>
: : #include <ExtCtrls.hpp>
: : #include "uRs232.h"
: : #include <Forms.hpp>
: :
: :
: : 헤더 파일에는 위와 같은 내용들이 선언되어 있고,
: :
: : cpp 파일에는 아래와 같이
: :
: :
: : char WriteBuff[256];
: : char CardBuff[17];
: : AnsiString WriteString;
: : int Count;
: : int StrLen;
: : int CheckSum = 0;
: :
: : ZeroMemory (WriteBuff, sizeof(WriteBuff));
: : ZeroMemory (CardBuff, sizeof(CardBuff));
: : StrLen = sprintf(WriteBuff, "\x02""%s=<=%05u===========""\x03",
: : CardBuff, CRC16(CardBuff, strlen(CardBuff))); <----------------요기서 에러!!
: :
: : 에러 메세지는 [C++ Error] MainForm.cpp(56): E2268 Call to undefined function 'sprintf'
: : 이렇게 나옵니다. sprintf 함수는 기본 제공 함수인데 왜 정의되지 않았다고 나올까요?
: : 답변 부탁드립니다 ㅠㅠ
|