CefSharp & Wpf & Autocad plugin

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.

CefSharp & Wpf & Autocad plugin

Postby LucVallot » Fri Dec 18, 2020 5:24 am

Hi,

I need to integrate a CefSharp web viewer in a Wpf dialog in an Autocad plugin

Then I try this , Autocad refuse to load some dependant Dll's (without giving the dll's name)

If I try to acces any Cef or to create a CefSettings object by code, my plugin crash too (with the same error).

I know that Autocad embed a special CefSharp version , but has anyone ever done this type a project and can help me ?

Thanks in avance

Luc
LucVallot
Newbie
 
Posts: 3
Joined: Fri Dec 18, 2020 5:07 am

Re: CefSharp & Wpf & Autocad plugin

Postby amaitland » Sat Dec 19, 2020 3:18 pm

What version of CEF does autocad use? Look for libcef.dll and check it's version number.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: CefSharp & Wpf & Autocad plugin

Postby LucVallot » Mon Jan 04, 2021 4:04 am

autocad 2020 -> 3.2704.1434.0 -> 3.2704.1434.gec3e9ed (05/09/2017)
autocad 2021 -> 7.1.4.0 -> 7.1.4+gf3890be+chromium-77.0.3865.90 (21/11/2019)
LucVallot
Newbie
 
Posts: 3
Joined: Fri Dec 18, 2020 5:07 am

Re: CefSharp & Wpf & Autocad plugin

Postby amaitland » Mon Jan 04, 2021 7:48 pm

Those are some really old versions, from a security standpoint neither is safe for use on the internet. If your planning to limit traffic to your intranet only then it's probably ok.

I skipped releasing a CefSharp version based on Chromium 77, so that's going to be a problem. You'd have to build it yourself, though the WPF version would be largely unusable, part of the reason for skipping that release see https://github.com/cefsharp/CefSharp/issues/2953

You can run the browser out of process, you can then use any version you like.

Quick search yields https://thebuildingcoder.typepad.com/bl ... ent.html#6

https://github.com/stever/AppHostCefSharp has an example of hosting CefSharp out of process for use with excel, same can likely be applied.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 39 guests