Re: [Dev-C++] ANSI C++ forbids implicit conversion from "void*"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Graeme F. <gr...@dr...> - 2002-10-02 17:32:30
|
Hi, you need to typecast the pointer. the last parameter is of type lParam so you need to modify you code as follows (LPARAM)this. >you wrote... >The errors occurs here : > >hHyperLinkWnd= CreateWindowEx(dwExStyle, > wcex.lpszClassName, > "", > dwStyle, > HypLinkData.cx,HypLinkData.cy, > size.cx,size.cy, > hWndParent, > NULL, > wcex.hInstance, --> (LPARAM)this); <- Here at the "this" pointer passing, compiling crashes |