By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,565 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,565 IT Pros & Developers. It's quick & easy.

Calling a DLL that has its own window

P: n/a
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
Jul 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Christian Blackburn" <ch*****************@yahoo.comwrote in message
news:5e**********************************@d77g2000 hsb.googlegroups.com...
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

Jul 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.