title: #define - Expected and Expression C ++
body: <p>I'm writing an application hat will use the same form defaults on most of the forms, so i decided to macro the WNDClASSEX and call it when needed:</p>
  
  <pre><code>#pragma once
  
  #ifndef WNDCLASSEX_H
  #define WNDCLASSEX_H
  
  #include &lt;windows.h&gt;
  
  //MAIN FORM / LOADER WNDCLASSEX
  #define MainLoaderWnd(Size, WindowsProcess, hInstance, Title)\
  {\
      return new WNDCLASSEX{\
      size,\
      CS_DBLCLKS,\
      WindowsProcess,\
      0,\
      0,\
      hInstance,\
      LoadIcon(NULL, IDI_APPLICATION),\
      LoadCursor(NULL, IDC_ARROW),\
      (HBRUSH)(COLOR_WINDOW),\
      NULL,\
      L(Title),\
      LoadIcon(NULL, IDI_APPLICATION)\
  };\
  }
  
  #endif
  </code></pre>
  
  <p>however, when i add this into the file "loader.cpp", i get the following:</p>
  
  <pre><code>WNDCLASSEX wcex = MainLoaderWnd(sizeof(WNDCLASSEX), WndProc, hInstance, L"Your Text Here");
  //Intellisense error: Expression Expected
  </code></pre>
  
  <p>Ideas/ can't see why his error occurs. :/</p>