title: C2061 Syntax Error (identifier)
body: <pre><code>1&gt;cb.c(51): error C2061: syntax error : identifier 'SaveConfiguration'
  1&gt;cb.c(51): error C2059: syntax error : ';'
  1&gt;cb.c(51): error C2059: syntax error : 'type'
  1&gt;cb.c(52): error C2061: syntax error : identifier 'LoadConfiguration'
  1&gt;cb.c(52): error C2059: syntax error : ';'
  1&gt;cb.c(52): error C2059: syntax error : 'type'
  1&gt;cb.c(122): error C2061: syntax error : identifier 'SaveConfiguration'
  1&gt;cb.c(122): error C2059: syntax error : ';'
  1&gt;cb.c(122): error C2059: syntax error : 'type'
  1&gt;cb.c(127): error C2061: syntax error : identifier 'LoadConfiguration'
  1&gt;cb.c(127): error C2059: syntax error : ';'
  1&gt;cb.c(127): error C2059: syntax error : 'type'
  1&gt;
  1&gt;Build FAILED.
  </code></pre>
  
  <p>It's just a single .c file in the project. Here's the code:</p>
  
  <pre><code>#define WIN32_LEAN_AND_MEAN
  
  #include &lt;Windows.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;process.h&gt;
  #include &lt;tchar.h&gt;
  
  typedef struct _Configuration
  {
      int             KeyActivate;
      int             BlockWidth;
      int             BlockHeight;
      double          HueStart;
      double          HueEnd;
      double          SaturationStart;
      double          SaturationEnd;
      double          ValueStart;
      double          ValueEnd;
  } Configuration;
  
  typedef struct _DIBSection
  {
      HDC     ScreenDC;
      HDC     WindowDC;
      HDC     MemoryDC;
      HBITMAP ScreenBMPHandle;
      BITMAP  ScreenBMP;
  } DIBSection;
  
  typedef struct _Thread
  {
      HANDLE      Handle;
      unsigned    Id;
  } Thread;
  
  typedef struct _Window
  {
      HANDLE  Handle;
      HDC     DC;
      int     Width;
      int     Height;
      int     Top;
      int     Left;
  } Window;
  
  __declspec ( dllexport ) int Initialize ( void );
  unsigned __stdcall Start ( void * Arguments );
  
  void LoadDefaultConfiguration ( Configuration * Config );
  bool SaveConfiguration ( Configuration * Config, LPTSTR FilePath );
  bool LoadConfiguration ( Configuration * Config, LPTSTR FilePath );
  
  Thread          MainThread;
  Window          Screen;
  Configuration   Settings;
  
  BOOL WINAPI DllMain ( HINSTANCE Instance, DWORD Reason, LPVOID Reserved )
  {
      switch ( Reason )
      {
  
          case DLL_PROCESS_ATTACH:
  
              // TODO: Load settings from file
              LoadDefaultConfiguration ( &amp; Settings );
  
              // Create main thread
              MainThread.Handle = (HANDLE) _beginthreadex (
                  NULL,
                  0,
                  Start,
                  NULL,
                  0,
                  &amp; MainThread.Id
                  );
  
              if ( MainThread.Handle )
              {
                  SetThreadPriority ( MainThread.Handle, THREAD_PRIORITY_BELOW_NORMAL );
              }
              else
              {
                  MessageBox ( NULL, L"Unable to create main thread; exiting", L"Error", MB_OK );
                  ExitProcess ( 0 );
              }
  
              break;
  
          case DLL_PROCESS_DETACH:
  
              break;
  
      }
  
      return TRUE;
  }
  
  __declspec ( dllexport ) int Initialize ( void )
  {
      return 1;
  }
  
  unsigned __stdcall Start ( void * Arguments )
  {
      return 1;
  }
  
  void LoadDefaultConfiguration ( Configuration * Config )
  {
      Config-&gt;BlockHeight = 50;
      Config-&gt;BlockWidth = 100;
      Config-&gt;HueEnd = 0.00;
      Config-&gt;HueStart = 0.00;
      Config-&gt;KeyActivate = VK_SHIFT;
      Config-&gt;SaturationEnd = 0.00;
      Config-&gt;SaturationStart = 0.00;
      Config-&gt;ValueEnd = 0.00;
      Config-&gt;ValueStart = 0.00;
  }
  
  bool SaveConfiguration ( Configuration * Config, LPTSTR FilePath )
  {
      return true;
  }
  
  bool LoadConfiguration ( Configuration * Config, LPTSTR FilePath )
  {
      return true;
  }
  </code></pre>
  
  <p>Line 51 is</p>
  
  <pre><code>bool SaveConfiguration ( Configuration * Config, LPTSTR FilePath );
  </code></pre>