Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old September 5th, 2008, 01:49 PM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default Several main() methods in vs2005 solutions

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
Reply
  #2  
Old September 5th, 2008, 02:16 PM
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Age: 24
Posts: 496
Default

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
Reply
  #3  
Old September 5th, 2008, 02:25 PM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default

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
Reply
  #4  
Old September 5th, 2008, 02:54 PM
Newbie
 
Join Date: Sep 2008
Posts: 3
Default

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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.