Connecting Tech Pros Worldwide Help | Site Map

Several main() methods in vs2005 solutions

  #1  
Old September 5th, 2008, 01:49 PM
Newbie
 
Join Date: Sep 2008
Posts: 3
Hello,

I have a problem with an additional exe in my VS2005 C# solution (device application). I've added a console project in a solution and I'm trying to call it from another process / application. As a result when calling the 'second' exe in pda I get an error. The reason is that the second exe cannot find a dll it should use although the specific dll resides in its own folder.

Overall, I'm trying to do something before the actual solution application is started by using the 'second' exe but it is not happening because of obviously lacking reference to a certain dll. However, I have added a reference to the dll in the VS project / solution.

What should I do in order to make the second exe use the dll's in its own folder?

Best Regards,
Mikey
  #2  
Old September 5th, 2008, 02:16 PM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 543
Provided Answers: 2

re: Several main() methods in vs2005 solutions


i have never done this myself, but I would make sure that the second exe is installed, and could (in theory) be run without the 1st exe then invoke it on a new process from within the 1st.

Mark
  #3  
Old September 5th, 2008, 02:25 PM
Newbie
 
Join Date: Sep 2008
Posts: 3

re: Several main() methods in vs2005 solutions


There are three processes / applications. 1st which is the main application, 2nd which resides in the solution under the 1st and 3rd which is calling the 2nd before anything should happen.

Mikey
  #4  
Old September 5th, 2008, 02:54 PM
Newbie
 
Join Date: Sep 2008
Posts: 3

re: Several main() methods in vs2005 solutions


Hello,

Ok. Thank you for the hint! I found the solution by debugging the second exe alone: The reason for the error was that I had not initialized the dll.

Sorry for the dum question!

Regards,
Mikey
Reply