473,569 Members | 2,406 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 OfflineActivati on : 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 987
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.co m

"Christian Blackburn" <ch************ *****@yahoo.com wrote in message
news:5e******** *************** ***********@d77 g2000hsb.google groups.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 OfflineActivati on : 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
7875
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. Can I have a script, available in a parent function, called from a child window? If so, how? And... if so, why? I mean, while sipping my tea, I...
18
12647
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 state, the HTML page URL would change from default.html to default.html#stateA. example: http://pearstudios.com/javascript/locationHashAndFlash.html ...
2
1613
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 (Window3). I need to call a funcion that resides on Window1 from Window3. I do this successfully by calling a function with window.opener on Window3,...
3
3565
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 and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but...
2
2779
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 created the instance of this class and executed, I require the selected item to be sent back to the calling function, and the window should not be...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6286
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5222
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.