DestroyWindow

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

DestroyWindow

Postby wendao » Sat Sep 07, 2019 2:35 am

hello everyone, i have a error in my cefclient examle.

‘DestroyWindow’ was not declared in this scope
DestroyWindow(hBrowser);

DestroyWindow function need some include path?
wendao
Newbie
 
Posts: 8
Joined: Fri Jun 21, 2019 6:39 am

Re: DestroyWindow

Postby Czarek » Sat Sep 07, 2019 9:53 am

This is a WinAPI function, you need to include "windows.h" header. See https://docs.microsoft.com/en-us/window ... troywindow
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: DestroyWindow

Postby wendao » Tue Sep 10, 2019 6:48 am

thank you Czarek.
my os is ubuntu16.04, and is there DestroyWindow function with ubuntu16.04? what header file should i include?
thank you.
wendao
Newbie
 
Posts: 8
Joined: Fri Jun 21, 2019 6:39 am

Re: DestroyWindow

Postby Czarek » Tue Sep 10, 2019 7:23 am

It depends what library you use on Linux. cefclient uses GTK so it would be gtk_widget_destroy() and "gtk/gtk.h".
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests