Using the CSE DLL from .NET

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 704
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Using the CSE DLL from .NET

Post by MikeGale » Tue Jun 07, 2005 10:05 pm

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
Rank VI - Professional
Posts: 704
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale » Wed Jun 08, 2005 4:04 pm

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
Site Admin
Posts: 3397
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Wed Jun 08, 2005 4:32 pm

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.
Image
Albert Wiersch

User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 704
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale » Wed Jun 08, 2005 6:24 pm

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.

Post Reply