473,624 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3967
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
2397
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 on a windows machine. I asked my teacher how this could be done and he told me by using the "-o" option or I could simply rename the a.out file to "helloworld.exe". I used the following command: g++ -ansi -pedantic -Wall -o helloworld.exe ...
2
1187
by: sincethe2004 | last post by:
How to call exe in .aspx C#?
4
3872
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 when its called?
3
3070
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 loaded in memory and I need the DLL to invoke a method within the running instance by passing a reference (such as the application title, window handler etc). TIA
1
1428
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 (which is created w/in the exe) says that 'Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.' Now my db connection string in the exe is set to use Integrated Security. Within IIS, I'm using anonymous...
4
1692
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 question is how do i automate this. let me make this clear, it is not an argument you pass in when you type in the exe. An example below illustrates: THIS IS NOT WHAT YOU DO: nec2d.exe couple1.nec # couple1.nec is the...
0
3766
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
1922
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 file and installed inside Pocket PC. The CAB file created an exe file of my offline application in the Pocket PC. My offline application downloads a zip file from the server and unzips into a particular folder inside the Pocket PC device and this...
0
1012
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. Now I want to call this exe from web, for that I have set up asp.net application, using the process class of the System.Diagnostics namespace, it is calling exe. Its is also working great when I run this from the ASP.Net Development Server. But...
0
8234
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8620
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7158
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5563
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.