To create pure old style DLL's

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to create pure old style DLL's? using C#?
I need to use these DLL's in a VC 6 project that does not support managed
code (as plugins)
But the VC 6 code doesn't use Interfaces to that, just classic dll entry
points.
 
Grab a copy of the IL book from MS Press. I am pretty sure there is a way to
mark
ordinals using IL. This would make your build process two steps if you are
using C#,
since you would need to compile your application, decompile to IL, add the
appropriate
IL features since C# doesn't have them, and then recompile using ILAsm.

I'm still not even sure if the IL markings work, because I've only ever tried to
use them in
one application and I could never get it off the ground (a coffee driven evening
though, so
it would be worth it to try again I think). My focus at the time was a series
of thunk
libraries written purely in managed code so I could more easily instrument them
when I
needed changes for debugging different applications (namely SSL applications).
 
Grab a copy of the IL book from MS Press. I am pretty sure there is a way
to
mark ordinals using IL. This would make your build process two steps if you are...
I was hoping for some compiler directive or some attribute. ;-)

A C++ managed/unmanaged wrapper is so far the closest solution, but I have
this strange File not found problem (one of the .NET dll's) when mixing
managed/unmanaged dll's using mfc. So I was searching for a pure managed
code alternative.
At this point I avoid .NET code in this dll.

Thanks all for the feed-back.
 
Back
Top