cwollenhaupt / fpCefSharp

With fpCefSharp you can add a modern browser to your Visual FoxPro application.
19 stars 5 forks source link

EventLog reference in cefsharpbrowser.prg is undefined #24

Closed chrisvesper closed 1 year ago

chrisvesper commented 1 year ago

Line 307 makes reference to EventLog which is undefined. Commenting it out allows cefsharpbrowser.prg to compile

    Local ltStart, loBrowser
    loBrowser = null
    Declare Sleep in Win32Api Long
    ltStart = Datetime ()
    Do while not loBridge.GetProperty (m.loChromium, "IsBrowserInitialized")
        If Datetime() > ltStart+5
            EventLog ("cefsharp.bind-to-host.browser-timeout")
            Exit
        EndIf
        Sleep (50)
    EndDo