Using the CSE DLL from .NET

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Using the CSE DLL from .NET

Post by MikeGale »

I see there is documentation for using the CSE DLL from C and there is a COM wrapper.

Has anyone produced a .NET interop assembly?

(I'm most interested in an official PIA, Primary Interop Assembly, rather than a no name brand assembly.)
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

I spent a few minutes with the type library export tool (in .NET) it didn't recognise the DLL. Worth the effort though.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post by Albert Wiersch »

I would think there would be a way to use the DLL from .NET, but I am not familiar with how that would work. The only officially supported interface to the DLL is the C interface. That's what CSE's editor uses.

As you've found, it is documented here:
http://www.htmlvalidator.com/htmlval/de ... ordll.html

Unfortunately, I do not know of anyone using an interface other than the old command-line way or the C interface.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

Hi,

I generally try to steer clear of interop. The automated tools assume an interface with IDispatch etc. There are other ways to use DLL's, but I'm not going to explore that immediately.

I was hoping for work already done.

The standard interfaces look like the immediate answer.