473,241 Members | 1,599 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,241 software developers and data experts.

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 8545
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
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
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
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
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
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
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
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
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
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
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.