Message-ID: <01BD55A9.607116A0@a2.ika.advacom.com.pl> From: Robert ARSENIUK To: "'djgpp AT delorie DOT com'" Subject: DJGPP and templates Date: Sun, 22 Mar 1998 15:39:01 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Precedence: bulk Hi, I have some source from http://www.relisoft.com/ (great place for Win32), but I can't compile them under RSXNTDJ. Probably problem is in templates : Functions are defined like this : template inline T GetWinLong (HWND hwnd, int which = GWL_USERDATA) { return reinterpret_cast (GetWindowLong (hwnd, which)); } template inline void SetWinLong (HWND hwnd, T value, int which = GWL_USERDATA) { SetWindowLong (hwnd, which, reinterpret_cast (value)); } and later used : .....(code fragment) // Pointer to Controller is stored in Window Controller * pCtrl = GetWinLong (hwnd); // line a switch (message) { case WM_CREATE: try { pCtrl = new Controller (hwnd, (CREATESTRUCT *) lParam); // Store pointer to Controller inside Window SetWinLong (hwnd, pCtrl); // line b } during compile I.ve got a messages (for line a, b and other) : parse error before '*' Is it standard template construction or VC++ specific? Thanks. Ps. Sorry for my English.