473,492 Members | 4,301 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reference to an .exe

Jon
I am developing a 'addin.dl'l to a 'main.exe'. How can I add a reference to 'addin.dll project' for the main.exe?

Currently I am renaming a copy of main.exe to main.dll and adding that to my references. Anything simpler?

Nov 17 '05 #1
4 8553
Hi Jon,

Thanks for posting in the community.

From your description, I understand that you want to add an exe refenrence
to your project.
Please correct me if there is any misunderstand.

In .Net development platform, only a valid assembly or a COM component can
be referenced, so does your exe contain a valid COM component? If it have,
maybe you can Add Reference with the COM sub tab by browsing manually.

BTW, how about Add Reference to the exe's project?
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #2
Jon
The .exe is a pure C# compiled.exe. Changing the extension to .dll is the only way I found to add it to the references of another
..dll project. Any reason why the IDE will not let me add it while it is an .exe?

Also Add Reference to the exe's project is not allowed.
"Gary Chang" <v-******@online.microsoft.com> wrote in message news:OL**************@cpmsftngxa07.phx.gbl...
Hi Jon,

Thanks for posting in the community.

From your description, I understand that you want to add an exe refenrence
to your project.
Please correct me if there is any misunderstand.

In .Net development platform, only a valid assembly or a COM component can
be referenced, so does your exe contain a valid COM component? If it have,
maybe you can Add Reference with the COM sub tab by browsing manually.

BTW, how about Add Reference to the exe's project?
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #3
Hi Jon,

Thanks for your quickly reply!
Any reason why the IDE will not let me add it while it is an .exe?


I think the VS.NET only accepts an assembly of class library(.DLL) as a
valid reference type.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #4
Hi Jon,

One of my colleagues has found a way to add a .exe reference to the DLL
project:

You could use the #using in MC++. Something like:
#using <myApp.exe>

Or manually add it to the compiler. Something like:
/Fu myApp.exe

He did a quick test and in MC++ (2003) and can add a reference to a C# EXE
through the Add References dialog. It seems to build and work fine.

Then however you will have a problem when you use the MC++ DLL in C#
because C#'s Add Reference Dialog does not allow you to add the exe and
does not copy it as a dependent assembly. If you manually copy over the
exe to the C# bin directory then everything seems to work fine.

By the way, he has a sample project that illustrated this, if you want, I
can email it to you.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #5

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

Similar topics

2
13102
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
110
9806
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
11
2166
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
13
17903
by: Abe Frohnman | last post by:
Hello all, I'm passing a reference to a class into the constructor of a form, like so: public MyForm(int count, ref Area myArea) {...} How can I use myArea outside the constructor? Should I...
4
3391
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
13
2621
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
4390
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
4183
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
41
3606
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
275
12024
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
7118
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
6980
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...
0
7192
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
7364
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...
1
4886
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
3087
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...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
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.