FAQ #8865, published on 2014-02-18, updated on 2014-06-03
WINDEV, WEBDEV, WINDEV MOBILE
A DOTNET assembly might conflict with the WLanguage and cause unpredictable errors.
This code will prevent such conflict. If you experience a problem in a project using a DotNet assembly, insert this code at the top of the project initialization code.



IF LoadDLL("OLE32")=0 THEN
    Error("Error loading OLE32", ErrorInfo())
ELSE
    SWITCH API("OLE32","CoInitializeEx",Null,2)
        CASE 0//OK
        CASE 1
            API("OLE32","CoUninitialize")
            IF API("OLE32","CoInitializeEx",Null,2)<>0 THEN
                Error("Error with CoInitializeEx", ErrorInfo())
            END
        OTHER CASE
            Error("Error with CoInitializeEx", ErrorInfo())
    END
END