none
visual c++로 그냥 콘솔프로그램을 만드려고 하는데 MFC에서 제공하는 api나 라이브러리를 사용할수 있나요? RRS feed

  • 질문

  • 안녕하세요.. 현재 MFC에서 잘 돌아 가는 프로그램이 잇는데요...
    실행해서 창뜨고 버튼하나하나 클릭하는것을 콘솔프로그램으로 진행현황을 cout으로 표현하게끔 해서
    콘솔로 만드려고 하거든요...그러니깐 클릭대신 마우스키보드로 콘솔에 입력을 하게끔 하려구요..
    win32 console 프로그램으로 프로젝트 생성하고 기존에 mfc에서 돌아가던 프로그램에 통신관련 파일 h 파일과 dll 파일을 프로젝트로 복사해서 솔루션 탐색기에서 include in project 하였는데요..
    실행하니 해당 object가 선언이 안되어 있다고 나오네요...
     
    메시지는 아래와 같구요.. 해당 인자가 어디에 있는지 확인해보니 
     
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include
    에 있더라구요.. 
    그래서 혹여나 프로젝트 속성을 확인해보니
    $(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;
    라고  
    ;$(WindowsSdkDir)include가 include dir에 들어있는데 왜 계속 참조가 안된다는건지 알고 싶습니다.
     
    답변 부탁드립니다.
     
     
    >c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(32): error C3861: 'ZeroMemory': identifier not found
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(60): error C3861: 'ZeroMemory': identifier not found
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(76): error C3861: 'ZeroMemory': identifier not found
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(90): error C2146: syntax error : missing ';' before identifier 'GetSafeHandle'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(90): error C2433: 'comAPI::HMODULE' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(90): warning C4183: 'GetSafeHandle': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): error C2146: syntax error : missing ';' before identifier 'Init'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(94): warning C4183: 'Init': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(95): error C2146: syntax error : missing ';' before identifier 'IsInit'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(95): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(95): warning C4183: 'IsInit': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): error C2146: syntax error : missing ';' before identifier 'Connect'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(99): warning C4183: 'Connect': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(100): error C2146: syntax error : missing ';' before identifier 'IsConnected'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(100): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(100): warning C4183: 'IsConnected': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(101): error C2146: syntax error : missing ';' before identifier 'Disconnect'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(101): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(101): warning C4183: 'Disconnect': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): error C2146: syntax error : missing ';' before identifier 'Login'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(104): warning C4183: 'Login': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): error C2146: syntax error : missing ';' before identifier 'Logout'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(105): warning C4183: 'Logout': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(108): error C2146: syntax error : missing ';' before identifier 'GetErrorMessage'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(108): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(108): warning C4183: 'GetErrorMessage': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(111): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(112): error C2146: syntax error : missing ';' before identifier 'ReleaseRequestData'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(112): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(112): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(112): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(112): warning C4183: 'ReleaseRequestData': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): error C2146: syntax error : missing ';' before identifier 'ReleaseMessageData'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): error C2061: syntax error : identifier 'LPARAM'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(113): warning C4183: 'ReleaseMessageData': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): error C2146: syntax error : missing ';' before identifier 'AdviseRealData'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(116): warning C4183: 'AdviseRealData': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): error C2146: syntax error : missing ';' before identifier 'UnadviseRealData'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(117): warning C4183: 'UnadviseRealData': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): error C2146: syntax error : missing ';' before identifier 'UnadviseWindow'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(118): warning C4183: 'UnadviseWindow': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): error C2146: syntax error : missing ';' before identifier 'GetAccountList'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): error C2061: syntax error : identifier 'LPSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(122): warning C4183: 'GetAccountList': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(125): error C2146: syntax error : missing ';' before identifier 'GetCommMedia'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(125): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(125): warning C4183: 'GetCommMedia': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(126): error C2146: syntax error : missing ';' before identifier 'GetETKMedia'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(126): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(126): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(126): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(126): warning C4183: 'GetETKMedia': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(127): error C2146: syntax error : missing ';' before identifier 'GetClientIP'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(127): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(127): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(127): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(127): warning C4183: 'GetClientIP': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(128): error C2146: syntax error : missing ';' before identifier 'GetServerName'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(128): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(128): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(128): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(128): warning C4183: 'GetServerName': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(130): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(132): error C2146: syntax error : missing ';' before identifier 'GetProcBranchNo'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(132): error C2433: 'comAPI::CString' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(132): warning C4183: 'GetProcBranchNo': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(133): error C2146: syntax error : missing ';' before identifier 'GetUseOverFuture'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(133): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(133): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(133): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(133): warning C4183: 'GetUseOverFuture': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(134): error C2146: syntax error : missing ';' before identifier 'GetUseFX'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(134): error C2433: 'comAPI::BOOL' : 'inline' not permitted on data declarations
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(134): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(134): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(134): warning C4183: 'GetUseFX': missing return type; assumed to be a member function returning 'int'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(136): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(138): error C2061: syntax error : identifier 'BOOL'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(152): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(155): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(198): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(209): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(210): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(257): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(262): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(265): error C2146: syntax error : missing ';' before identifier 'm_hModule'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(265): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(265): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(267): error C2059: syntax error : '__stdcall'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(267): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(267): error C2091: function returns function
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(267): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(268): error C2091: function returns function
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(268): warning C4440: calling convention redefinition from '__cdecl ' to '__stdcall ' ignored
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(269): error C2091: function returns function
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(269): warning C4440: calling convention redefinition from '__cdecl ' to '__stdcall ' ignored
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(270): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(270): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(271): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(271): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(273): error C2061: syntax error : identifier 'LPSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(275): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(277): error C2061: syntax error : identifier 'LPARAM'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(279): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(279): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(280): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(280): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(281): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(281): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(284): error C2059: syntax error : '<L_TYPE_raw>'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(284): error C2238: unexpected token(s) preceding ';'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(285): error C2061: syntax error : identifier 'LPTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(286): error C2061: syntax error : identifier 'LPTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(287): error C2061: syntax error : identifier 'LPTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(288): error C2061: syntax error : identifier 'LPTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(289): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(291): error C2061: syntax error : identifier 'LPTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(292): error C2091: function returns function
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(292): warning C4440: calling convention redefinition from '__cdecl ' to '__stdcall ' ignored
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(293): error C2091: function returns function
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(293): warning C4440: calling convention redefinition from '__cdecl ' to '__stdcall ' ignored
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(295): error C2061: syntax error : identifier 'LPCTSTR'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(299): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(300): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(302): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(303): error C2061: syntax error : identifier 'HWND'
    1>c:\users\kim\documents\visual studio 2010\projects\test3\test3\comAPI.h(303): fatal error C1003: error count exceeds 100; stopping compilation
    2015년 9월 18일 금요일 오전 9:56

답변

  • 안녕하세요, grape11 님.
    Microsoft TechNet의 Forum 사이트를 방문해 주셔서 감사합니다.
    문의 하신 "visual c++로 그냥 콘솔프로그램을 만드려고 하는데 MFC에서 제공하는 api나 라이브러리를 사용할수 있나요?" 문의에 대한 답변을 드리겠습니다.

    Win 32 Console 프로그램에서 MFC 사용은 다음 문서를 참고하십시오.
    http://www.codeguru.com/cpp/misc/misc/consoleapps/article.php/c243/Console-app-using-MFC.htm
    Console app using MFC

    제시해 드린 답변이 도움이 되었기를 바랍니다.
      
    답변이 문제 해결에 도움이 되었다면 답변으로 채택을 부탁드립니다.
    하지만 문제 해결이 되지 않아서 정확한 답변을 원하는 경우에는 문제의 정보를 더 자세하게 답변으로 제공해주시기 바랍니다

    2015년 9월 21일 월요일 오전 4:46
    중재자