Refeence Error

aqeel.arshad

New member
Joined
May 26, 2009
Messages
3
Programming Experience
Beginner
Hi,

I have this small application that does some conversions for me. I only have its .exe file.

If I add the .exe file by
Right Clicking the "Toolbox" -> "Choose Item"
Then locating the .exe file, I get this error "'C:\....exe' is not a Microsoft .NET module"

If I go to
Project -> Add References
Then locating the .exe file, I get this error "A reference to 'C:\....exe' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."

I want to use that application in my new VB.NET application. Is there any way that I can include the existing application in my new source code?

Waiting for reply.
Aqeel.
 
But the EXE isn't source code, so no. You can't just make any old application part of your own project. If you want to run this application from yours you can distribute the EXE along with your own, assuming you have the legal right to do so, and then call Process.Start to run the EXE as though the user themselves ran it form Windows Explorer.
 
Back
Top