c++ question

03/04/2012 20:07 knuck#1
Hello. This hasn't got anything together with darkrobit, but I know here are replys fast...

So:

How to make in c++ the programme will use the file in the same folder where the programme is? Because if i move the programme to any other computer -
1. it doesn't work because noone has got visual studio 2010 installed (missing many dlls)
2. everyone has got different directories..

thx for responses
03/04/2012 20:25 Klenix123#2
for the application dictionory
in visual basic:
Dim temp as String = io.file.readalltext("test.txt")
Dim tmp as New Bitmap("img\lol.png")
i think in c++ its the same...
03/05/2012 07:24 knuck#3
Quote:
Originally Posted by Klenix123 View Post
for the application dictionory
in visual basic:
Dim temp as String = io.file.readalltext("test.txt")
Dim tmp as New Bitmap("img\lol.png")
i think in c++ its the same...
hmm -.-
03/05/2012 08:10 maledict#4
1.I think you need to create the installer or find all your dependencies and ship all the dlls with your exe
2.Try to find out which is your current working directory. (getcwd or _getcwd)
03/05/2012 10:18 Vonyx#5
If you have the source code of the program then you will have to deploy your application (i.e. make an installer to install your application on a different machine). You could use either InstallShield (it will scan your project for dependencies and pack all the dlls within installer) or use microsoft visual studio to do it see here for c++:

[Only registered and activated users can see links. Click Here To Register...]


If you don't have the source code, we will need more info of what you want to do...


Good Luck!
03/05/2012 13:24 ΞŁI#6
Wrong section!
This is the right section: [Only registered and activated users can see links. Click Here To Register...]
03/05/2012 13:43 Dr. Moc#7
Quote:
Originally Posted by ΞŁI View Post
Wrong section!
This is the right section: [Only registered and activated users can see links. Click Here To Register...]
You right... but:

Quote:
This hasn't got anything together with darkrobit, but I know here are replys fast...