473,388 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to call windows app classes(exe) from DLL???

I have a solution includes 2 projects the 1st one is a class library project
and the 2nd is windows application.
Normally i can use the classes wich in the 1st project(DLL) after add
refrence for this project at the windows application(2nd project) but the
problem is i can't do the versa (how can i call any classes located in the
windows application project from the DLL(1st project)...
for example i need to call bank_win.Form1 class which is located at the
windows application from the class library DLL project.
Nov 16 '05 #1
1 3951
You can declare an interface in your class library, which is implemented
by your form or another class in the Windows Forms application. Let the
classes in your class library call instances of that interface.

This is good because it gives you a chance to design your class library
so that you aren't dependent on what kind of application is using it.
This enables you to reuse it in more than one scenario.

Another way could be to declare delegates in the class library, and call
the Windows Forms application's methods via those.

Regards,
Joakim

Abdalla Fawaz El-Hawary wrote:
I have a solution includes 2 projects the 1st one is a class library project
and the 2nd is windows application.
Normally i can use the classes wich in the 1st project(DLL) after add
refrence for this project at the windows application(2nd project) but the
problem is i can't do the versa (how can i call any classes located in the
windows application project from the DLL(1st project)...
for example i need to call bank_win.Form1 class which is located at the
windows application from the class library DLL project.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: cplusplus | last post by:
Hi, I just started a C++ cource in school and am using gcc --version 3.3.1 (Suse Linux 9.0). Everything is working great except I need to have the exacuatable in ".exe" format and be able to run...
2
by: sincethe2004 | last post by:
How to call exe in .aspx C#?
4
by: CsharpGuy | last post by:
I need to call an exe that resides on a server on the network from a ASP.NET page. first, is this possible, and if so who would I go about doing it? What is need to do this and have the exe run...
3
by: pvveeramani | last post by:
Hi Is there a way that I can call a method in an EXE (managed code, VB.NET) from a .NET DLL by passing a reference to the instance of the EXE? Multiple instances of EXE might be running and...
1
by: Eric | last post by:
I have an exe (VB) that basically performs updating and table inserts. Currently, a user would simply double click the exe to execute. Now I want to call this from ASP. When I do so, my log file...
4
by: Kiran | last post by:
Hi everybody, I am making python run an executable using the os module. Here is my question. The executable, once it is running, asks the user to input a filename that it will process. Now, my...
0
AnuSumesh
by: AnuSumesh | last post by:
Hi All, I am trying to call RDP on click of link. 'n' I am using following code to do this: <script language="javascript"> function setip(ip) { var wshell;
1
by: shakthi | last post by:
Hi I created an online Mobile application using .net 2.0 on server side and another offline application on mobile client using .net compact framework 2.0. I packaged my offline application to CAB...
0
by: pratikkagda | last post by:
Hi, I have created desktop applications in visual basic .net (Framework 2.0) which access the web information from a particular site. This application is working great. There is no problem at all....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.