Re: [Dev-C++] ANSI C++ forbids implicit conversion from "void*"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elizabeth B. <sog...@ya...> - 2002-10-01 15:30:53
|
metalseb <met...@fr...> writes: > > The errors occurs here : > > hHyperLinkWnd= CreateWindowEx(dwExStyle, > wcex.lpszClassName, > "", > dwStyle, > HypLinkData.cx,HypLinkData.cy, > size.cx,size.cy, > hWndParent, > NULL, > wcex.hInstance, > this); <- Here at the "this" pointer passing, compiling crashes > > I've tried to pass "NULL" as parameter but same results. Are you still stuck with this? My book says CreateWindowEx is: CreateWindowEx(DWORD ExStyle, LPCTSTR Classname, LPCSTR WindowsName, DWORD Style, int X, int Y, int Width, int Height, HWND hParent, LPCTSTR hMenu, HINSTANCE hInstance, LPVOID Param); I'm surprised that casting each parameter explicitly is not working. Elizabeth |