473,508 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling a DLL that has its own window

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
1 985
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7861
by: Reply Via Newsgroup | last post by:
Folks, I was sure this could be done - or at least sure I had seen reference to it at some point or other - but now, after having gone for a cup of tea, am begining to doubt my original belief....
18
12636
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
2
1606
by: M B HONG 20 | last post by:
Hi all - I am working on a web application and have run into a problem. From a main window (Window1) I open a child window (Window2), and from that child window I open a grandchild window...
3
3560
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
2
2777
by: sumanthsclsdc | last post by:
Hello friends, I have a problem, I implemented a class which uses tkinter and displays the window as required, the class will create a window with listbox and inserts some items into it, I...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.