Calling a DLL that has its own window

  • Thread starter Christian Blackburn
  • Start date
C

Christian Blackburn

Hi Gang,

I have a program that I'm upgrading from VS 2002. There's a
main .exe, (still written in 2002) that calls a program registration
DLL that has its own window, on that window there's a print button
that calls yet another DLL which also has its own window. For some
reason when I click print on the registration window it crashes.
Apparently the PrinterDLL is creating still another window, but it has
some values of the same name like DocumentTitle that are already
implemented by the 1st DLL. How can I overload them?

The start of the first DLL looks something like this:
internal class OfflineActivation : Form, IPrintDocument
{}

Are there some parameters I can add to IPrintDocument to make it
behave like it did in VS2002?


Main Program (VS 2002)
Registration DLL (VS 2005)
Printer Interface (VS 2002)

Thanks,
Christian
 
N

Nicholas Paldino [.NET/C# MVP]

Christian,

I don't think that it matters where it is implemented, as long as the
contract definition (the IPrintDocument interface) is the same.

What is the exception you are getting?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top