Support Board
Date/Time: Sun, 24 Nov 2024 01:31:23 +0000
Post From: Code errors
[2013-09-05 15:47:52] |
user6275 - Posts: 13 |
Compiled yesterday worked fine now I get all of these error references that dont match anything in my code? Any ideas? Error MEssage: In file included from C:\SierraChart\ACS_Source\sierrachart.h:155:0, from C:\SierraChart\ACS_Source\Uber.cpp:13: C:\SierraChart\ACS_Source\scdatetime.h: In function 'SCDateTime GetCurrentDateTimeInGMT()': C:\SierraChart\ACS_Source\scdatetime.h:1180:2: error: 'SYSTEMTIME' was not declared in this scope SYSTEMTIME st; ^ C:\SierraChart\ACS_Source\scdatetime.h:1180:13: error: expected ';' before 'st' SYSTEMTIME st; ^ C:\SierraChart\ACS_Source\scdatetime.h:1183:2: error: '::GetSystemTime' has not been declared ::GetSystemTime(&st); ^ C:\SierraChart\ACS_Source\scdatetime.h:1183:19: error: 'st' was not declared in this scope ::GetSystemTime(&st); ^ In file included from C:\SierraChart\ACS_Source\Uber.cpp:13:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:182:45: warning: '__cdecl__' attribute only applies to function types [-Wattributes] typedef void (SCDLLCALL* fp_ACSGDIFunction)(HWND WindowHandle, HDC DeviceContext); ^ C:\SierraChart\ACS_Source\sierrachart.h:182:45: error: typedef 'fp_ACSGDIFunction' is initialized (use decltype instead) C:\SierraChart\ACS_Source\sierrachart.h:182:45: error: 'HWND' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:182:64: error: 'HDC' was not declared in this scope typedef void (SCDLLCALL* fp_ACSGDIFunction)(HWND WindowHandle, HDC DeviceContext); ^ C:\SierraChart\ACS_Source\sierrachart.h: In static member function 'static char* SCString::StringNew(size_t)': C:\SierraChart\ACS_Source\sierrachart.h:815:46: error: 'GetProcessHeap' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:815:53: error: 'SIZE_T' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:815:68: error: 'HeapAlloc' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h: In static member function 'static void SCString::StringDelete(char*)': C:\SierraChart\ACS_Source\sierrachart.h:823:29: error: 'GetProcessHeap' was not declared in this scope HeapFree(GetProcessHeap(), 0, String); ^ C:\SierraChart\ACS_Source\sierrachart.h:823:41: error: 'HeapFree' was not declared in this scope HeapFree(GetProcessHeap(), 0, String); ^ C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:882:3: error: 'COLORREF' does not name a type COLORREF Color; ^ C:\SierraChart\ACS_Source\sierrachart.h:909:3: error: 'COLORREF' does not name a type COLORREF SecondaryColor; // For Highlight tools ^ C:\SierraChart\ACS_Source\sierrachart.h:922:3: error: 'COLORREF' does not name a type COLORREF LevelColor[SC_DRAWING_MAX_LEVELS]; ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 'void s_UseTool::Clear()': C:\SierraChart\ACS_Source\sierrachart.h:993:4: error: 'Color' was not declared in this scope Color = 0xff000000; ^ C:\SierraChart\ACS_Source\sierrachart.h:1001:4: error: 'SecondaryColor' was not declared in this scope SecondaryColor = 0xff000000; ^ C:\SierraChart\ACS_Source\sierrachart.h:1009:5: error: 'LevelColor' was not declared in this scope LevelColor = 0xff000000; ^ In file included from C:\SierraChart\ACS_Source\Uber.cpp:13:0: C:\SierraChart\ACS_Source\sierrachart.h: In member function 'long unsigned int s_SCInput_145::GetColor() const': C:\SierraChart\ACS_Source\sierrachart.h:2482:48: error: 'RGB' was not declared in this scope return (BooleanValue != 0) ? RGB(255,255,255) : 0; ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 's_SCInput_145& s_SCInput_145::SetColor(unsigned char, unsigned char, unsigned char)': C:\SierraChart\ACS_Source\sierrachart.h:2792:39: error: 'RGB' was not declared in this scope return SetColor(RGB(Red, Green, Blue)); ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 's_SCInput_145& s_SCInput_145::SetString(const char*)': C:\SierraChart\ACS_Source\sierrachart.h:2873:28: error: 'GetProcessHeap' was not declared in this scope HeapFree(GetProcessHeap(), 0, (char*)StringValue); ^ C:\SierraChart\ACS_Source\sierrachart.h:2873:52: error: 'HeapFree' was not declared in this scope HeapFree(GetProcessHeap(), 0, (char*)StringValue); ^ C:\SierraChart\ACS_Source\sierrachart.h:2885:55: error: 'GetProcessHeap' was not declared in this scope char* NewString = (char*)HeapAlloc(GetProcessHeap(), 8 /*HEAP_ZERO_MEMORY*/, NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:2885:90: error: 'HeapAlloc' was not declared in this scope char* NewString = (char*)HeapAlloc(GetProcessHeap(), 8 /*HEAP_ZERO_MEMORY*/, NumBytes); ^ In file included from C:\SierraChart\ACS_Source\Uber.cpp:13:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:2986:2: error: 'COLORREF' does not name a type COLORREF TextBackgroundColor; ^ C:\SierraChart\ACS_Source\sierrachart.h: In constructor 's_NumericInformationGraphDrawTypeConfig::s_NumericInformationGraphDrawTypeConfig()': C:\SierraChart\ACS_Source\sierrachart.h:2999:3: error: 'TextBackgroundColor' was not declared in this scope TextBackgroundColor = COLOR_BLACK; ^ In file included from C:\SierraChart\ACS_Source\sierrachart.h:157:0, from C:\SierraChart\ACS_Source\Uber.cpp:13: C:\SierraChart\ACS_Source\sccolors.h:16:30: error: 'RGB' was not declared in this scope #define COLOR_BLACK RGB(0,0,0) ^ C:\SierraChart\ACS_Source\sierrachart.h:2999:25: note: in expansion of macro 'COLOR_BLACK' TextBackgroundColor = COLOR_BLACK; ^ In file included from C:\SierraChart\ACS_Source\Uber.cpp:13:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:4518:2: error: 'COLORREF' does not name a type COLORREF RGBInterpolate(const COLORREF& Color1, const COLORREF& Color2, float ColorDistance) ^ C:\SierraChart\ACS_Source\sierrachart.h:4669:2: error: 'HWND' does not name a type HWND ChartWindowHandle; ^ C:\SierraChart\ACS_Source\sierrachart.h:5701:66: error: 'COLORREF' has not been declared unsigned long (SCDLLCALL* CombinedForegroundBackgroundColorRef)(COLORREF ForegroundColor, COLORREF BackgroundColor); ^ C:\SierraChart\ACS_Source\sierrachart.h:5701:92: error: 'COLORREF' has not been declared unsigned long (SCDLLCALL* CombinedForegroundBackgroundColorRef)(COLORREF ForegroundColor, COLORREF BackgroundColor); ^ C:\SierraChart\ACS_Source\sierrachart.h:5753:2: error: 'fp_ACSGDIFunction' does not name a type fp_ACSGDIFunction p_GDIFunction; ^ C:\SierraChart\ACS_Source\Uber.cpp: In function 'void scsf_UberOn(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\Uber.cpp:149:48: error: 'RGB' was not declared in this scope BuyEntrySubgraph.PrimaryColor = RGB(0, 255, 0); ^ C:\SierraChart\ACS_Source\Uber.cpp: In function 'void scsf_UberOff(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\Uber.cpp:841:48: error: 'RGB' was not declared in this scope BuyEntrySubgraph.PrimaryColor = RGB(0, 255, 0); ^ |