Register for your free account! | Forgot your password?

You last visited: Today at 14:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



c++ question

Discussion on c++ question within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
knuck's Avatar
 
elite*gold: 10
Join Date: May 2011
Posts: 2,340
Received Thanks: 728
c++ question

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
knuck is offline  
Old 03/04/2012, 20:25   #2
 
Klenix123's Avatar
 
elite*gold: 17
Join Date: Apr 2009
Posts: 769
Received Thanks: 198
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...
Klenix123 is offline  
Thanks
1 User
Old 03/05/2012, 07:24   #3
 
knuck's Avatar
 
elite*gold: 10
Join Date: May 2011
Posts: 2,340
Received Thanks: 728
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 -.-
knuck is offline  
Old 03/05/2012, 08:10   #4
 
elite*gold: 0
Join Date: Jul 2011
Posts: 133
Received Thanks: 22
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)
maledict is offline  
Thanks
1 User
Old 03/05/2012, 10:18   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 163
Received Thanks: 131
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++:




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


Good Luck!
Vonyx is offline  
Thanks
1 User
Old 03/05/2012, 13:24   #6
 
ΞŁI's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 590
Received Thanks: 398
Wrong section!
This is the right section:
ΞŁI is offline  
Old 03/05/2012, 13:43   #7
 
Dr. Moc's Avatar
 
elite*gold: 0
The Black Market: 152/0/0
Join Date: Oct 2009
Posts: 2,872
Received Thanks: 669
Quote:
Originally Posted by ΞŁI View Post
Wrong section!
This is the right section:
You right... but:

Quote:
This hasn't got anything together with darkrobit, but I know here are replys fast...
Dr. Moc is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Question] Wie ruft man in AutoIt eine Website per knopfdruck auf [Question]
08/04/2011 - AutoIt - 7 Replies
Wie ruft man eine Website per knopfdruck in AutoIt auf? Wenn geht Code und nochbesser Erklärung bei :D Danke schonmal im voraus :handsdown:



All times are GMT +1. The time now is 14:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.