|
-
January 18th, 2011, 10:03 AM
#1
[RESOLVED] I tried to use my program on another computer...
Hello all,
I have just finished a port scanner that I made for fun and practice. I was fairly proud of it as it was my first multi-threaded program(up to 1002 threads!!! ). So naturally I wanted to go show it to my networking buddy.
I threw the app on his computer, ran it, and -POW- I got hit with a 'MSVCP100.dll cannot be found.' error message.
After doing a little research i found that applications developed in Visual C++(I'm using 2010 express) using STL are often dependent on this DLL. So my initial thought was to move the DLL with the program and drop it in his system32 folder. Well come to find out I don't even have the DLL on my computer. I have similarly named ones such as MSVCR70.dll, but not that specific one.
I think it is worth mentioning that he is running XP and I'm on Vista. Could different OS's search for different DLL's for the same information? And if so, how do I know which DLLs to include to make the app portable? I'm really not sure what is going on here so any info would be appreciated.
Obviously it would be great if my app could be independent of this DLL all together...
Last edited by Austin.Soucy; January 18th, 2011 at 10:07 AM.
-
January 18th, 2011, 10:08 AM
#2
Re: I tried to use my program on another computer...
"Obviously it would be great if my app could be independent of this DLL all together... "
This can be done if you compile statically. VS2010 will have buried in the menus somewhere the option to compile statically.
-
January 18th, 2011, 11:02 AM
#3
Re: I tried to use my program on another computer...
Project Properties -> C/C++ -> Code Generation -> Runtime Library -> select "Multithreaded".
-
January 18th, 2011, 12:34 PM
#4
Re: I tried to use my program on another computer...
Alternatively you could install VS2010 runtime environment at the target computer (which would install the missing dlls). You can download the setup for that from MS support. I even heard from people which add that package to their own setup.
If you don't want a separate setup, you may look for a folder 'redist' within your VS2010 installation paths. It should contain all relevant dlls and resources you would need to add to your own setup. You firstly could put them into the folder where your own executable was located. That way you wouldn't need access rights to system32 folder and the system would use your dlls in case they were not already in memory.
-
January 18th, 2011, 12:54 PM
#5
Re: I tried to use my program on another computer...
he can't use setup projects because he's onyl using express version
-
January 18th, 2011, 01:06 PM
#6
Re: I tried to use my program on another computer...
 Originally Posted by Amleto
he can't use setup projects because he's onyl using express version
Thanks for the information but installing the runtime environment is free and there are enough free setup programs available.
I wonder whether the express version allows static compilation at all. Does it really include the needed static libraries for all useable components?
And what is when the OP is using third-party dlls which themselves are dependent on dlls?
-
January 18th, 2011, 01:24 PM
#7
Re: I tried to use my program on another computer...
 Originally Posted by itsmeandnobodyelse
I wonder whether the express version allows static compilation at all.
Yes.
-
January 18th, 2011, 05:30 PM
#8
Re: I tried to use my program on another computer...
Thanks for the replies...I won't have a chance to try anything until the day after tomorrow but I will post my results when I do.
-
January 21st, 2011, 10:28 AM
#9
Re: I tried to use my program on another computer...
The program works now!
Unfortunately I was not able to take a structured approach to it and figure out which solution was the one I needed(it may have been them all for all I know)...But it works now, thank you all for the input
-
January 23rd, 2011, 03:34 AM
#10
Re: I tried to use my program on another computer...
I understand what is going on here now...
For anybody else that is having this issue here is a great thread discussing .NET dependency and static compilation:
http://social.msdn.microsoft.com/for...-162dda39580a/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|